Public Keys, Private Keys, and Certificates

简介: Public Keys, Private Keys, and CertificatesWhen performing authentication, SSL uses a technique called public-key cryptography.

Public Keys, Private Keys, and Certificates

When performing authentication, SSL uses a technique called public-key cryptography.

Public-key cryptography is based on the concept of a key pair, which consists of a public key and a private key. Data that has been encrypted with a public key can be decrypted only with the corresponding private key. Conversely, data that has been encrypted with a private key can be decrypted only with the corresponding public key.

Diagram shows the use of a public key in encryptinga word, and the use of a private key in decrypting the word.

The owner of the key pair makes the public key available to anyone, but keeps the private key secret.

certificate verifies that an entity is the owner of a particular public key.

Certificates that follow the X.509 standard contain a data section and a signature section. The data section includes such information as:

  • The Distinguished Name of the entity that owns the public key

  • The Distinguished Name of the entity that issued the certificate

  • The period of time during which the certificate is valid

  • The public key itself

You can obtain a certificate from a Certificate Authority (CA) such as VeriSign. Alternately, you can create a self-signed certificate, in which the owner and the issuer are the same.

An organization that issues certificates can establish a hierarchy of CAs. The root CA has a self-signed certificate. Each subordinate CA has a certificate that is signed by the next highest CA in the hierarchy. certificate chain is the certificate of a particular CA, plus the certificates of any higher CAs up through the root CA.

    目录
    相关文章
    |
    5月前
    |
    索引
    (详解)Object.keys() Object.values() Object.entries()
    (详解)Object.keys() Object.values() Object.entries()
    45 1
    |
    5月前
    |
    Linux Windows
    WARNING: UNPROTECTED PRIVATE KEY FILE!
    WARNING: UNPROTECTED PRIVATE KEY FILE!
    53 0
    |
    开发工具
    openssl_sign(): supplied key param cannot be coerced into a private key
    一、php如果不使用支付宝sdk使用原生签名方法如上错误报错 需要对私钥进行处理具体请参考这个贴: php原生签名:https://openclub.alipay.com/read.php?tid=1203&fid=2  二、如果是使用的支付宝的SDK出现这个错误一般是传入的秘钥格式有问题导致,建...
    1161 0
    Object.keys与for in,Object.getOwnPropertyNames的区别
    for/in: 是ES3中的方法,用来遍历对象(集合)的方法; 不过,for/in 会输出自身以及原型链上可枚举的属性,可以使用 hasOwnProperty 来过滤原型链上的属性 Object.
    1657 0