24 Pki
24 Pki
24 Pki
Solution:
– Find a trusted party to verify the identity
– Bind an identity to a public key in a certificate
– The certificate cannot be forged or tampered with (using digital
signature)
Digital Signature
• Save the above data to paypal.pem, and use the following command
decode it (see next slide)
Example of X.509 Certificate (1st Part)
The owner of
the certificate
(paypal)
Example of X.509 Certificate (2nd Part)
Public key
CA’s signature
The Core Functionalities of CA
• Verify the subject
– Ensure that the person applying for the certificate either owns or
represents the identity in the subject field.
Goto
Import ModelCA_cert.pem
Apache Setup for HTTPS
• We add the following VirtualHost entry to the Apache configuration file:
The server’s
certificate
The server’s
private key
Note: Apache configuration file is located at
/etc/apache2/sites-available/default
Root and Intermediate Certificate Authorities
Paypal’s certificate
B
A is
used to
verify B Intermediate CA’s certificate
A
Chain of certificates
Creating Certificates for Intermediate CA
TRUE means the certificate can be used verify other certificates, i.e, the
owner is a CA. For non-CA certificates, this field is FALSE.
Apache Setup
• A server has a responsibility to send out all the intermediate CA’s
certificates needed for verifying its own certificate.
• In Apache, all certificates including those from Intermediate CAs
are put inside the certificate file listed in the directive.
Restart Apache
Trusted CAs in the Real World
• Not all of the trusted CAs are present in all browsers.
• According to W3Techs in April 2017, Comodo takes most of the
market share followed by IdenTrust, Symantec Group, GoDaddy
Group, GlobalSign and DigiCert.
• The list of trusted CAs supported by browser can be found:
– For the Chrome browser:
• Settings -> Show advanced settings -> Manage Certificates