server

[!TIP|label:references:]

terminology

extensions

[!TIP|label:references:]

EXTENSION
NAME
DESCRIPTION

.ca

Certificate Authority

-

.key

Private Key

-

.csr .req .p10

Certificate Signing Request

-

.crt

Certificate

used for certificates, may be encoded as binary DER or as ASCII PEM, usually an X509v3arrow-up-right certificate

.cer

Certificate

alternate form of .crt (Microsoft Convention), DER encoded or base64[PEM] encoded

.pem

indicates a base64 encoding with header and footer lines

.crl

Certificate Revocation List

defined within the X.509v3arrow-up-right certificate specifications, and this is usually DER encoded

.p8 .pkcs8

PKCS#8 Private Keys

PKCS#8 defines a way to encrypt private keys using

.p12 .pfx

PKCS#12arrow-up-right defined key store

commonly password protected. It can contain trusted certificates, private key(s) and their certificate chain(s)

.p7b .p7c

it is often used as a way to handle the certificates which make up a 'chain' or 'bundle' as a single

jks

Java Key Store

Java Key Store (JKS) is a repository of security certificates, either authorization certificates or public key certificates, plus corresponding private keys, used for instance in SSL encryption.

symmetric encryption

  • 3DES

  • AES

asymmetric encryption

  • RSA

  • DSA

  • ECC

  • ECDSA

  • Hash Algorithms

  • MD5

  • SHA-1

  • SHA-2

  • SHA-3

certs

generate csr

[!NOTE|label:references:]

  • or generate key and csr in one command

sign the csr

[!TIP|label:references:]

nginx configure

[!NOTE|label:references:]

  • modify/create nginx configure

  • test and reload

usage

show content

  • certificate request ( csr )

  • certificate ( pem, crt, cer )

convert

[!NOTE|label:references:]

frmo cer

  • to crt

  • to pem

from a pkcs#12 ( .pfx/.p12 )

[!NOTE|label:references:]

  • to pem

from crt

[!NOTE|label:references:]

  • to pem

from certificate

  • to certificate request

convert from windows certmgr.msc

  1. win + r -> certmgr.msc

  2. Certifacts - Current User -> Trusted Root Certification Authorities -> Certificates -> the wanted CA

  3. right-click -> open or double-click

    certmgr-1
  4. Details -> Copy to File...

    certmgr-2
  5. Certificate Export Wizard -> Next

    certmgr-3
  6. convert to crt

import to Linuxarrow-up-right

[!NOTE|label:references:]

Last updated