SlideShare une entreprise Scribd logo
1  sur  32
© 2014 VMware Inc. All rights reserved.
SSL - Certificate usage in vSphere 5.1/5.5
Frank Buechsel
September 18th 2014
Agenda
• General SSL Overview
• VMware specific requirements
• SSL Automation Tool requirements and demos
• Useful openssl commands during troubleshooting
• Frequently observed issues
2
General SSL Overview
What is SSL?
• SSL stands for “Secure Sockets Layer”
– The security is two-fold:
• Encryption
• Trust
• SSL creates an encrypted “tunnel” between client and server
• Other protocols – e.g. HTTP, LDAP – use the tunnel
• Typical SSL Clients: Web Browsers, vSphere Client
• Typical SSL Servers: Web servers, ESXi, vCenter Server
• An application can act as both server and client
– vCenter is a client to ESXi
– vCenter is a server to the vSphere Client
4
X.509 structure
• An X.509 certificate is a binary encoded file. It is not human-readable.
5
Distinguished Names used by x.509
• A Distinguished Name (DN) in X.509 is similar to an FQDN in DNS
• A DN can contain:
– Country (C), Organisation (O), Organisational Unit (OU), State (ST), Common Name (CN), among
others
• The CN value generally used for FQDN in server certificates, and to identify the CA authority in
CA certificates
• See RFC 5280 for more details
6
Subject Alternative Names
• X.509 v3 added Subject Alternate Name to certificates
• subjectAltName can contain multiple host names (DNS name) and IP addresses
• FQDN, short-name and IP address can all be listed in one subjectAltName value
• The SSL client has to be subjectAltName aware
7
vCenter certificate usage examples
• SSL Connections are used to connect and trust
– vCenter to ESXi
– vCenter to SSO
– vSphere Web Client to vCenter
– vSphere Client to ESXi
– vSphere Client connections to the vCenter Tomcat server
• SSL Certificates are also involved in protecting data in vCenter Server
– The vCenter Database Password
– Any passwords stored in customization profiles
– The randomly generated vpxuser passwords for each managed ESXi
8
VMware specific requirements
Certificate requirements
• Generating certificates for use with the VMware SSL Certificate Automation Tool(2044696)
• Implementing CA signed SSL certificates with vSphere 5.x (2034833)
• A unique Subject Distinguished Name encoded within the certificate
– A unique OU is not mandatory.
– Having a unique OU is one way to achieve unique DN, but is certainly not the only way
• Include a subjectAlternateName field
• Include digitalSignature, keyEncipherment, and dataEncipherment components for Key Usage
• Wildcard certificates are not supported
10
Private key requirements
• After upgrading to vCenter Server 5.5 Update 1, logging in to vCenter Server reports the error:
Failed to verify the SSL certificate for one or more vCenter Server systems (2074942)
• The certificates and private keys must meet these requirements:
– Private key algorithm: RSA
– Private key length: >= 1024, max 2048
– Private key standard: PKCS#1 or PKCS#8
– Private key storage: PEM
• Recommended certificate signature algorithm are:
– sha256WithRSAEncryption 1.2.840.113549.1.1.11
– sha384WithRSAEncryption 1.2.840.113549.1.1.12
– sha512WithRSAEncryption 1.2.840.113549.1.1.13
11
Certificate chain requirements
• Single PEM file containing a sequence of PEM (base64) encoded X.509 certificates ordered
from the leaf certificate to and including the self-signed authority certificate
• No comments, spaces and tabs, before, between and after certificates
• Each certificate begins with -----BEGIN CERTIFICATE------ and ends with -----END
CERTIFICATE------, on a new line with no spaces before or after
• No extra certificates are in the file
• The certificate chain is complete.
– File contains all certificates
– Chain can be completed from Windows trust store
12
SSL Automation Tool
Getting the SSL Automation Tool
• Download in the My VMware portal
• Also included on the 5.5 U1 ISO
14
Requirements for using the SSL Automation Tool
• Access to each server and administrative privileges
• Components need to be already installed
• New certificates and private keys pre-created
• Scheduled downtime for all components (1-2 hours minimum)
• Windows version of vCenter Server 5.1 or higher
• All components on the same build level
• The path or file name for certificates and keys does not contain special characters
• Supported platforms:
– Windows 2008 R2 SP1
– Windows 2012 Standard
• Deploying and using the SSL Certificate Automation Tool 5.5 (2057340)
15
Preparations before using the SSL Automation Tool
• Take a snapshot or backup of the affected components to expedite recovery times in case of
failure.
• Updating certificates for third-party components such as load balancers is still a manual
process
• Shut down any dependent solutions
– VMware Site Recovery Manager
– vSphere Data Recovery
– vCloud Director
– Any third-party solution which may be connecting to vCenter Server
• Prepare passwords for
– vCenter Server Admin
– SSO Admin
– vCenter Server database
16
Creating certificate requests
17
Planning certificate replacement
18
Replacing certificates
19
Useful openssl commands
during troubleshooting
OpenSSL commands
• Display a certificate request
openssl req -in rui.csr -text -noout
• Display a certificate
openssl x509 -in rui.crt -text -noout
• Verify the password for the pfx file
openssl pkcs12 -in rui.pfx -info
• Get a domain controller certificate
openssl s_client -connect fqdn:3269
• Export certificate and private key from pfx
openssl pkcs12 -in rui.pfx -passin pass:password -out chain.pem -nodes
21
What to look for in certificates and certificate requests
22
What to look for in certificates and certificate requests
23
Frequently observed issues
Common Issues
• Symptom
– SSL Certificate Update fails with “Cannot validate the Lookup Service connection”
• Resolution
– Check that SSO is running correctly
– Check SSO admin credentials
– Try cmd.exe instead of PowerShell
– Try to avoid escape characters in passwords
25
26
Common Issues
• Symptom
– Certificate update fails with “The certificate chain file does not contain a valid certification path”
• Resolution
– Check for correct certificate chain
– Check for comments, whitespaces, special characters
27
28
Common Issues
• Symptom
– Replacing vCenter Server certificates fails with “Different certificates are used for SSL and Solution
user”
• Resolution
– Find the certificate with the duplicate Subject DN
– Replace this certificate
– Validating and correcting errors for an upgraded VMware vCenter Server using the SSL Certificate
Automation Tool (2048202)
29
30
Common Issues
• Symptom
– Updating vCenter Server certificate fails with “The certificate might not be unique”
• Resolution
– Certificate Subject DN is not unique
– Service ID in vpxd.cfg has multiple entry, is empty or contains the word “vCenterService”
31
32

Contenu connexe

Tendances

WebLogic Administration course outline
WebLogic Administration course outlineWebLogic Administration course outline
WebLogic Administration course outline
Vybhava Technologies
 
Partner Presentation vSphere6-VSAN-vCloud-vRealize
Partner Presentation vSphere6-VSAN-vCloud-vRealizePartner Presentation vSphere6-VSAN-vCloud-vRealize
Partner Presentation vSphere6-VSAN-vCloud-vRealize
Erik Bussink
 

Tendances (20)

2016.05.23 wivmug user con - vsphere 6 upgrade
2016.05.23   wivmug user con - vsphere 6 upgrade2016.05.23   wivmug user con - vsphere 6 upgrade
2016.05.23 wivmug user con - vsphere 6 upgrade
 
2016.11.03 ncwivmug super meeting - v sphere 6 upgrade
2016.11.03   ncwivmug super meeting - v sphere 6 upgrade2016.11.03   ncwivmug super meeting - v sphere 6 upgrade
2016.11.03 ncwivmug super meeting - v sphere 6 upgrade
 
WebLogic in Practice: SSL Configuration
WebLogic in Practice: SSL ConfigurationWebLogic in Practice: SSL Configuration
WebLogic in Practice: SSL Configuration
 
Emad Younis - Keynote
Emad Younis - Keynote Emad Younis - Keynote
Emad Younis - Keynote
 
Nashville VMUG Keynote April 8 2015 - vSphere 6
Nashville VMUG Keynote April 8 2015 - vSphere 6Nashville VMUG Keynote April 8 2015 - vSphere 6
Nashville VMUG Keynote April 8 2015 - vSphere 6
 
Nordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter ServerNordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter Server
 
WebLogic Administration course outline
WebLogic Administration course outlineWebLogic Administration course outline
WebLogic Administration course outline
 
Whats new v sphere 6
Whats new v sphere 6Whats new v sphere 6
Whats new v sphere 6
 
VMworld 2015: Managing vSphere 6 Deployments and Upgrades
VMworld 2015: Managing vSphere 6 Deployments and Upgrades VMworld 2015: Managing vSphere 6 Deployments and Upgrades
VMworld 2015: Managing vSphere 6 Deployments and Upgrades
 
Weblogic online training
Weblogic online trainingWeblogic online training
Weblogic online training
 
Weblogic server
Weblogic serverWeblogic server
Weblogic server
 
London VMUG - Upgrade vSphere 5.5 to 6.5
London VMUG - Upgrade vSphere 5.5 to 6.5London VMUG - Upgrade vSphere 5.5 to 6.5
London VMUG - Upgrade vSphere 5.5 to 6.5
 
vsphere5.5 to 6.5
vsphere5.5 to 6.5vsphere5.5 to 6.5
vsphere5.5 to 6.5
 
Introduction to Role Based Administration in WildFly 8
Introduction to Role Based Administration in WildFly 8Introduction to Role Based Administration in WildFly 8
Introduction to Role Based Administration in WildFly 8
 
VMworld 2015: VMware vSphere Certificate Management for Mere Mortals
VMworld 2015: VMware vSphere Certificate Management for Mere MortalsVMworld 2015: VMware vSphere Certificate Management for Mere Mortals
VMworld 2015: VMware vSphere Certificate Management for Mere Mortals
 
SSL Everywhere!
SSL Everywhere!SSL Everywhere!
SSL Everywhere!
 
Partner Presentation vSphere6-VSAN-vCloud-vRealize
Partner Presentation vSphere6-VSAN-vCloud-vRealizePartner Presentation vSphere6-VSAN-vCloud-vRealize
Partner Presentation vSphere6-VSAN-vCloud-vRealize
 
VMware Advance Troubleshooting Workshop - Day 2
VMware Advance Troubleshooting Workshop - Day 2VMware Advance Troubleshooting Workshop - Day 2
VMware Advance Troubleshooting Workshop - Day 2
 
VMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical WalkthroughVMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical Walkthrough
 
A deep dive into supporting xen desktop
A deep dive into supporting xen desktopA deep dive into supporting xen desktop
A deep dive into supporting xen desktop
 

Similaire à SSL deep dive vCenter Server 5.5

An Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security AssessmentsAn Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security Assessments
EnclaveSecurity
 

Similaire à SSL deep dive vCenter Server 5.5 (20)

June OpenNTF Webinar - Domino V12 Certification Manager
June OpenNTF Webinar - Domino V12 Certification ManagerJune OpenNTF Webinar - Domino V12 Certification Manager
June OpenNTF Webinar - Domino V12 Certification Manager
 
An Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security AssessmentsAn Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security Assessments
 
W982 05092004
W982 05092004W982 05092004
W982 05092004
 
MCSA 70-412 Chapter 06
MCSA 70-412 Chapter 06MCSA 70-412 Chapter 06
MCSA 70-412 Chapter 06
 
Types of ssl commands and keytool
Types of ssl commands and keytoolTypes of ssl commands and keytool
Types of ssl commands and keytool
 
DEF CON 24 - workshop - Craig Young - brainwashing embedded systems
DEF CON 24 - workshop - Craig Young - brainwashing embedded systemsDEF CON 24 - workshop - Craig Young - brainwashing embedded systems
DEF CON 24 - workshop - Craig Young - brainwashing embedded systems
 
SAP Host Agent x509 authentication
SAP Host Agent x509 authenticationSAP Host Agent x509 authentication
SAP Host Agent x509 authentication
 
SAP Host Agent x509 authentication
SAP Host Agent x509 authenticationSAP Host Agent x509 authentication
SAP Host Agent x509 authentication
 
Securing Novell GroupWise through SSL and S/MIME
Securing Novell GroupWise through SSL and S/MIMESecuring Novell GroupWise through SSL and S/MIME
Securing Novell GroupWise through SSL and S/MIME
 
Securing Sensitive Data with Azure Key Vault (Tom Kerkhove @ ITProceed)
Securing Sensitive Data with Azure Key Vault (Tom Kerkhove @ ITProceed)Securing Sensitive Data with Azure Key Vault (Tom Kerkhove @ ITProceed)
Securing Sensitive Data with Azure Key Vault (Tom Kerkhove @ ITProceed)
 
ITProceed 2015 - Securing Sensitive Data with Azure Key Vault
ITProceed 2015 - Securing Sensitive Data with Azure Key VaultITProceed 2015 - Securing Sensitive Data with Azure Key Vault
ITProceed 2015 - Securing Sensitive Data with Azure Key Vault
 
Service management Dec 11
Service management Dec 11Service management Dec 11
Service management Dec 11
 
Service Management Dec 11
Service Management Dec 11Service Management Dec 11
Service Management Dec 11
 
Training Slides: 302 - Securing Your Cluster With SSL
Training Slides: 302 - Securing Your Cluster With SSLTraining Slides: 302 - Securing Your Cluster With SSL
Training Slides: 302 - Securing Your Cluster With SSL
 
Managing your secrets in a cloud environment
Managing your secrets in a cloud environmentManaging your secrets in a cloud environment
Managing your secrets in a cloud environment
 
CCNP Security-VPN
CCNP Security-VPNCCNP Security-VPN
CCNP Security-VPN
 
Što danas zamjenjuje Small Business Server?
Što danas zamjenjuje Small Business Server?Što danas zamjenjuje Small Business Server?
Što danas zamjenjuje Small Business Server?
 
Certificate pinning in android applications
Certificate pinning in android applicationsCertificate pinning in android applications
Certificate pinning in android applications
 
An Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security AssessmentsAn Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security Assessments
 
Securing your web apps now
Securing your web apps nowSecuring your web apps now
Securing your web apps now
 

Dernier

%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Dernier (20)

%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 

SSL deep dive vCenter Server 5.5

  • 1. © 2014 VMware Inc. All rights reserved. SSL - Certificate usage in vSphere 5.1/5.5 Frank Buechsel September 18th 2014
  • 2. Agenda • General SSL Overview • VMware specific requirements • SSL Automation Tool requirements and demos • Useful openssl commands during troubleshooting • Frequently observed issues 2
  • 4. What is SSL? • SSL stands for “Secure Sockets Layer” – The security is two-fold: • Encryption • Trust • SSL creates an encrypted “tunnel” between client and server • Other protocols – e.g. HTTP, LDAP – use the tunnel • Typical SSL Clients: Web Browsers, vSphere Client • Typical SSL Servers: Web servers, ESXi, vCenter Server • An application can act as both server and client – vCenter is a client to ESXi – vCenter is a server to the vSphere Client 4
  • 5. X.509 structure • An X.509 certificate is a binary encoded file. It is not human-readable. 5
  • 6. Distinguished Names used by x.509 • A Distinguished Name (DN) in X.509 is similar to an FQDN in DNS • A DN can contain: – Country (C), Organisation (O), Organisational Unit (OU), State (ST), Common Name (CN), among others • The CN value generally used for FQDN in server certificates, and to identify the CA authority in CA certificates • See RFC 5280 for more details 6
  • 7. Subject Alternative Names • X.509 v3 added Subject Alternate Name to certificates • subjectAltName can contain multiple host names (DNS name) and IP addresses • FQDN, short-name and IP address can all be listed in one subjectAltName value • The SSL client has to be subjectAltName aware 7
  • 8. vCenter certificate usage examples • SSL Connections are used to connect and trust – vCenter to ESXi – vCenter to SSO – vSphere Web Client to vCenter – vSphere Client to ESXi – vSphere Client connections to the vCenter Tomcat server • SSL Certificates are also involved in protecting data in vCenter Server – The vCenter Database Password – Any passwords stored in customization profiles – The randomly generated vpxuser passwords for each managed ESXi 8
  • 10. Certificate requirements • Generating certificates for use with the VMware SSL Certificate Automation Tool(2044696) • Implementing CA signed SSL certificates with vSphere 5.x (2034833) • A unique Subject Distinguished Name encoded within the certificate – A unique OU is not mandatory. – Having a unique OU is one way to achieve unique DN, but is certainly not the only way • Include a subjectAlternateName field • Include digitalSignature, keyEncipherment, and dataEncipherment components for Key Usage • Wildcard certificates are not supported 10
  • 11. Private key requirements • After upgrading to vCenter Server 5.5 Update 1, logging in to vCenter Server reports the error: Failed to verify the SSL certificate for one or more vCenter Server systems (2074942) • The certificates and private keys must meet these requirements: – Private key algorithm: RSA – Private key length: >= 1024, max 2048 – Private key standard: PKCS#1 or PKCS#8 – Private key storage: PEM • Recommended certificate signature algorithm are: – sha256WithRSAEncryption 1.2.840.113549.1.1.11 – sha384WithRSAEncryption 1.2.840.113549.1.1.12 – sha512WithRSAEncryption 1.2.840.113549.1.1.13 11
  • 12. Certificate chain requirements • Single PEM file containing a sequence of PEM (base64) encoded X.509 certificates ordered from the leaf certificate to and including the self-signed authority certificate • No comments, spaces and tabs, before, between and after certificates • Each certificate begins with -----BEGIN CERTIFICATE------ and ends with -----END CERTIFICATE------, on a new line with no spaces before or after • No extra certificates are in the file • The certificate chain is complete. – File contains all certificates – Chain can be completed from Windows trust store 12
  • 14. Getting the SSL Automation Tool • Download in the My VMware portal • Also included on the 5.5 U1 ISO 14
  • 15. Requirements for using the SSL Automation Tool • Access to each server and administrative privileges • Components need to be already installed • New certificates and private keys pre-created • Scheduled downtime for all components (1-2 hours minimum) • Windows version of vCenter Server 5.1 or higher • All components on the same build level • The path or file name for certificates and keys does not contain special characters • Supported platforms: – Windows 2008 R2 SP1 – Windows 2012 Standard • Deploying and using the SSL Certificate Automation Tool 5.5 (2057340) 15
  • 16. Preparations before using the SSL Automation Tool • Take a snapshot or backup of the affected components to expedite recovery times in case of failure. • Updating certificates for third-party components such as load balancers is still a manual process • Shut down any dependent solutions – VMware Site Recovery Manager – vSphere Data Recovery – vCloud Director – Any third-party solution which may be connecting to vCenter Server • Prepare passwords for – vCenter Server Admin – SSO Admin – vCenter Server database 16
  • 21. OpenSSL commands • Display a certificate request openssl req -in rui.csr -text -noout • Display a certificate openssl x509 -in rui.crt -text -noout • Verify the password for the pfx file openssl pkcs12 -in rui.pfx -info • Get a domain controller certificate openssl s_client -connect fqdn:3269 • Export certificate and private key from pfx openssl pkcs12 -in rui.pfx -passin pass:password -out chain.pem -nodes 21
  • 22. What to look for in certificates and certificate requests 22
  • 23. What to look for in certificates and certificate requests 23
  • 25. Common Issues • Symptom – SSL Certificate Update fails with “Cannot validate the Lookup Service connection” • Resolution – Check that SSO is running correctly – Check SSO admin credentials – Try cmd.exe instead of PowerShell – Try to avoid escape characters in passwords 25
  • 26. 26
  • 27. Common Issues • Symptom – Certificate update fails with “The certificate chain file does not contain a valid certification path” • Resolution – Check for correct certificate chain – Check for comments, whitespaces, special characters 27
  • 28. 28
  • 29. Common Issues • Symptom – Replacing vCenter Server certificates fails with “Different certificates are used for SSL and Solution user” • Resolution – Find the certificate with the duplicate Subject DN – Replace this certificate – Validating and correcting errors for an upgraded VMware vCenter Server using the SSL Certificate Automation Tool (2048202) 29
  • 30. 30
  • 31. Common Issues • Symptom – Updating vCenter Server certificate fails with “The certificate might not be unique” • Resolution – Certificate Subject DN is not unique – Service ID in vpxd.cfg has multiple entry, is empty or contains the word “vCenterService” 31
  • 32. 32

Notes de l'éditeur

  1. SSL is an acronym for “Secure Sockets Layer” Cryptographic protocol to encrypt data Build a chain of trust Encrypted tunnel between a client and a server component Tunnel then is leveraged by other protocols Typical Clients and Servers
  2. Strict hierarchical system of certificate authorities to issue the certificates Binary file, not human readable Serial number, Issuer, Validity, Subject, Public Key Constraints, Key Usage, Subject Alternative Name Let’s look at the Subject (next slide)
  3. Logon name for SSO! Described as distinguished name as in AD Contains: Country, Org, Org Unit, Location, State General use as FQDN or identify CA in signing certs Excruciating detail in RFC 5280 Next up Subject Alt Name extension (next slide)
  4. Extension added in version 3 Contains multiple host names and IPs Everything can be listed in one extension field Circumvents the limitation of validity for only 1 host name Heavily used since 5.0 for internal tomcat communication, without it HW status, Perf Overview and several plugins break SSL client has to be aware (case for VMware software) Some examples of certificate usage (next slide)
  5. Used for connection and trust VC to ESXi + SSO NGC to VC C# to ESXi and tomcat Also protect sensitive data Database password in registry (host disconnects after replacement or reinstall) Password in customization profiles Vpxuser password VMware requirements (next slide)
  6. All details listed in these 2 KBs Unique Subject DN to register in SSO Include Subject Alt Name for tomcat Include digitalSignature, keyEncipherment, dataEncipherment for Key Usage No Wildcard cert support Private key requirements (next slide)
  7. Anyone knows this yellow banner? Java 7 Update 40 needs keys > 512 bit RSA format, minimum length 1024 bit PKCS1 or PKCS8 standard depending on Windows or VCSA PEM format as storage If sha1 deemed insecure take different algorithm Certificate chain requirements (next slide)
  8. Single PEM file Contain all certificates ordered from leaf to root certificate No comments, spaces or escape characters Specific start and termination string Put chain together with notepad++ (or similar, avoid notepad) No additional certificates Chain needs to be complete in file or from Windows Trust store SSL Automation tool (next slide)
  9. Download by selection correct version Drivers & Tools Automation Tools and SDKs section Included on 5.5 U1 ISO as well Installation is a simple unzip, no large footprint on the system needed
  10. Admin access to each server Components preinstalled Otherwise pre-staging install by copying certs, keys and an additional pfx file into the correct folders Pre-stage works for everything except SSO Certs and Keys are needed Downtime! Windows vCenter Same build No special characters in path names Details in KB
  11. Take snapshot / backup prior to doing anything Update of 3rd party, load balancer or upper stack products and VCSA still manual Shut down dependent solutions Prepare VC, SSO admin PW + VC DB PW
  12. 2 Part tool Ssl-environment.bat to prepare variables and file paths Ssl-updater.bat to run the command line tool If not done prior menu option 2 to go into Cert Request mode Saved to Install folder into “requests” sub directory
  13. Probably most important step of all Menu option 1, then each option for service Most common customer use cases: VC only, or admin facing certs: VC, IS, NGC update-planner.log saved into “logs” Directory
  14. Follow the steps from planner If services are distributed tool and certs need to be on every machine
  15. Display cert request Display cert Verify password for pfx Get domain controller cert Export certs and key from pfx
  16. Subject Extensions
  17. Match Subject to request Version Extensions Validity
  18. Cannot validate lookupservice connection SSO could not be running correctly (try logging in to VC) Check credentials for typos Try cmd.exe due to escape character handling ($ sign as example) Avoid escape chars in passwords (“ or \)
  19. Certificate chain is not valid Check for correct order of chain, missing or additional certificates Check for whitespaces, comments etc.
  20. Different certs used for SSL and solution user Find the offending cert and replace it Follow KB to reregister VC to SSO
  21. Certificate might not be unique Could be true Could be misleading, check vpxd.cfg for correct serviceID