AWSDevOpsTutorial
AWSDevOpsTutorial copied to clipboard
Certificate issue while accessing Dynatrace https url
I am getting a certificate error while executing the PushDynatraceDeploymentEvent event. Looks like the Lamba function is throwing the below error.
2018-12-23T14:27:47.403Z 72176725-06be-11e9-af0d-59511e77529b Error: Hostname/IP doesn't match certificate's altnames: "IP: xx.xx.xx.xx is not in the cert's list: "
Is this because I am using a self-signed certificate for my Dynatrace tenant? Is there a way I can bypass this error or add this to safe list? Seems like we can overcome this with below parameter: rejectUnauthorized:false
Any suggestions where to do this change?
I finally did this change in the dtapiUtils.js file, (line 140) var post_options = { host: fullUrl.host, path: fullUrl.path, rejectUnauthorized: false,
This worked, but is there any other safer way to do this?
Also the template for Approve/Reject seems to be wrong. There is only manual approval coming in the pipeline, I do not see the auto approval coming in.