AWSDevOpsTutorial icon indicating copy to clipboard operation
AWSDevOpsTutorial copied to clipboard

Certificate issue while accessing Dynatrace https url

Open nnganesha opened this issue 6 years ago • 2 comments

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?

nnganesha avatar Dec 23 '18 15:12 nnganesha

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?

nnganesha avatar Dec 23 '18 16:12 nnganesha

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.

nnganesha avatar Dec 24 '18 12:12 nnganesha