No.23 use openssl-0.9.8b to convert CER, PFX to PEM files (including OpenSSL Win64 environment installation process)

Source: Internet
Author: User
Tags openssl win32

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.