Hi coders, I'm new to the whole Crypto thing, so I beg some basic pointers.
I need to load .PEM (X509) "-----BEGIN RSA XXX KEY----- -----END RSA XXX KEY-----" into a Windows Crypto Api context to use with C++ (I found examples for Python and .NET but they use specific functions I can't relate to the plain Windows Crypto Api)
I understand how to encrypt/decrypt once I've got a HCRYPTKEY. BUT, I just don't get how to import the Base64 blob in the .PEM file(s) and get a HCRYPTKEY that I can use out of it.
I have that stange feeling that there is more to it than simply calling CryptDecodeObject().
Any pointers that can put me on track? I've already lost 2 days doing "trial & error" programming and getting nowhere.