Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.pem、.crt、.der形式で購入した SSL 証明書があります。証明書からキーファイルを取得する方法を知りたいと思っていました。これを行う方法はありますか?
.pem
.crt
.der
公開鍵を抽出できます。これは有用性が限られています。おそらく、証明書を使用しない SSH や PGP などの別のツールで同じキーを使用することになるでしょう。
OpenSSL の場合:
openssl x509 -pubkey -noout < cert.pem > pubkey.pem
証明書から秘密鍵を取得することはできません。それは全体をまったく無意味にしますよね?