0% found this document useful (0 votes)
11 views2 pages

Converting A PFX Certificate To The PEM Format

Uploaded by

ELARABY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Converting A PFX Certificate To The PEM Format

Uploaded by

ELARABY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

2/17/22, 2:06 PM Converting a PFX certificate to the PEM format

Kaspersky
Security Center 13 Linux

Installation > Converting a PFX certificate to the PEM format

Converting a PFX certificate to the PEM format

To use a PFX certificate in Kaspersky Security Center 13 Web Console, you must first convert it to the
PEM format by using any convenient OpenSSL-based cross-platform utility (for more information,
refer to the OpenSSL website).

To convert a PFX certificate to the PEM format in Windows operating system:

1. In an OpenSSL-based cross-platform utility, execute the following commands:


openssl pkcs12 -in <filename.pfx> -clcerts -nokeys -out certificate.crt
openssl pkcs12 -in <filename.pfx> -nocerts -nodes -out private.key

2. Make sure that the certificate file and the private key are generated to the same folder where the
.pfx file is stored.

3. If the certificate file or the private key contains the bag attributes, delete these attributes using
any convenient text editing software and save the file.

The certificate file in PEM format and the private key file are ready to use, so you can specify them in
the Kaspersky Security Center 13 Web Console installer.

To convert a PFX certificate to the PEM format in Linux operating system:

1. In an OpenSSL-based cross-platform utility, execute the following commands:


openssl pkcs12 -in <filename.pfx> -nocerts -nodes | sed -ne '/-BEGIN PRIVATE
KEY-/,/-END PRIVATE KEY-/p' > private.key
openssl pkcs12 -in <filename.pfx> -clcerts -nokeys | sed -ne '/-BEGIN
CERTIFICATE-/,/-END CERTIFICATE-/p' > certificate.crt

2. Make sure that the certificate file and the private key are generated to the same directory where
the .pfx file is stored.
The certificate file in PEM format and the private key file are ready to use, so you can specify them in
the Kaspersky Security Center 13 Web Console installer.

https://support.kaspersky.com/KSCLinux/13/en-US/201428.htm 1/2
2/17/22, 2:06 PM Converting a PFX certificate to the PEM format

Was the information useful? Did you find what you were searching for?

Yes No

Article ID: 201428, Last review: Dec 20, 2021

https://support.kaspersky.com/KSCLinux/13/en-US/201428.htm 2/2

You might also like