SlideShare a Scribd company logo
2
Most read
4
Most read
SSL	Certificates	&	Operations
Nisheed	Meethal
7	Nov’16
Chapters
• Purpose	of	SSL	certificates
• Request,	sign,	install	and	verify
• CA	Signed	vs.	Self	signed
• SSL	Certificate	types
• DV	(basic),	OV	(enhanced)	&	EV	(complete)
• OpenSSL
• Certificate	Structure
• Chain	of	trust
• Trust	Stores
• Certificate	pinning
• Free	certificates
Purpose	of	SSL	certificates
• Server	[/Client]	authentication	for	
source	[/dest]	validation	and	trust.
• Secure	data	transfer	using	encryption
SSL	Communication	Process
1. Server	authentication	(Handshake)
2. Key	Exchange
3. Encrypted	data	transfer	(Record)
Highest SSL Version, Ciphers Supported,
Data Compression Methods,
Session Id = 0,
Random Data
Selected SSL Version, Selected Cipher,
Selected Data Compression Method, Assigned
Session Id, Random Data, Server Certificate
(Client Certificate Request)
Server Hello Done
Indicates that further communication to server will be encrypted
Digest of all SSL handshake commands for integrity check
Indicates that further communication to client will be encrypted
Digest of all SSL handshake commands for integrity check
Request,	sign,	install	and	verify
3.	Get	it	signed	by	CA,	say	mysite.crt
Cert	verification	by	browser
▶ openssl genrsa -out mysite.key 4096
▶ openssl req -new -key mysite.key -out mysite.csr
2.	Send	mysite.csr to	the	CA	of	your	choice.
1.	Generate	the	private	key	and	certificate	signing	request	for	your	site.
4.	Install		the	certificate
▶ openssl req -x509 -newkey rsa:4096 -keyout mysite.key -out mysite.crt -days 365
CA	Signed
Self	Signed
1.	Generate	the	private	key	and	self	signed	certificate	for	365days.
2.	Install		the	certificate
SSL	Certificate	types	(DV,OV,EV)
• DV	– Domain	Validated	(Basic)
• Small	or	medium	level	website	owners	who	only	wish	to	encrypt	their	domain	can	
issue	DV	SSL	certificate.	(https://www.ycombinator.com/,	https://www.nisheed.com)
• Features
• Green	padlock
• Lower	price
• Quick	issuance	within	minutes
• No	paper	work	or	documentation	required	for	validation.	Validated	againest	the	
domain. It	does	not	guarantee	the	identity	of	the	website's	owner	nor	the	actual	
existence	of	the	organization
• 99.9%	mobile	and	web	browser	compatibility
• Comes	up	with	Wildcard	and	Multi	Domain	features
• Reissue	as	many	times	as	needed	during	the	validity	period
• Validation	process	(email,file,registrar)
• https://aboutssl.org/domain-validated-ssl-validation-process
SSL	Certificate	types	(DV,OV,EV)
• OV	– Organization	Validated	(Enhanced)
• Business	identity	level	trust.	Organization	name	printed	in	the	certificate.	
(https://www.intuit.com/,	https://www.icicbank.com,	https://www.reddit.com/ )
• Features
• Green	padlock	
• 1-3	days	for	issuance
• More	trusted	than	DV
• Organization	name	is	validated	and	part	of	the	certificate.	(Issue	to	Organization	and	
Subject	are	filled	up)
• https://aboutssl.org/document-require-for-ov-ssl-code-signing-certificate
SSL	Certificate	types	(DV,OV,EV)
• EV	– Extended	Validated	(Complete)
• For	trusted	and	high	security	sites	(https://www.godaddy.com,	https://www.actalis.it/,	
https://www.geotrust.com/,	https://www.online.citibank.co.in/ )
• Features
• Green	Address	Bar	+	Organization	Name	+	Trust	Seal	
• Up	to	10	business	 days	for	issuance	&	Very	Strict	Validation	Process
• OV	by	default	+	High	256-bit	encryption	with	2048-bit	Key	Length
• Multi	domain	with	SAN	only.
• https://aboutssl.org/document-require-for-ev-ssl-certificate
OpenSSL
Read	cert	(online)
openssl s_client -connect www.google.com:443 < /dev/null 2>/dev/null
openssl s_client -showcerts -connect www.google.com:443 < /dev/null 2>/dev/null
Read	the	cert	- x509	decoded	 (online)
openssl s_client -connect qbo.intuit.com:443 < /dev/null 2>/dev/null | openssl x509 -in
/dev/stdin –text
Check	expiry	[startdate,	fingerpring,	…]
openssl s_client -connect qbo.intuit.com:443 < /dev/null 2>/dev/null | openssl x509 -in
/dev/stdin -noout –enddate [-startdate –fingerprint -sha1, …]
Verify	the	key	and	cert	(offline)
openssl rsa -in admin.prod-lvdc.qbo.ie.intuit.com.key -noout -modulus | openssl shasum
openssl x509 -in admin.prod-lvdc.qbo.ie.intuit.com.crt -noout -modulus | openssl shasum
Public	key	extraction	from	Private	key
openssl rsa -in mysite.key -pubout > mysite.pub.key
openssl req -noout -in mysite.csr –pubkey > mysite.pub.key
Remove	passphrase	from	privae	key
openssl rsa -in mysite.key -out nopassphrase_mysite.key
Certificate	Structure
x509	- PKIX	(Public	Key	Infrastructure)	certificate	- rfc6818
Encoding
DER		=>	Binary	DER	encoded	certs.	(appear	as	.cer/.crt	files)
PEM	=>	ASCII	(Base64)	armored	data	prefixed	with	a	“—– BEGIN	…”	line.	(appears	as	.cer/.crt/.pem	files)
File	extensions
.crt	=>	*nix	convention	of	binary	DER	or	Base64	PEM
.cer	=>	Microsoft	covention	of	binary	DER	or	Base64	PEM
.key	=>	public/private	PKCS#8	keys.	DER	or	PEM.
#	View	cert	content
▶ openssl x509 -in ServerCertificate.pem -text -noout
▶ openssl x509 -in ServerCertificate.der -inform der -text -noout
#	Encoding	conversion
▶ openssl x509 -in ServerCertificate.cer -outform der -out ServerCertificate.der
▶ openssl x509 -in ServerCertificate.der -inform der -outform pem -out ServerCertificate.pem
Certificate	Structure
▶ openssl	 s_client	-connect	qbo.intuit.com:443	<	/dev/null	 2>/dev/null	 |	openssl	 x509	-in	/dev/stdin	 –text
▶ openssl	s_client	–connect	google.com:443		-showcerts	<	/dev/null	2>/dev/null
Google.com	(EE/Leaf)
GIA	(ICA)	
Geotrust	(ICA)
Equifax	(root	CA)
Chain	of	Trust
Trust	Stores
• Application	trust	stores
• Browser
• Public	keys	of	all	major	CAs	come	with	release
• Java (tomcat,coldfusion	etc.)
• Mostly	there	but	less	frequently	updated.	
• You	need	to	take	care	if	customized.
▶ /usr/local/java/jre/bin/keytool -import -v -alias
SHA2_Standard_Inter_Symantec_Class_3_Standard_SSL_CA_G4 -file
/$path/SHA2_Standard_Inter_Symantec_Class_3_Standard_SSL_CA_G4.cer -keystore
/application/conf/jssecacerts -storepass changeit –noprompt
▶ /usr/local/java/jre/bin/keytool -list -v -keystore /application/conf/jssecacerts -storepass changeit –
noprompt
▶ /usr/cfusion8/runtime/jre/bin/keytool -import -v -alias SHA2_EV_Inter_Symantec_Class_3_EV_SSL_CA_G3 -
file /root/SHA2_EV_Inter_Symantec_Class_3_EV_SSL_CA_G3.cer -keystore
/usr/cfusion8/runtime/jre/lib/security/cacerts -storepass changeit
▶ /usr/cfusion8/runtime/jre/bin/keytool -list -v -keystore /usr/cfusion8/runtime/jre/lib/security/cacerts
-storepass changeit
When	should	you	update	the	application	trust	store?
Certificate	pinning
HTTP	Public	Key	Pinning,	or	HPKP	(rfc7469).	
This	standard	allows	websites	to	send	an	HTTP	header	instructing	the	browser	to	remember	(or	
"pin")	parts	of	its	SSL	certificate	chain.	The	browser	will	then	refuse	subsequent	connections	that	
don't	match	the	pins	that	it	has	previously	received.	Here's	an	example	of	an	HPKP	header:
Public-Key-Pins:
pin-sha256="d6qzRu9zOECb90Uez27xWltNsj0e1Md7GkYYkVoZWmM=";
pin-sha256="LPJNul+wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ=";
max-age=259200
Public-Key-Pins-Report-Only:
max-age=2592000;
pin-sha256="E9CZ9INDbd+2eRQozYqqbQ2yXLVKB9+xcprMF+44U1g=";
pin-sha256="LPJNul+wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ=";
report-uri="https://example.net/pkp-report"
#	Generate	private	key	and	csr.
▶ openssl genrsa -out mysite.key 4096
▶ openssl req -new -key mysite.key -out mysite.csr
#	Get	the	crt	from	CA
▶ openssl x509 -noout -in mysite.crt -pubkey | openssl asn1parse -noout -inform pem -out
mysite.pub.key
▶ openssl dgst -sha256 -binary mysite.pub.key | openssl enc -base64
#	Form	the	header	and	add	to	web	server	(eg:- apache).
Header add Public-Key-Pins "max-age=500; includeSubDomains;
pin-sha256="wBVXRiGdJMKG7vQhr9tZ9br9Md4l7cO69LF2a88Au/o=";
Free	&	Open	certificates
• Let’s	Encrypt
• https://letsencrypt.org/getting-started/
Useful	resources:
https://www.ssllabs.com/ssltest/
https://aboutssl.org/ssl-tools/ssl-checker.php
https://tools.ietf.org/html/rfc6818
https://certbot.eff.org/

More Related Content

PDF
DNS exfiltration using sqlmap
PDF
Alphorm.com Formation VirtualBox
PDF
Linux Basic Commands
PPTX
Terraform
PPTX
Aruba ClearPass Exchange Deep Dive
PDF
Git interview questions | Edureka
PPTX
Sharing experience implementing Direct NFS
PPTX
Linux User Management
DNS exfiltration using sqlmap
Alphorm.com Formation VirtualBox
Linux Basic Commands
Terraform
Aruba ClearPass Exchange Deep Dive
Git interview questions | Edureka
Sharing experience implementing Direct NFS
Linux User Management

What's hot (20)

PDF
Chef vs Puppet vs Ansible vs SaltStack | Configuration Management Tools Compa...
PPTX
SSO introduction
PPTX
Single sign on - SSO
PPT
RADIUS
PDF
From frustration to fascination: dissecting Replication
PDF
Lazy vs. Eager Loading Strategies in JPA 2.1
PDF
Ansible
PPTX
Troopers 19 - I am AD FS and So Can You
PDF
Open ssl certificate (https) for hotspot mikrotik
PDF
Livraison en continue avec l'outillage devops - Jenkins, Ansible, Docker et ...
PDF
What Is OpenStack | OpenStack Tutorial For Beginners | OpenStack Training | E...
PPTX
Abusing Microsoft Kerberos - Sorry you guys don't get it
PPTX
Azure Infrastructure as Code and Hashicorp Terraform
PPTX
Devops architecture
ODP
Proxmox Talk - Linux Fest Northwest 2018
PDF
Linux systems - Linux Commands and Shell Scripting
PPTX
Terraform Basics
PPTX
Eventual consistency vs Strong consistency what is the difference
Chef vs Puppet vs Ansible vs SaltStack | Configuration Management Tools Compa...
SSO introduction
Single sign on - SSO
RADIUS
From frustration to fascination: dissecting Replication
Lazy vs. Eager Loading Strategies in JPA 2.1
Ansible
Troopers 19 - I am AD FS and So Can You
Open ssl certificate (https) for hotspot mikrotik
Livraison en continue avec l'outillage devops - Jenkins, Ansible, Docker et ...
What Is OpenStack | OpenStack Tutorial For Beginners | OpenStack Training | E...
Abusing Microsoft Kerberos - Sorry you guys don't get it
Azure Infrastructure as Code and Hashicorp Terraform
Devops architecture
Proxmox Talk - Linux Fest Northwest 2018
Linux systems - Linux Commands and Shell Scripting
Terraform Basics
Eventual consistency vs Strong consistency what is the difference
Ad

Similar to SSL Certificates and Operations (20)

PDF
Training Slides: 302 - Securing Your Cluster With SSL
PDF
320.1-Cryptography
PPTX
Secure socket layer
 
PDF
Seattle C* Meetup: Hardening cassandra for compliance or paranoia
PPTX
Types of ssl commands and keytool
PDF
Hardening cassandra for compliance or paranoia
PDF
The Last Pickle: Hardening Apache Cassandra for Compliance (or Paranoia).
PDF
Dr. Omar Ali Alibrahim - Ssl talk
PDF
SSL Everywhere!
PDF
InSecure Remote Operations - NullCon 2023 by Yossi Sassi
PDF
WebLogic in Practice: SSL Configuration
PDF
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...
PPT
SSL.ppt
PPTX
How To Create a SSL Certificate on Nginx for Ubuntu.pptx
PDF
Webinar SSL English
PDF
TLS and Certificates
PDF
Securing Microservices using Play and Akka HTTP
PDF
BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...
PDF
Cisco iso based CA (certificate authority)
PPTX
Certificate pinning in android applications
Training Slides: 302 - Securing Your Cluster With SSL
320.1-Cryptography
Secure socket layer
 
Seattle C* Meetup: Hardening cassandra for compliance or paranoia
Types of ssl commands and keytool
Hardening cassandra for compliance or paranoia
The Last Pickle: Hardening Apache Cassandra for Compliance (or Paranoia).
Dr. Omar Ali Alibrahim - Ssl talk
SSL Everywhere!
InSecure Remote Operations - NullCon 2023 by Yossi Sassi
WebLogic in Practice: SSL Configuration
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...
SSL.ppt
How To Create a SSL Certificate on Nginx for Ubuntu.pptx
Webinar SSL English
TLS and Certificates
Securing Microservices using Play and Akka HTTP
BlueHat v17 || Where, how, and why is SSL traffic on mobile getting intercept...
Cisco iso based CA (certificate authority)
Certificate pinning in android applications
Ad

Recently uploaded (20)

PDF
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
PPTX
artificial intelligence overview of it and more
PDF
Introduction to the IoT system, how the IoT system works
PPTX
Introduction to cybersecurity and digital nettiquette
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPTX
Database Information System - Management Information System
PDF
The Ikigai Template _ Recalibrate How You Spend Your Time.pdf
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
Mathew Digital SEO Checklist Guidlines 2025
DOCX
Unit-3 cyber security network security of internet system
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
E -tech empowerment technologies PowerPoint
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
Sims 4 Historia para lo sims 4 para jugar
PPT
250152213-Excitation-SystemWERRT (1).ppt
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
Funds Management Learning Material for Beg
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
artificial intelligence overview of it and more
Introduction to the IoT system, how the IoT system works
Introduction to cybersecurity and digital nettiquette
Design_with_Watersergyerge45hrbgre4top (1).ppt
Database Information System - Management Information System
The Ikigai Template _ Recalibrate How You Spend Your Time.pdf
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
Unit-1 introduction to cyber security discuss about how to secure a system
Mathew Digital SEO Checklist Guidlines 2025
Unit-3 cyber security network security of internet system
The New Creative Director: How AI Tools for Social Media Content Creation Are...
E -tech empowerment technologies PowerPoint
Module 1 - Cyber Law and Ethics 101.pptx
Sims 4 Historia para lo sims 4 para jugar
250152213-Excitation-SystemWERRT (1).ppt
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Funds Management Learning Material for Beg
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...

SSL Certificates and Operations