문제

I have an SSL certificate I purchased in a .pem, .crt, .der format. I was wondering how I get the key file from the certificate. Is there any way of doing this?

도움이 되었습니까?

해결책

You can extract the public key. This has limited usefulness. Perhaps you are going to use the same key with another tool like SSH or PGP that doesn't use certificates.

With OpenSSL:

openssl x509 -pubkey -noout < cert.pem > pubkey.pem

You can't derive the private key from a certificate. That would make the whole thing quite pointless, wouldn't it?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top