Microsoft CryptoAPI: how to convert PUBLICKEYBLOB to DER/PEM?

后端 未结 2 1567
逝去的感伤
逝去的感伤 2021-01-27 08:19

I have a generated RSA key pair stored as PRIVATEKEYBLOB and PUBLICKEYBLOB, and I need to be able to convert these keys to DER or PEM formats so I could use it in PHP or Python.

2条回答
  •  天命终不由人
    2021-01-27 09:02

    Use RSA_CSP_PUBLICKEYBLOB as documented in https://msdn.microsoft.com/en-us/library/windows/desktop/aa378145(v=vs.85).aspx

提交回复
热议问题