vSphere Security : ESXI Certificate with ADCS

Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on pinterest
Share on print
Share on email
Table of Contents

introduction

In previous article we have seen how to configure vCenter certificate with OpenSSL CA

In network pioneers  we believe in Diversity : so in this article  we will discuss how to configure ESXI certificate with another type of certificate authority CA : which is Microsoft ADCS [ Active Directory Certificate Authority

network diagram

For Better View > Open Image in different TAB

 please have a look to network diagram above 

we have :

  •  domain controller for AD   DC101.pioneers.lab with IP address 172.16.100.101 and configured with ADCS
  • To see how to configure ADCS , please press here
  • ESXI151 with  IP address 172.16.100.151   
  • ESXI152 with  IP address 172.16.100.152
  • ESXI153 with IP address 172.16.100.153
  •  VCenter server VCSA161.pioneers.lab with IP address 172.16.100.161  
  •  

Configuration Steps

 our steps to configure  ESXI with ADCS certificate include  : 

  • Check ESXI153    certificate
  • Configure  vCenter server ESXI153.pioneers.lab  to request new certificate
  • Create custom certificate based on request  
  • Convert certificate to PEM format
  • Import new custom create certificate to ESXI153
  • Verify certificate is installed

check current certificate

open web console  for ESXI153 https://esxi153.pioneers.lab

please note that connection is NOT secure and certificate issued from CA with validity 5 years
select manage > security and users > certificate > issuer is vmware CA and certificate is valid for 5 years

create certificate request on ESXI153

first we need to create certificate request 

open https://esxi153 > manage > security and users > certificate > import new certificate 

open https://esxi153 > manage > security and users > certificate > import new certificate 
generate FQDN signing request
copy request to clipboard

create custom certificate for ESX

now it is time to create custom certificate based on ESXI153 request 

ADCS is already installed , to see how to install ADCS : please press here 

open ADCS http://dc101.pioneers.lab/certsrv 

select request a certificate
select advanced certificate request
copy certificate request from previous step > select web server > submit
select DER encoded and download certificate
certificate downloaded with crt format

convert certificate to PEM format

ESXI support ONLY .PEM certificate format 

so we have to convert .crt format to .PEM format 

  • download openSSL for windows from here  
  • Create folder c:\openssl
  • Copy certificate newcrt.cer to c:\openssl
  • unzip the downloaded file and copy the contents of the “bin” folder to : C:\OpenSSL
  • Then, open a command prompt (cmd) and type this :
cd c:\OpenSSL
openssl x509 -inform der -in c:\openssl\certnew.cer -out c:\openssl\certnew.pem

Once converted, you will have 2 certificates :

the one in Windows format in “.cer”.

the one in Linux format in “.pem

For Better View > Open Image in different TAB

import custom certificate to ESXI

open https://ESXI153 > manage > security and users > certificate > import certificate > 

copy content of certnew.pem file and paste inside 

copy certnew.pen content here
copy certnew.pen content here > import

verify custom SSL certificate on ESXI

now new custom certificate has been imported to ESXI153  

to verify SSL certificate is installed > open https://esxi153 

 you will notice certificate is valid and issuer is DC101.pioneers.lab  NOT vmware CA 

also certificate is valid for 2 years NOT 5 years 

cerify certificate issuer and validity

conclusion

vSphere certificate could be configured 

you are free to configure vSphere certificate either by free tools OpenSSL or by microsoft  ADCS active directory certificate service  

in previous article we have seen how to configure Vcenter certificate with openSSL , 

in this article we have seen how to congifur esxi certificate wtith microsoft ADCS 

Share this post
Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on pinterest
Share on print
Share on email

About Me

Our Power in Numbers

 17 

Courses

321

Articles

3,882

Images
and All configurations images are proudly made in Pioneers Lab

Articles By Course

Recent Articles

Subscribe

Contact us

have a challenge ? don’t hesitate to contact us