NSX Edge throws exception if service certificate content doesn't contain private key
book
Article ID: 310645
calendar_today
Updated On:
Products
VMware NSX
Issue/Introduction
After successfully adding a CA certificate on NSX Edge, you experience these symptoms:
Fatal error found in configuration when attempting to update Application Profile for SSL offload using CA certifications.
In the vsm.log file, you see entries similar to:
2017-03-10 00:25:46 :: DEBUG :: Utils :: Command: chown vseconfig:vseconfig /var/run/vmware/vshield/cmdOut/5f37d5bc-####-####-####-ef45360fdb52.out, Result: errCode :73001 errMsg :[256] Failed to reload haproxy : Reloading HA-Load-Balancer configuration: vse-ha-lb [ALERT] 068/002546 (26576) : parsing [/var/db/vmware/vshield/haproxy.conf:43] : 'bind ##.##.##.##:443' : unable to load SSL private key from PEM file '/var/db/loadbalancer//certs/########_vip-30.pem'. [ALERT] 068/002546 (26576) : Error(s) found in configuration file : /var/db/vmware/vshield/haproxy.conf [ALERT] 068/002546 (26576) : Proxy '########': no SSL certificate specified for bind '##.##.##.##:443' at [/var/db/vmware/vshield/haproxy.conf:43] (use 'crt'). [ALERT] 068/002546 (26576) : Fatal errors found in configuration. Failed to reload HA-Load-Balancer: vse-ha-lb Try to restart HA-Load-Balancer: vse-ha-lb [ALERT] 068/002546 (26582) : parsing [/var/db/vmware/vshield/haproxy.conf:43] : 'bind ##.##.##.##:443' : unable to load SSL private key from PEM file '/var/db/loadbalancer//certs/########_vip-30.pem'. [ALERT] 068/002546 (26582) : Error(s) found in configuration file : /var/db/vmware/vshield/haproxy.conf [ALERT] 068/002546 (26582) : Proxy '########': no SSL certificate specified for bind '##.##.##.##:443' at [/var/db/vmware/vshield/haproxy.conf:43] (use 'crt'). [ALERT] 068/002546 (26582) : Fatal errors found in configuration. Failed to re-start HA-Load-Balancer: vse-ha-lb
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Environment
VMware NSX for vSphere 6.1.x VMware NSX for vSphere 6.4.x VMware NSX for vSphere 6.0.x VMware NSX for vSphere 6.2.x VMware NSX for vSphere 6.3.x
Resolution
Generating a CSR
Open MMC and add the Certificates snap in.
Navigate to Personal > Certificates.
Right Click certificates and select All Tasks > Advanced Operations > Create Custom Request
Choose Active Directory Enrollment Policy
Use Template “Web Server” and PKCS #10 Format
On Certificate Information Page, click Details and Select Properties
Add the following fields in the subject tab:
Organization
Organizational Unit
Locality
Country
On the Private Key Tab, under Key Options, select “Make private key exportable”
Click OK and next until you are prompted to save your CSR. Use this CSR to key your cert with Certificate Authorities.
Download your files in the “other” certificate category from Certificate Authorities for the next step
Importing a Cert and Creating a PFX file
Open MMC and add the Certificates snap in.
Navigate to Personal > Certificates
Right click certificates and choose All Tasks > Import
Import your .crt file that you have downloaded from Certificate Authorities.
Right click your certificate and choose All Tasks > Export. Select “Yes, export the private key” and “Include all certificates in the certification path if possible”
Pick yourself and Domain Admins as the user group.