Configure AutomationFX for HTTPS
1. Create a self-signed certificate and Assign
In order to create a self-signed certificate.
- Open Windows PowerShell in Administrator Mode
- Retrieve FQDN to create a certificate
The following command can be used in order to retrieve a fully qualified domain name for the local pc/server.
[System.Net.Dns]::GetHostEntry([string]$env:computername).HostName
Once the above command is executed, the command will return fully qualified domain name/s.
- Create a Certificate with the required DNS name.
The following sample command assumes the FQDN returned by the above command is “mydnsaddress.com”
$Certificate = New-SelfSignedCertificate -DnsName mydnsaddress.com -CertStoreLocation "cert:\LocalMachine\My"
$Thumbprint = $Certificate.Thumbprint;
NOTE: The created certificate is stored in $Certificate and the Certificate Thumbprint is stored in $Thumbprint variable
- Assign the certificate to local endpoint.
netsh http add sslcert ipport=0.0.0.0:8182 certhash=$Thumbprint appid="{00000000-0000-0000-0000-AABBCCDDEEFF}"
NOTE: The above example assigns the certificate to an application running on port 8182 using the Certificate Thumbprint created in the above step
- Edit the AutomationFX configuration
Once the above step is completed, open the following file using a text editing tool such as Notepad or Notepad++
For embedded AutomationFX (PhoneView Customers) installations, the file location will be
“C:\Program Files (x86)\UnifiedFX\PhoneView\AutomationFX\UFX.AppHost.exe.config”
For standalone AutomationFX (MigrationFX Customers) installations, the file location will be
“C:\Program Files\UnifiedFX\AutomationFX\UFX.AppHost.exe.config”
Add the following configuration key under appSettings section
<add key="ServiceURLs" value="https://mydnsaddress.com:8182"/>
NOTE: The above configuration corresponds to the DNS Name and the Port Number chosen in step 3 and 4.
Once the above steps are completed restart the AutomationFX windows service and browse to https://mydnsaddress.com:8182 for a secure connection.
2. Assign an existing certificate
A Certificate Thumbprint is required to use an existing certificate.
- Open Windows PowerShell in Administrator Mode
- Assign the certificate to local Application port
netsh http add sslcert ipport=0.0.0.0:8182 certhash="B4E3F0F41D267BFD74C16416C3B1D9E32C1DB607" appid="{00000000-0000-0000-0000-AABBCCDDEEFF}"
NOTE: The above example assigns the certificate to an application running on port 8182 with the Thumbprint “B4E3F0F41D267BFD74C16416C3B1D9E32C1DB607”
- Edit the AutomationFX configuration
Stop AutmationFX Windows Service prior to this step.
Once the above step is completed, open the following file using a text editing tool such as Notepad or Notepad++
For embedded AutomationFX (PhoneView Customers) installations, the file location will be
“C:\Program Files (x86)\UnifiedFX\PhoneView\AutomationFX\UFX.AppHost.exe.config”
For standalone AutomationFX (MigrationFX Customers) installations, the file location will be
“C:\Program Files\UnifiedFX\AutomationFX\UFX.AppHost.exe.config”
Add the following configuration inside appSettings node
<add key="ServiceURLs" value="https://mydnsaddress.com:8182"/>
NOTE: The above configuration corresponds to a sample DNS name “mydnsaddress.com” and the port number 8182 chosen in step 2.
Once the above steps are completed start the AutomationFX windows service and browse to https://mydnsaddress.com:8182 for a secure connection.
Comments
0 comments
Please sign in to leave a comment.