This shows you the differences between two versions of the page.
— |
certificates [2019/04/26 15:20] (current) root created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Converting Certificates ===== | ||
+ | |||
+ | == Extracting cert.pem & key.pem from .pfx == | ||
+ | |||
+ | openssl pkcs12 -in foo.pfx -nocerts -out key.pem | ||
+ | openssl pkcs12 -in foo.pfx -clcerts -nokeys -out cert.pem | ||
+ | |||
+ | |||
+ | == Extracting .key file from .pem file: == | ||
+ | |||
+ | openssl pkey -in foo-key.pem -out foo.key | ||
+ | |||