CloudStack Management server communicates with Hyper-V Agent using HTTPS. For that we have to create and add certificate on port 8250

To achieve this we have to execute following commands on powershell

  1. Create the self signed certificate using following command

      New-SelfSignedCertificate -DnsName apachecloudstack -CertStoreLocation Cert:\LocalMachine\My

    This will create the self signed certificate and add it to the certificate store LocalMachine\My
    you can follow other steps also to create self signed certificate and add it to the certificate store LocalMachine\My
  2. Now add the created ssl certificate  to port 8250 for https communication using following command

    netsh http add sslcert ipport=0.0.0.0:8250 certhash=<thumbprint> appid="{727beb1c-6e7c-49b2-8fbd-f03dbe481b08}"

    where thumbprint is the thumbprint of the certificate created in previous step

 

To delete certificate from port use below command

netsh http delete sslcert ipport=0.0.0.0:8250

 

 

 

 

 

  • No labels