VMware makes it very easy to generate all the CSR files needed to request the certificates for all the appliances in your deployment. The premise is to use a single certificate for each bundle of services using the VIP as the Common Name of the cert and each node behind the VIP as Subject Alternative Names (SANs) on the cert.
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/SSL_Cert_Diagram-1024x540.png)
[Each AppVolumes Server ALSO requires a separate SSL Certificate to connect to the AppVolumes DB]
Start by downloading the CertGen tool from VMware. I have created a csv file that you can edit with your information to run the script here.
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/CSV-with-NA-1024x509.png)
After replacing the information with your data save the csv file locally and open PowerShell as an Administrator.
.\CertGen-6.2.002.ps1
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/CertGenPS1-1024x413.png)
Select V. Validate Environment Before Running
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/CertGenValidate-1024x413.png)
Don’t proceed until all there are no errors. If you are running the CerGen tool on linux, you might get an OpenSSL version error. Just verify OpenSSL is available on your system before proceeding.
Press any key to return to the main menu.
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/CertGenPS1-1-1024x413.png)
Select 3. Create CSRs for manual certificate requests.
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/Screen-Shot-2021-03-17-at-8.34.43-PM-1024x689.png)
You will be prompted to select a csv file that contains your environment’s info.
There are default cert properties preloaded in the script, enter the values that pertain to your CA.
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/Screen-Shot-2021-03-17-at-8.40.07-PM-1024x413.png)
The script will run and you should see a bunch of green line scroll by…
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/Screen-Shot-2021-03-17-at-8.40.24-PM-1024x410.png)
Press any key to continue and it will take you back to the main screen. You can now press Q to quit the script.
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/CSR-Folder-1024x484.png)
Browse to the folder you ran the script from and you should see an new set of folders- select the one called CSR
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/Screen-Shot-2021-03-17-at-8.47.23-PM-1024x685.png)
Inside the CSR folder there is a folder for each of the certificates you will need to generate.
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/Screen-Shot-2021-03-17-at-9.04.39-PM-1024x633.png)
Inside of each folder you will see a number of files…
IF YOU RE-RUN THE SCRIPT THESE FILES WILL BE OVER-WRITTEN !!
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/Screen-Shot-2021-03-17-at-9.14.15-PM-1024x832.png)
The CSR file contains the data you need to request your certificate. You can open the file in Notepad or any other Text editor to copy the text into the CA CSR blank.
It’s a good idea to save the whole CSR folder off to network or someplace you can retrieve them if needed. Once your requested certificate is returned to you it’s good practice to place that certificate in the appropriate CSR folder with the rest of the files associated with that cert.
![](https://www.virtualnoob.com/wp-content/uploads/2021/03/Screen-Shot-2021-03-17-at-9.16.10-PM.png)
Be sure NOT to lose the KEY file. You will need this file to make the necessary PFX files used to install Horizon, AppVols, and NSX-T.
To make the PFX file, run the following:
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt
Don’t lose/forget your password