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

PPTX
High Availability for Oracle SE2
PPTX
Linux process management
PDF
PySpark in practice slides
PDF
Spark SQL Tutorial | Spark Tutorial for Beginners | Apache Spark Training | E...
PPTX
Spark introduction and architecture
PPT
Overview about OracleVM and Oracle Linux
PDF
Secure coding-guidelines
PDF
ODA Backup Restore Utility & ODA Rescue Live Disk
High Availability for Oracle SE2
Linux process management
PySpark in practice slides
Spark SQL Tutorial | Spark Tutorial for Beginners | Apache Spark Training | E...
Spark introduction and architecture
Overview about OracleVM and Oracle Linux
Secure coding-guidelines
ODA Backup Restore Utility & ODA Rescue Live Disk

What's hot (20)

PPTX
Cassandra concepts, patterns and anti-patterns
PDF
Oracle GoldenGate Studio R12.2.1.1 セットアップガイド
DOCX
Oracle architecture
PPTX
Getting the Scylla Shard-Aware Drivers Faster
PDF
Oracle Cloud Infrastructure:2022年4月度サービス・アップデート
PDF
Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...
PDF
Introduction to PySpark
PDF
SSRF基礎
PPTX
Oracle Key Vault Overview
PDF
Oracle RAC 19c with Standard Edition (SE) 2 - Support Update
PPTX
Chapter 8
PDF
Oracle GoldenGate 19c を使用した 簡単データベース移行ガイド_v1.0
PPT
Less06 networking
PDF
Simplify Data Conversion from Spark to TensorFlow and PyTorch
PDF
Understanding oracle rac internals part 1 - slides
PDF
Wide Column Store NoSQL vs SQL Data Modeling
PDF
Apache Arrow Flight: A New Gold Standard for Data Transport
PDF
Backup and recovery in oracle
PPTX
Avro introduction
PDF
[Oracle Cloud Days Tokyo 2015] Oracle Database 12c最新情報 ~Maximum Availability ...
Cassandra concepts, patterns and anti-patterns
Oracle GoldenGate Studio R12.2.1.1 セットアップガイド
Oracle architecture
Getting the Scylla Shard-Aware Drivers Faster
Oracle Cloud Infrastructure:2022年4月度サービス・アップデート
Paper: Oracle RAC and Oracle RAC One Node on Extended Distance (Stretched) Cl...
Introduction to PySpark
SSRF基礎
Oracle Key Vault Overview
Oracle RAC 19c with Standard Edition (SE) 2 - Support Update
Chapter 8
Oracle GoldenGate 19c を使用した 簡単データベース移行ガイド_v1.0
Less06 networking
Simplify Data Conversion from Spark to TensorFlow and PyTorch
Understanding oracle rac internals part 1 - slides
Wide Column Store NoSQL vs SQL Data Modeling
Apache Arrow Flight: A New Gold Standard for Data Transport
Backup and recovery in oracle
Avro introduction
[Oracle Cloud Days Tokyo 2015] Oracle Database 12c最新情報 ~Maximum Availability ...
Ad

Similar to SSL Certificates and Operations (20)

PDF
Steam Learn: HTTPS and certificates explained
PPTX
Secure socket layer
 
PPTX
Certificate pinning in android applications
PPTX
SSL deep dive vCenter Server 5.5
PDF
320.1-Cryptography
PDF
OSCM 2024 | Ignite: Monitoring and maintaining self-signed certificates is da...
PPTX
Types of ssl commands and keytool
PDF
Fun With SHA2 Certificates
PPT
certificates.ppt
PDF
HashiTLS Demystifying Security Certs
PDF
Apache Web Server
PDF
Dr. Omar Ali Alibrahim - Ssl talk
PPTX
Ssl in a nutshell
PPT
Ssl Https Server
PPTX
Various Types of OpenSSL Commands and Keytool
PDF
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...
PDF
Cisco iso based CA (certificate authority)
PPTX
Secure Socket Layer SSL Certificate.pptx
PDF
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Steam Learn: HTTPS and certificates explained
Secure socket layer
 
Certificate pinning in android applications
SSL deep dive vCenter Server 5.5
320.1-Cryptography
OSCM 2024 | Ignite: Monitoring and maintaining self-signed certificates is da...
Types of ssl commands and keytool
Fun With SHA2 Certificates
certificates.ppt
HashiTLS Demystifying Security Certs
Apache Web Server
Dr. Omar Ali Alibrahim - Ssl talk
Ssl in a nutshell
Ssl Https Server
Various Types of OpenSSL Commands and Keytool
OTN tour 2015 Experience in implementing SSL between oracle db and oracle cli...
Cisco iso based CA (certificate authority)
Secure Socket Layer SSL Certificate.pptx
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Ad

Recently uploaded (20)

PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPTX
artificial intelligence overview of it and more
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PPTX
Funds Management Learning Material for Beg
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
Testing WebRTC applications at scale.pdf
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
Paper PDF World Game (s) Great Redesign.pdf
PPT
tcp ip networks nd ip layering assotred slides
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
The Internet -By the Numbers, Sri Lanka Edition
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
522797556-Unit-2-Temperature-measurement-1-1.pptx
An introduction to the IFRS (ISSB) Stndards.pdf
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
SASE Traffic Flow - ZTNA Connector-1.pdf
artificial intelligence overview of it and more
Introuction about WHO-FIC in ICD-10.pptx
Funds Management Learning Material for Beg
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Testing WebRTC applications at scale.pdf
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Decoding a Decade: 10 Years of Applied CTI Discipline
Job_Card_System_Styled_lorem_ipsum_.pptx
Tenda Login Guide: Access Your Router in 5 Easy Steps
Paper PDF World Game (s) Great Redesign.pdf
tcp ip networks nd ip layering assotred slides
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
The Internet -By the Numbers, Sri Lanka Edition

SSL Certificates and Operations