Is it possible to convert an SSL certificate from a .key file to a .pfx?

前端 未结 4 1024
长情又很酷
长情又很酷 2020-12-01 02:58

is there a way to convert from a .key file to a .pfx file? thank you.

EDIT: I only have the .key file but my hosting provider says that I could convert it to .pfx wi

4条回答
  •  情书的邮戳
    2020-12-01 03:56

    According to the OpenSSL Command-Line HOWTO it should work using

    # export mycert.key as PKCS#12 file mycert.pfx
    openssl pkcs12 -export -out mycert.pfx -in mycert.key -name "My Certificate"
    

提交回复
热议问题