SlideShare a Scribd company logo
10
Most read
11
Most read
12
Most read
An introduction to
X.509 certificates
Stéphane Potier
stephane.potier [at] br-automation.com
Basics of cryptography
Symmetric cryptography
Private/Public-key algorithms
Secure Hash Function
Digital Signature
Symmetric cryptography
Symmetric cryptography (e.g. AES) is used for data encryption
A secret ciphering key is used for both encryption and decryption (128 or 256 bits
recommended)
The secret ciphering key must be known by both client and server, it must be exchanged in a
secure way between them
Based on secret ciphering key
Public and Private Key pair
The Public and Private Key pair comprise of two uniquely
mathematically related cryptographic keys
• A public key is made available to everyone
• A private key is confidential to its owner
Whatever is encrypted with a Public Key may only be decrypted
by its corresponding Private Key and vice versa
Public and Private Key pair is used by :
• Asymmetrical cryptography, for confidentiality
• Digital signature, for authentication
Unpredictable large random numbers
Asymmetrical cryptography
Public-key cryptography is a class of cryptographic protocols based on algorithms that require
Public and Private Key pair
• Public Key may be disseminated widely, Private Key is secret and only known by the owner
• The Public Key is used to encrypt the message, the Private Key to decrypt it
• For example, Bob uses the Public Key of Alice to encrypt a message. Alice is the only one that can decrypt the message. The
message remains confidential to anyone else since they do not know Alice’s Private Key.
Public-key algorithm
Secure Hash Algorithm (SHA)
Hash functions are used to map data of arbitrary size to data of fixed size
In cryptography, hash function produce a checksum (hash value) used to verify data integrity
A cryptographic hash function has following characteristics:
• Minor change in the input data completely change the hash value
• Easy verification that some input data maps to a given hash value
• Difficulty to reconstruct input data from hash value
SHA (Secure Hash Algorithm) is a
famous cryptographic hash function
• SHA0 is obsolete
• SHA1 is deprecated since 31/12/2016
• SHA2 is currently recommended
• SHA3 are newest version
Integrity of data
Digital signature
Digital signature ensure authentication and integrity of data
• Asymmetric cryptography used for data authentication
• Cryptographic hash function used for data integrity
Authentication and integrity of data
Combining symmetric and asymmetric algorithms
Symmetric cryptography
• Fast encryption requiring less processing power
• Secure exchange of ciphering key is necessary
Asymmetric cryptography
• Slow encryption method based on long keys (2048 bits)
• Requires public key infrastructure
Exchange of session key between Bob and Alice via asymmetric cryptography , then
symmetric cryptography based on this session key
Session key exchange
Basics of
X.509 certificates
X.509 certificate
A digital certificate certifies the ownership of a public key by the named subject of the
certificate
The digital certificate itself is protected by a digital signature whose authenticity can be verified
by the public key of the Certification Authority (CA) that issued the certificate
Ensuring authenticity and integrity
Certification Authority (CA)
Certification Authority (CA) issues certificates
Certificate is signed with the private key of the CA
CA’s private key must be very private, it is the basis of all trust for issued certificates
Trusted third party issuing certificates
Obtaining digital certificate
A certificate signing request (CSR) is sent from an applicant to a certificate authority in order
to apply for a digital identity certificate
Certificate signing request
Verifying digital certificate
Authentication and Integrity of a certificate is verified using the Public Key of the Certification
Authority that issued that certificate
Authentication and Integrity check
Certification path
Chain of trust
• A certificate contains its issuer (CA that signed it)
• The issuer’s certificate also contains its issuer (CA that signed issuer’s certificate)
• This chain of certificates is called a certification path
Digital certificates are verified using a chain of trust
Root certificate
A root certificate is the top-most certificate of the certification path
A root certificate is issued by a trusted certificate authority (CA), which self-sign it
The root certificate is usually made trustworthy by secure physical distribution (distributed with
operating system)
Top-most certificate of the certification path
Self-signed
Verification of digital certificates
1. Client (i.e. web browser) initiate a TLS handshake with Amazon website, and gets certificates for both Amazon and Symantec
2. Client verifies Amazon’s certificate using Symantec’s Public Key contained in Symantec’s certificate
3. Client verifies Symantec’s certificate using VeriSign’s Public Key contained in VeriSign’s certificate (VeriSign’s certificate is a root
certificate locally stored on the client by the operating system)
Digital certificates are verified using a chain of trust
Self-signed certificate
A self-signed certificate :
• Is signed by issuer to identify itself
• Is signed by issuer with its own private key
• Has no Certificate Authority
The benefits:
• Self-signed certificates are free of charge (unlike CA issued certificates)
The risks :
• Self-signed certificates are not issued by a trusted certificate authority (1)
• Since client can not trust this self-signed certificate, it will raise a warning
• Users must avoid being “trained” to bypass warnings or add exceptions
→ An entity accepting a self-signed certificate must follow similar trusting process than the
addition of a new CA certificate
(1) Excepted for root certificates that are self-signed and issued by trusted certification authority
Risks and benefits
X.509 certificate encodings and file extensions
DER vs. CRT vs. CER vs. PEM
Certificate encodings Encoding type
PEM (Privacy Enhanced Mail) Base64 ASCII encoding
DER (Distinguished Encoding Rules) Binary encoding
Certificate file extension Encoding type
.cer PEM or DER
.crt PEM or DER
.der DER
.pem PEM
DER encoded, .cer file extension, certificate
PEM encoded, .pem file extension, certificate
Certificate store
A certificate store is used to store and manage digital certificates
Certificate store usually contains :
• Own private keys
• Own certificates
• Trusted 3rd party certificates
• Revocation list (certificates revoked by the issuing CA before their scheduled expiration date and should no longer be trusted)
Most well-known root certificates are usually stored in the certificate store
It is possible to add a root (signed by CA) certificate or a self-signed certificate in the
certificate store
Only add a trusted certificate in the certificate store !!!
Storage of digital certificates
Expired certificate
Every certificate has an expiry date, meaning the time and date past which the certificate is no
longer valid
The client determines what happens once certificate expires on a server
• The client can not connect to the server
• A warning is raised to indicate certificate has expired
• …
Before current certificate expires, a new certificate must be installed in the server
Validity date expiry
PERFECTION IN AUTOMATION

More Related Content

What's hot (20)

PDF
CRYPTOGRAPHY AND NETWORK SECURITY
Kathirvel Ayyaswamy
 
PPTX
Hash Function
ssuserdfb2da
 
PPT
6. cryptography
7wounders
 
PPT
Authentication Application in Network Security NS4
koolkampus
 
PDF
2. public key cryptography and RSA
Dr.Florence Dayana
 
PPTX
Hash function
Salman Memon
 
PPTX
Topic1 substitution transposition-techniques
MdFazleRabbi18
 
PPTX
SSL TLS Protocol
Devang Badrakiya
 
PPTX
SHA- Secure hashing algorithm
Ruchi Maurya
 
PDF
Introduction to Cryptography
Seema Goel
 
PPT
Block Cipher and its Design Principles
SHUBHA CHATURVEDI
 
PPT
Ssl (Secure Sockets Layer)
Asad Ali
 
PPT
X.509 Certificates
Sou Jana
 
PPT
key distribution in network security
babak danyal
 
PPTX
Cryptography.ppt
kusum sharma
 
PPT
Email security
Indrajit Sreemany
 
PDF
symmetric key encryption algorithms
Rashmi Burugupalli
 
DOCX
S/MIME
maria azam
 
PPT
Digital certificates
Sheetal Verma
 
PPT
Ipsec
Rupesh Mishra
 
CRYPTOGRAPHY AND NETWORK SECURITY
Kathirvel Ayyaswamy
 
Hash Function
ssuserdfb2da
 
6. cryptography
7wounders
 
Authentication Application in Network Security NS4
koolkampus
 
2. public key cryptography and RSA
Dr.Florence Dayana
 
Hash function
Salman Memon
 
Topic1 substitution transposition-techniques
MdFazleRabbi18
 
SSL TLS Protocol
Devang Badrakiya
 
SHA- Secure hashing algorithm
Ruchi Maurya
 
Introduction to Cryptography
Seema Goel
 
Block Cipher and its Design Principles
SHUBHA CHATURVEDI
 
Ssl (Secure Sockets Layer)
Asad Ali
 
X.509 Certificates
Sou Jana
 
key distribution in network security
babak danyal
 
Cryptography.ppt
kusum sharma
 
Email security
Indrajit Sreemany
 
symmetric key encryption algorithms
Rashmi Burugupalli
 
S/MIME
maria azam
 
Digital certificates
Sheetal Verma
 

Similar to An introduction to X.509 certificates (20)

PDF
presentation2-151203145018-lva1-app6891.pdf
GumanSingh10
 
PPTX
Certificate pinning in android applications
Arash Ramez
 
PPTX
Certificates, PKI, and SSL/TLS for infrastructure builders and operators
David Ochel
 
PDF
Track 5 session 2 - st dev con 2016 - security iot best practices
ST_World
 
PPT
Public Key Infrastructure and Application_Applications.ppt
lanhuongvernon
 
PPT
PKI_Applications digital certificate.ppt
ubaidullah75790
 
PPT
Authentication services
Greater Noida Institute Of Technology
 
PPTX
Apple SSL Vulnerability Explained
Mike Chapple
 
PDF
Dr. Omar Ali Alibrahim - Ssl talk
promediakw
 
PDF
The world of encryption
Mohammad Yousri
 
PPTX
[Note]x509
Yu-Ting Chen
 
PPT
Secure Gate / Reverse Proxy - WAF 1ere génération / Datelec
Sylvain Maret
 
PDF
#MoreCrypto : Introduction to TLS
Olle E Johansson
 
PDF
Introduction of an SSL Certificate
CheapSSLUSA
 
PPT
Web security
Muhammad Usman
 
PPTX
All you need to know about transport layer security
Maarten Smeets
 
PPTX
The last picks
Nafiur Rahman Tuhin
 
PDF
020618 Why Do we Need HTTPS
Jackio Kwok
 
presentation2-151203145018-lva1-app6891.pdf
GumanSingh10
 
Certificate pinning in android applications
Arash Ramez
 
Certificates, PKI, and SSL/TLS for infrastructure builders and operators
David Ochel
 
Track 5 session 2 - st dev con 2016 - security iot best practices
ST_World
 
Public Key Infrastructure and Application_Applications.ppt
lanhuongvernon
 
PKI_Applications digital certificate.ppt
ubaidullah75790
 
Authentication services
Greater Noida Institute Of Technology
 
Apple SSL Vulnerability Explained
Mike Chapple
 
Dr. Omar Ali Alibrahim - Ssl talk
promediakw
 
The world of encryption
Mohammad Yousri
 
[Note]x509
Yu-Ting Chen
 
Secure Gate / Reverse Proxy - WAF 1ere génération / Datelec
Sylvain Maret
 
#MoreCrypto : Introduction to TLS
Olle E Johansson
 
Introduction of an SSL Certificate
CheapSSLUSA
 
Web security
Muhammad Usman
 
All you need to know about transport layer security
Maarten Smeets
 
The last picks
Nafiur Rahman Tuhin
 
020618 Why Do we Need HTTPS
Jackio Kwok
 
Ad

More from Stephane Potier (7)

PDF
Create your own OPC UA information model
Stephane Potier
 
PDF
OPC UA - Information Models & Companion Specifications
Stephane Potier
 
PDF
Emballage 4.0 : vers l'excellence opérationnelle
Stephane Potier
 
PDF
Industry 4.0 - Enabling operational excellence of packaging lines
Stephane Potier
 
PDF
Open standards - Key to success for Industry 4.0
Stephane Potier
 
PDF
Industrial Ethernet Facts - The 5 major technologies
Stephane Potier
 
PDF
Safety versus security
Stephane Potier
 
Create your own OPC UA information model
Stephane Potier
 
OPC UA - Information Models & Companion Specifications
Stephane Potier
 
Emballage 4.0 : vers l'excellence opérationnelle
Stephane Potier
 
Industry 4.0 - Enabling operational excellence of packaging lines
Stephane Potier
 
Open standards - Key to success for Industry 4.0
Stephane Potier
 
Industrial Ethernet Facts - The 5 major technologies
Stephane Potier
 
Safety versus security
Stephane Potier
 
Ad

Recently uploaded (20)

PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PPTX
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PDF
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PPTX
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
Next Generation AI: Anticipatory Intelligence, Forecasting Inflection Points ...
dleka294658677
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
Kubernetes - Architecture & Components.pdf
geethak285
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Securing Model Context Protocol with Keycloak: AuthN/AuthZ for MCP Servers
Hitachi, Ltd. OSS Solution Center.
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 

An introduction to X.509 certificates

  • 1. An introduction to X.509 certificates Stéphane Potier stephane.potier [at] br-automation.com
  • 2. Basics of cryptography Symmetric cryptography Private/Public-key algorithms Secure Hash Function Digital Signature
  • 3. Symmetric cryptography Symmetric cryptography (e.g. AES) is used for data encryption A secret ciphering key is used for both encryption and decryption (128 or 256 bits recommended) The secret ciphering key must be known by both client and server, it must be exchanged in a secure way between them Based on secret ciphering key
  • 4. Public and Private Key pair The Public and Private Key pair comprise of two uniquely mathematically related cryptographic keys • A public key is made available to everyone • A private key is confidential to its owner Whatever is encrypted with a Public Key may only be decrypted by its corresponding Private Key and vice versa Public and Private Key pair is used by : • Asymmetrical cryptography, for confidentiality • Digital signature, for authentication Unpredictable large random numbers
  • 5. Asymmetrical cryptography Public-key cryptography is a class of cryptographic protocols based on algorithms that require Public and Private Key pair • Public Key may be disseminated widely, Private Key is secret and only known by the owner • The Public Key is used to encrypt the message, the Private Key to decrypt it • For example, Bob uses the Public Key of Alice to encrypt a message. Alice is the only one that can decrypt the message. The message remains confidential to anyone else since they do not know Alice’s Private Key. Public-key algorithm
  • 6. Secure Hash Algorithm (SHA) Hash functions are used to map data of arbitrary size to data of fixed size In cryptography, hash function produce a checksum (hash value) used to verify data integrity A cryptographic hash function has following characteristics: • Minor change in the input data completely change the hash value • Easy verification that some input data maps to a given hash value • Difficulty to reconstruct input data from hash value SHA (Secure Hash Algorithm) is a famous cryptographic hash function • SHA0 is obsolete • SHA1 is deprecated since 31/12/2016 • SHA2 is currently recommended • SHA3 are newest version Integrity of data
  • 7. Digital signature Digital signature ensure authentication and integrity of data • Asymmetric cryptography used for data authentication • Cryptographic hash function used for data integrity Authentication and integrity of data
  • 8. Combining symmetric and asymmetric algorithms Symmetric cryptography • Fast encryption requiring less processing power • Secure exchange of ciphering key is necessary Asymmetric cryptography • Slow encryption method based on long keys (2048 bits) • Requires public key infrastructure Exchange of session key between Bob and Alice via asymmetric cryptography , then symmetric cryptography based on this session key Session key exchange
  • 10. X.509 certificate A digital certificate certifies the ownership of a public key by the named subject of the certificate The digital certificate itself is protected by a digital signature whose authenticity can be verified by the public key of the Certification Authority (CA) that issued the certificate Ensuring authenticity and integrity
  • 11. Certification Authority (CA) Certification Authority (CA) issues certificates Certificate is signed with the private key of the CA CA’s private key must be very private, it is the basis of all trust for issued certificates Trusted third party issuing certificates
  • 12. Obtaining digital certificate A certificate signing request (CSR) is sent from an applicant to a certificate authority in order to apply for a digital identity certificate Certificate signing request
  • 13. Verifying digital certificate Authentication and Integrity of a certificate is verified using the Public Key of the Certification Authority that issued that certificate Authentication and Integrity check
  • 14. Certification path Chain of trust • A certificate contains its issuer (CA that signed it) • The issuer’s certificate also contains its issuer (CA that signed issuer’s certificate) • This chain of certificates is called a certification path Digital certificates are verified using a chain of trust
  • 15. Root certificate A root certificate is the top-most certificate of the certification path A root certificate is issued by a trusted certificate authority (CA), which self-sign it The root certificate is usually made trustworthy by secure physical distribution (distributed with operating system) Top-most certificate of the certification path Self-signed
  • 16. Verification of digital certificates 1. Client (i.e. web browser) initiate a TLS handshake with Amazon website, and gets certificates for both Amazon and Symantec 2. Client verifies Amazon’s certificate using Symantec’s Public Key contained in Symantec’s certificate 3. Client verifies Symantec’s certificate using VeriSign’s Public Key contained in VeriSign’s certificate (VeriSign’s certificate is a root certificate locally stored on the client by the operating system) Digital certificates are verified using a chain of trust
  • 17. Self-signed certificate A self-signed certificate : • Is signed by issuer to identify itself • Is signed by issuer with its own private key • Has no Certificate Authority The benefits: • Self-signed certificates are free of charge (unlike CA issued certificates) The risks : • Self-signed certificates are not issued by a trusted certificate authority (1) • Since client can not trust this self-signed certificate, it will raise a warning • Users must avoid being “trained” to bypass warnings or add exceptions → An entity accepting a self-signed certificate must follow similar trusting process than the addition of a new CA certificate (1) Excepted for root certificates that are self-signed and issued by trusted certification authority Risks and benefits
  • 18. X.509 certificate encodings and file extensions DER vs. CRT vs. CER vs. PEM Certificate encodings Encoding type PEM (Privacy Enhanced Mail) Base64 ASCII encoding DER (Distinguished Encoding Rules) Binary encoding Certificate file extension Encoding type .cer PEM or DER .crt PEM or DER .der DER .pem PEM DER encoded, .cer file extension, certificate PEM encoded, .pem file extension, certificate
  • 19. Certificate store A certificate store is used to store and manage digital certificates Certificate store usually contains : • Own private keys • Own certificates • Trusted 3rd party certificates • Revocation list (certificates revoked by the issuing CA before their scheduled expiration date and should no longer be trusted) Most well-known root certificates are usually stored in the certificate store It is possible to add a root (signed by CA) certificate or a self-signed certificate in the certificate store Only add a trusted certificate in the certificate store !!! Storage of digital certificates
  • 20. Expired certificate Every certificate has an expiry date, meaning the time and date past which the certificate is no longer valid The client determines what happens once certificate expires on a server • The client can not connect to the server • A warning is raised to indicate certificate has expired • … Before current certificate expires, a new certificate must be installed in the server Validity date expiry