Monday, 12 December 2022

Using OPEN SSL to convert a certificate from the .PFX format to the .PEM format

1.  From command prompt run following command:

openssl pkcs12 -in <import .pfx cert from where> -out <export .pem file to where> -nodes

openssl pkcs12 -in c:\openssl\SSLcert.pfx -out c:\openssl\servercert.pem -nodes

2. Enter SSL cert pricate key password.

3. If MAC verified OK show, mean .pem cert successful exported. 





Thursday, 8 December 2022

#Install OPEN SSL for Windows

Download source: https://sourceforge.net/projects/openssl/files/openssl-1.0.2j-fips-x86_64/

1. After download, extract the zip file. (example: c:\)

2. Go to system properties (or from RUN enter sysdm.cpl)


3. Go to Advanced > Environment Variables.




4. In Environment Variables, select Path, click Edit.



5. In Edit environment variable, select New and enter the extracted directory.
    (example: c:\OpenSSL\bin). Click OK.


6. In Environment Variables, click New.


7. Enter value below:

Variable name: OPENSSL_CONF

Variable value: c:\OpenSSL\bin\openssl.cnf


8. Restart computer.

9. Run Open SSL in cmd. Type openssl version