windows generate key, crt pfx file by file

nginx proxy when required to complete crt certificate with rsa file path, the exported certificate by iis is pfx file (do not know nginx can not directly use pfx file is not viewed relevant information), so to generate crt by pfx file, rsa file.

First, the tools used OpenSSL ( https://www.openssl.org/source/ )

Openssl After installation, the file to copy pfx openssl bin directory using the following command:

openssl pkcs12 -in ***.pfx -nodes -out ***.pem
openssl rsa -in ***.pem -out ***.key
openssl x509 -in ***.pem -out ***.crt

Guess you like

Origin www.cnblogs.com/zebra-bin/p/11512649.html