Converting Certificate Formats - Brocade Communications Systems ServerIron ADX 12.4.00a Security Manual

Version 12.4.00a
Table of Contents

Advertisement

Converting certificate formats

The ServerIronADX accepts server certificates in the PEM or PKCS12 format. The following sections
describe how to convert between the two formats and from PFX to the two formats using OpenSSL.
You can download a Win32 distribution of OpenSSL at the following location:
http://gnuwin32.sourceforge.net/packages/openssl.htm
Converting PEM to PKCS12
Use the open-source utility OpenSSL to perform the conversion from .PEM to .P12 as described in
the following
1. If you do not have it installed, download and install the Win32 OpenSSL package from the URL
2. Create a folder named C:\certs and copy the file pemkey.pem (private key file) and
3. Open a command prompt and move to the GnuWin32\bin directory:
4. Enter the following command to convert the PEM file to an P12 file (all on one line):
5. When prompted for the import password, enter the password you used when exporting the
6. When prompted for a pass phrase, enter a password you want to use to protect the private key.
Converting PKCS12 to PEM
To convert a P12 file to a PEM file, follow these steps on a Windows machine:
1. If you do not have it installed, download and install the Win32 OpenSSL package from the URL
2. Create a new folder named C:\certs and copy the file pkcsfile.p12 into this folder
3. Open a command prompt and move to the GnuWin32\bin directory.
4. 4. Enter the following command to convert the P12 file to an PEM file:
5. When prompted for the import password, enter the password you used to export the PEM
6. When prompted for a pass phrase, enter a password to protect the private key. This creates a
7.
Use the open-source utility OpenSSL to perform the conversion from .PFX to .PEM (or .PFX to .P12).
You can download a Win32 distribution of OpenSSL at the following location:
http://gnuwin32.sourceforge.net/packages/openssl.htm
ServerIron ADX Security Guide
53-1002440-03
described under
"Converting certificate
pemcert.pem (certificate file) into this folder
cd %ProgramFiles%\GnuWin32\bin
openssl pkcs12 –export –out c:\certs\mycert.p12 –name "My Certificate" –inkey
c:\certs\pemkey.pem –in c:\certs\pemcert.pem
PEM certificate.
described under
"Converting certificate
cd %ProgramFiles%\GnuWin32\bin
openssl pkcs12 -in c:\certs\pkcsfile.p12 -clcerts -out c:\certs\pemfile.pem
certificate.
single .PEM file that includes both the private key and certificate.
You can then separate the private key and certificate into separate .PEM files.
Configuring SSL on a ServerIron ADX
formats".
formats".
6
147

Advertisement

Table of Contents
loading

Table of Contents