Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log into a system joined to the Austin Active Directory where the system has permissions to request a certificate from the desired template

  2. Start an administrative PowerShell session then modify and run the following: 

    Code Block
    languagepowershell
    $cert_url = <FQDN for the certificate>
    $cert_san = @("<FQDN for certificate SAN #1>","<FQDN for certificate SAN #2>",...)
  3. In the same administrative PowerShell session, run one of the following to set the certificate template:e

    • For a Server (10 year duration) certificate, run the following: 

      Code Block
      languagepowershell
      $cert_template = "Server-10year"
    • For a VMware SSL certificate, run the following: 

      Code Block
      $cert_template = "VMwareSSL6.5"
  4. In the same administrative PowerShell session, run the following to request the certificate:

    Code Block
    languagepowershell
    # define the necessary objects based upon the URL and any requested SANs
    $cert_sub = ("CN=" + $cert_url)
    If ($cert_san) {$cert_dns = $cert_san + $cert_url} Else {$cert_dns = $cert_url}
    # request the certificate
    Get-Certificate -Url ldap: -CertStoreLocation "Cert:\LocalMachine\My" -Template $cert_template -SubjectName $cert_sub -DnsName $cert_dns

...