This article provides instructions on how to replace certificates for VMware Cloud Director using the Provider UI.
VMware Cloud Director 10.5.1
VMware Cloud Director 10.6.x
Generating Self Signed Certificate:
Create a Private key and a CSR:
openssl genrsa -out example.com.key 2048; openssl req -new -key example.com.key -out example.com.csr
Create the SAN config file
touch v3.ext
Populate it with the below contents: (replace *.example.com and example.com with the actual dns names. if there are additional SAN, add extra ", dns: FQDN" for every host name that should show up in SAN.
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
basicConstraints = CA:TRUE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement, keyCertSign
subjectAltName = DNS:example.com, DNS:*.example.com, DNS: node1.example.com. DNS: Node2.example.com, DNS: Node3.example.com
issuerAltName = issuer:copy
Generate Self signed certificate:
openssl x509 -req -in example.com.csr -signkey example.com.key -out example.com.crt -days 360 -sha256 -extfile v3.ext
Generate a CA/Enterprise CA/Signed CA signed Authority (Digi etc.)
Create a Private key and a CSR:
openssl genrsa -out example.com.key 2048; openssl req -new -key example.com.key -out example.com.csr
Share the CSR with the Certificate authority, ensure the CA adds in SAN when signing the certificate
Example of a CA Provider:
Preparing the certificate
Note: For a self signed certificate, you will only have the certificate only. (no intermediate/root)
Note: ensure the certificate chain does not have a cert with sha-1 algorithm
Example:
Import the certificate to VMware Cloud Director
Apply Certificate to VCD cells:
openssl s_client -showcerts node1.example.com:443
Note in case of failure Renewing Certificates
sha1WithRSAEncryption.root-CA-certificate.cer. This is not common, and generally, it is not applicable if your CA is one of the well-known certificate authorities whose certificate is distributed using the most modern browsers. Consult with your CA for more information and to determine whether you must append your root certificate. SSL Certificate Creation and Management of Your VMware Cloud Director Appliance
cat intermediate-certificate-file-1.cer intermediate-certificate-file-2.cer >> your-http-certificate.pem