Using Keys and Certificates

· 1 min read · 78 Words · -Views -Comments

OpenSSL

# 版本信息
$ openssl version -a

# 性能测试
$ openssl speed

PEM Basics

-----BEGIN <whatever>----- 
data
 -----END <whatever>----
  • Stores certificates or private keys.

  • Each line is 64 characters.

  • PEM is Base64-encoded DER.

    PEM or Privacy Enhanced Mail is a Base64 encoded DER certificate.

  • DER/CER are binary encodings (cer typically omits the private key).

  • The first 32 characters of a PEM file are cosmetic; they don’t affect usage.

Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover