Certificate Files: Common Extensions and Conversions (2024)

This section briefly explains common extensions for SSL certificate and keystore files, as well as how to convert these files between formatting types.

Common File Extensions

Certificate

Certificate files: .crt, .cer, .ca-bundle, .p7b, .p7c, .p7s, .pem

Keystore Files: .key, .keystore, .jks

Combined certificate and key files: .p12, .pfx, .pem

Converting Files

To set up SSL for your MicroStrategy environment, you will need to have your certificates and key files in .pem, .crt, and .key formats. If you have files from your IT administrator that do not have these extensions, they must be converted.

The following commands to convert between file types:

  • Convert a DER format file to PEM format

    Copy

    openssl x509 -inform der -in certificate.cer -out certificate.pem
  • Convert a .pfx or .p12 containing a private key and certificates to PEM

    Copy

    openssl pkcs12 -in certkey.pfx -out certkey.pem -nodes
    • Add -nocerts to only output the private key.
    • Add -nokeys to only output the certificates.
  • Convert .keystore or .jks to .key: Requires two commands to be run.
    1. Convert the file to the .p12 extension

      Copy

      keytool -importkeystore -srckeystore privatekey.keystore -destkeystore privatekey.p12 -srcstoretype jks -deststoretype pkcs12 -srcstorepass password -deststorepass password
    2. Convert to the .key extension

      Copy

      openssl pkcs12 -nocerts -nodes -in newkeystore.p12 -out keyfile.key
Certificate Files: Common Extensions and Conversions (2024)

FAQs

What is the file extension for certificates? ›

pem, . crt, and . key formats. If you have files from your IT administrator that do not have these extensions, they must be converted.

What is the most common certificate format? ›

PEM Format

PEM is the most common format in which Certificate Authorities (CA) issue certificates.

What format is a .cer file? ›

cer file is a binary or base64-encoded file, whereas a . pfx file is a binary file. Binary files store data in its raw binary format, while base64-encoded files convert binary data into ASCII text for easier transmission and storage in text-based environments.

What does a certificate file contain? ›

The certificate file can contain one or more locations of server or client identity certificates and potentially a collection of intermediate Certificate Authority (CA) certificates supporting the identity certificates.

Top Articles
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5464

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.