PKISharp / ACME-PS

PowerShell module supporting ACME v2 certificate management
MIT License
104 stars 31 forks source link

Howto: key as pem #69

Open JoePhanDro opened 4 years ago

JoePhanDro commented 4 years ago

Hi,

is it possible to get the private key as pem? I know, i can export the certificate as .pfx and afterwards convert it via openssl. But i think the ability to export the key pem would be helpful.

BR JoePhanDro

glatzert commented 4 years ago

Hi,

that specific use case is in my review-with-Powershell7-list.

Currently the module is not having any external dependencies and it's supposed to stay that way. So if I don't find a suitable way to create key and pem with .net 3.1 (which is the Powershell 7 runtime), I'll probably not implement it - especially since openSSL exists.

More or less the same is valid for including the intermediate certificate in the pfx (or pem).

If you have ideas, how to achieve the export I'm happy to listen 😉