Based on my earlier script to import theSSL certificate for vCenter I decided to do the same for the Nutanix PRISM interface, the previous script could be easily reused with some small modifications as I had to add the port number to the URL where the certificate needs to be fetched from.
As an FYI: You can use your own certificate (either self signed or from an CA), as this is my lab environment I’m just using the default self signed certificate with the FQDN ‘prism.nutanix.local’ so I’ve tested this script using that exact FQDN.Best practise would be to change the certificate using the guidance of our Knowledge Base article: Installing an SSL Certificate (Login required).
As I was configuring the connection to my Nutanix cluster (again)I didn’t want to follow this procedure multiple times so I wrote a small PoSH script to walk you through these steps:
1) Ask you for the PRISMIP address
2) Ask you for the PRISMFQDN, the registered name in the default cert is ‘prism.nutanix.local’
3) Will check if the PRISMFQDN is reachable
4) If it is it will proceed with step 6
5) If it’s not reachable it will put the PRISM ClusterIP address and PRISMFQDN in your local HOSTS file
6) It will get the SSL Certificate from PRISM and import it into the “Trusted People” Computer store.
You can get your copy of the script here:
The PRISMSSLscript version 1 (unsigned) can be downloaded here:[download id=”9″]
Latest posts by Kees Baggerman (see all)
- Updated: VM Reporting Script for Nutanix AHV with Powershell - April 8, 2019
- How to add a CD-ROM drive and mount an ISO file via powershell to an AHV-hosted VM - March 27, 2019
- How to add a nic via powershell to an AHV-hosted VM - March 25, 2019
- VM Reporting Script for Nutanix AHV with Powershell - March 19, 2019
- Reporting vGPU enabled VMs on AHV - March 13, 2019