Unable to get OAuth Token from Ansible Tower

Bryan Cole2
Giga Contributor

I've been trying to get the integration set up with Ansible Tower to kick off job templates from the service catalog. We've imported the self-signed certificate from AT to ServiceNow's certificate store, and validated it looks good. I've also set the com.glide.communications.httpclient.verify_hostname sys_parameter to false to rule out the issue with localhost.

We created the REST message, and set the POST http method per the direction of AT's API documentation. When we try to get an Oauth token, it fails with a "HTTP Error 401 - Unauthorized" error. In the Outbound HTTP logs, the response was:

[ERROR CODE: -1 ] No issuer certificate found for ansible.<domain>

Note, we're using Dyn to map this to a local machine that where have the AT instance running, hence the from-ok.com domain.

We've tried rebuilding the application in AT, we've tried using local credentials as well, all we get back is the No issuer certificate error. At this point, I'm not sure if the issue is in AT or ServiceNow. Has anyone successfully created an integration with Ansible Tower and encountered this issue?

1 ACCEPTED SOLUTION

Bryan Cole2
Giga Contributor

Was able to get it fixed by setting the glide.communications.httpclient.verify_revoked_certificate system property to false.

Not an advisable solution for a production instance, but to get by this issue with a self-signed cert it did the trick.

View solution in original post

5 REPLIES 5

Bryan Cole2
Giga Contributor

Was able to get it fixed by setting the glide.communications.httpclient.verify_revoked_certificate system property to false.

Not an advisable solution for a production instance, but to get by this issue with a self-signed cert it did the trick.

Bryan, where is this setting at. I am trying to locate this, tons of references, none show where this setting is though. 

You would need to add it as a System Property, navigate to sys_properties.list