Recently received a task to convert a CER format security certificate to PEM format, originating from the LoadRunner script does not support CER format security certificates.
Because of the security certificate format a lot, pay attention to many, here only the transformation process described
First, the premise
Download good
1.vc6
2.activeperl5.8 (must be version 5.8, it looks like that one of the openssl-0.9.8b in the installation script only recognized 5.8)
3.openssl-0.9.8b
Second, the installation
Local is 64WIN7,VC6 and Perl are directly installed, ignoring the compatibility warning, including the following OpenSSL process, "Run the program" all the way.
OPENSLL installation process, according to the local environment set the path variables, the following content to stick to a text file to cmd or bat file to run
E: @REM set up the related environment directory (please set according to local conditions) @REM OpenSSL installation package location set opensslsetupdir=e:/zkr/ca/openssl/openssl-0.9.8b @REM OpenSSL installation location Set openssldir=e:/openssl-0.9.8b @REM VC Bin directory set Vcdir=e:/program Files (x86)/microsoft Visual studio/vc98/bin CD%opens slsetupdir% @REM Configure Perl Configure vc-win32 ms/do_ms.bat @REM compile "%vcdir%/vcvars32. BAT "Nmake-f ms/ntdll.mak @REM install MD%openssldir% MD%openssldir%/bin MD%openssldir%/lib MD%openssldir%/include MD%ope Nssldir%/include/openssl copy/b inc32/openssl/*%openssldir%/lib copy/b out32dll/ssleay32.lib%opensslDir%/lib copy/b Out32dll/libeay32.lib%openssldir%/lib copy/b out32dll/ssleay32.dll%openssldir%/bin copy/b out32dll/libeay32.dll%o Penssldir%/bin copy/b out32dll/openssl.exe%openssldir%/bin copy README%openssldir% copy LICENSE%openssldir% @pause
Third, transformation
Execute Openssl/bin under Openssl.exe to enter OpenSSL command line
Under the OpenSSL command line cer to PEM openssl>x509-in e:/server.cer-out E:/server.pem pfx to PEM openssl>pkcs12-in e:/test.pfx-out E :/test.pem-nodes
Iv. reference Documentation
Installation method of OpenSSL under Win32
Making the WebLogic server certificate process