Digital Certificates
Digital Certificates
&
Public Key Infrastructure(PKI)
BSCS-3rd
Digital Certificate vs Digital Signature
• Digital certificates and digital signatures are used to help create trust between the
sender and receiver in digital communications.
• Digital Certificate : A digital certificate verifies the authenticity of a device, user, or server.
• The Digital Signatures are also used to prove a document originated from valid
sender, but has several weaknesses.
• Only shows that the private key of the sender was used to encrypt the hash value.
• Imposter can post a public key under the sender’s name.
Digital Signature Weakness
Digital Certificate
• A digital certificate is an electronic document issued by a trusted
third party (Certificate Authority or CA) that uses encryption and
digital signatures to establish the authenticity of an individual,
organization, or device.
• Digital certificates prevents man-in-the-middle attack that impersonate owner of the public
key.
Key Components of a Digital Certificate:
• Developers use these certificates to sign their software, indicating that it has
not been altered since it was signed.
(Certificate Chaining)
Digital Certificates
• Pinning:
• A technique in which a digital certificate is hard-coded (pinned) within
the app (program) that is using the certificate.
• Pinning is common for securing mobile messaging apps and for
certain web-based services and browsers, OS.
Public Key Infrastructure (PKI)
• Public key infrastructure (PKI)
• It is the underlying infrastructure for the management of public keys
used in digital certificates.
• PKI is a framework for all the entities involved in digital certificates
for digital certificate management
• including hardware, software, people, policies, and procedures—to create,
store, distribute, and revoke digital certificates.
• In short, PKI is digital certificate management.
Public Key Infrastructure (PKI)
• Public Key Infrastructure (PKI) is a system of policies, procedures,
technologies, and roles that enable secure communication and the
management of digital identities through the use of cryptographic keys
and digital certificates.
• Verifies the user's identity and requests certificate issuance from the CA.
Key Components of PKI
3. Digital Certificates:
• Electronic documents that bind a public key to the identity of the certificate
holder.
4. Trust model :
• A trust model refers to the type of trust relationship that can exist
between individuals or entities.
• Direct trust, a relationship exists between two individuals because one
person knows the other person
• A third-party trust refers to a situation in which two individuals trust
each other because each trusts a third party(i.e. CA).
• PKI trust models use a CA.
• Hierarchical trust model
• Distributed trust model
Key Components of PKI
• The distributed trust model has multiple CAs that sign digital certificates.
This essentially eliminates the limitations of a hierarchical trust model.
• Overcome the limitations of hierarchal model
• The loss of a CA’s private key would compromise only those digital certificates for
which it had signed, and the workload of verifying and signing digital certificates
can be distributed.
• Commonly used by internet.
Key Components of PKI
• Public Key: Shared openly and used for encryption or signature verification.
• Private Key: Kept secret by the owner and used for decryption or digital signing.
• Certificate Distribution:
• The digital certificate is shared with others(validation authority) to
establish trust.
Working of PKI
• Secure Communication:
• Users exchange public keys and use them for:
• Encrypting data for secure transmission.
• Verifying the authenticity of digital signatures.
• Certificate Revocation:
• If a private key is compromised or the certificate is no longer needed,
the CA(validation auth.) revokes the certificate and adds it to the CRL.
Working of PKI
Advantages of PKI
• Data Confidentiality: Ensures only authorized parties can access the
data.
• Authentication: Verifies the identity of users, devices, or servers.