LoginSignup
6
5

More than 5 years have passed since last update.

サーバー証明書のPEMとPFXの相互変換

Posted at

PFXをPEMへ変換する

公開鍵を作成する

openssl pkcs12 -in server.pfx -clcerts -nokeys -out server.crt

秘密鍵を作成する

openssl pkcs12 -in pfx server.pfx -nocerts -nodes -out server.key

PEMをPFXへ変換する

openssl pkcs12 -export -inkey server.key -in server.crt -out server.pfx
6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5