How do I export public/private keys in PEM format from a CSP using the
crypt32 API?
Thanks,
Jan
For the PEM public key:
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEB .....
the format is b64 encoding of the SubjectPublicKeyInfo structure. You can get that blob from
CryptEncodeObject twice (using Microsoft PUBLICKEYBLOB as the original source blob).
The same blob (before b64 encoding) is returned in Java via PublicKey.getEncoded().
- Mitch Gallant
"msnews.microsoft.com" <j...@acu.no-ip.com> wrote in message
news:uCaNlczM...@TK2MSFTNGP15.phx.gbl...
Thanks. I'll try that.
Regards,
Jan
"Mitch Gallant" <jens...@community.nospam> wrote in message
news:OKv1eF2M...@TK2MSFTNGP14.phx.gbl...