An on-prem bitbucket instance just had its certificate replaced with a new Sectigo certificate, but Aria Automation does not recognize it. When verifying the integration (validate credentials, then Save), no error is received. However, syncing against any project gives the error "Invalid certificate in the requested target"
Aria Automation 8.18.1
The new certificate PEM value from BitBucket is not getting replaced in the database when the integration is saved.
In the provisioning-service-app log, it will show this WARN message indicating the certificate Info being removed for the integration:
2025-08-27T15:07:20.750Z WARN provisioning [host='provisioning-service-app-xxxxxxxx-xxxxx' thread='xn-index-queries-21' user='<useName>' org='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' trace='<traceId>' parent='<parentId>' span='<spanId>'] c.v.i.a.s.m.CloudAccountService.removeExpiredCertificateFromEndpointState:1647 - Removing certificate from endpoint state: [<integrationUrl>,/resources/endpoints/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx]: exception: java.security.cert.CertificateExpiredException: NotAfter: Fri Aug 15 23:59:59 GMT 2025
You will then see a PATCH request entry, however it doesn't show anything from the body of the API request:
2025-08-27T15:07:20.771Z INFO provisioning [host='provisioning-service-app-xxxxxxxx-xxxxx' thread='reactor-http-epoll-4' user='' org='' trace='<traceId>' parent='' span='<spanId>'] reactor.netty.http.server.AccessLog.info:279 - XX.XXX.XX.XXX - - [27/Aug/2025:15:07:20 +0000] "PATCH /iaas/api/integrations/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?skipEnumerate&apiVersion=2021-07-15 HTTP/1.1" 202 193 8282 95 ms
Workaround:
Ensure a backup or snapshot is taken before making any changes.