Create a Control Room Certificate on Windows

Create the Certificate

Watch this YouTube video from 0:30 to 3:47. Here are the written instructions:

  • Open PowerShell

  • Verify you have the PKI (Public Key Infrastructure) module by making sure the following command returns similar output:

    $ Get-Command -Module PKI
     CommandType     Name                                               Version    Source
    -----------     ----                                               -------    ------ 
    Cmdlet          Add-CertificateEnrollmentPolicyServer        PKI    
    Cmdlet          Export-Certificate                           PKI    
    Cmdlet          Export-PfxCertificate                        PKI    
    Cmdlet          Get-Certificate                              PKI    
    Cmdlet          Get-CertificateAutoEnrollmentPolicy          PKI    
    Cmdlet          Get-CertificateEnrollmentPolicyServer        PKI    
    Cmdlet          Get-CertificateNotificationTask              PKI    
    Cmdlet          Get-PfxData                                  PKI    
    Cmdlet          Import-Certificate                           PKI    
    Cmdlet          Import-PfxCertificate                        PKI    
    Cmdlet          New-CertificateNotificationTask              PKI    
    Cmdlet          New-SelfSignedCertificate                    PKI    
    Cmdlet          Remove-CertificateEnrollmentPolicyServer     PKI    
    Cmdlet          Remove-CertificateNotificationTask           PKI    
    Cmdlet          Set-CertificateAutoEnrollmentPolicy          PKI    
    Cmdlet          Switch-Certificate                           PKI    
    Cmdlet          Test-Certificate                             PKI 
  • Create the certificate for you domain name (replace DOMAIN_NAME with your actual domain name, e.g.

    New-SelfSignedCertificate -Subject "CN=DOMAIN_NAME" -FriendlyName "DOMAIN_NAME" -DnsName "DOMAIN_NAME" -NotAfter (Get-Date).AddMonths(36) -CertStoreLocation cert:\\LocalMachine\\My
  • Open MMC (Microsoft Management Console) with the following command:

  • Find the newly created certificate in MMC (easiest to follow along in YouTube video):

    • File > Add/Remove Snap-in… > Certificates > Add > Computer account > Next > Local computer > Finish > OK

    • Certificates (Local Computer) > Personal > Certificates > YOUR_CERTIFICATE

  • Export the certificate to a file:

    • Right click on your cert > All Tasks > Export

    • From the β€œCertificate Export Wizard”

      • Yes, export the private key

      • Check β€œInclude all certificates in the certification path if possible”

      • Uncheck β€œEnable certificate privacy”

      • Set password (anything should be fine)

      • File can go anywhere you want

      • Finish

Set the Certificate on the Server

See official Automation Anywhere source documentation.

  • Open PowerShell in administrator mode

  • Navigate to your AA installation path, probably C:\Program Files\Automation Anywhere\Automation360

    cd "C:\Program Files\Automation Anywhere\Automation360"
  • Run the following command (replace AA_INSTALLATION_PATH with the AA path from the last step, PFX_FILE_PATH with the file path set above and PASSWORD with the password set above):

    jdk11\\bin\\java -jar certmgr.jar -appDir "AA_INSTALLATION_PATH" -setServerCert "PFX_FILE_PATH" -privateKeyPass PASSWORD
  • Restart the β€œAutomation Anywhere Control Room Reverse Proxy” service (see here)

  • Navigate to your Control Room URL (on any machine) and notice it’s using the new certificate. However, it’s still not trusted. See the next section to trust it.

Last updated