How to export TLS certificate and apply it for an identity certificate?
ISSUE
Diagnostic tools indicate that the identity token-signing certificate has expired, and the customer does not possess the certificate that was applied for TLS certificates.
RESOLUTION
Automation Suite requires two certificates at the time of installation.
- Server certificate – required for TLS communication between the client and the cluster;
- Identity token-signing certificate – required to sign the authentication token.
There are scenarios like:
- Customers updated the Server certificate but forgot to update the Identity token-signing certificate.
- Diagnostic tools indicating that the Identity token-signing certificate has expired, and the customer does not have the certificate that was applied for TLS certificates.
Export the server certificate and apply it for the identity certificate.
- Navigate to /opt/UiPathAutomationSuite directory
# cd /opt/UiPathAutomationSuite
- Create a folder where certificates can be exported
# mkdir certs
- Export the certificates into the certs folder
# ./configureUiPathAS.sh tls-cert get --outpath certs/
- Apply the exported certificates into the identity certificate
# ./configureUiPathAS.sh identity token-cert update --cert-file-path certs/tls.crt --cert-key-file-path certs/tls.key
- Rotate the certificate
# ./configureUiPathAS.sh identity token-cert rotate