ServerIron ADX Security Guide 147
53-1002440-03
Configuring SSL on a ServerIron ADX 6
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
described under “Converting certificate formats”.
2. Create a folder named C:\certs and copy the file pemkey.pem (private key file) and
pemcert.pem (certificate file) into this folder
3. Open a command prompt and move to the GnuWin32\bin directory:
cd %ProgramFiles%\GnuWin32\bin
4. Enter the following command to convert the PEM file to an P12 file (all on one line):
openssl pkcs12 –export –out c:\certs\mycert.p12 –name “My Certificate” –inkey
c:\certs\pemkey.pem –in c:\certs\pemcert.pem
5. When prompted for the import password, enter the password you used when exporting the
PEM certificate.
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
described under “Converting certificate formats”.
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.
cd %ProgramFiles%\GnuWin32\bin
4. 4. Enter the following command to convert the P12 file to an PEM file:
openssl pkcs12 -in c:\certs\pkcsfile.p12 -clcerts -out c:\certs\pemfile.pem
5. When prompted for the import password, enter the password you used to export the PEM
certificate.
6. When prompted for a pass phrase, enter a password to protect the private key. This creates a
single .PEM file that includes both the private key and certificate.
7. You can then separate the private key and certificate into separate .PEM files.
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