Canary heartbeat check, ignore ssl on https url

0

Hi,

My canary check seems to be breaking on the following step
ERROR Request failed. ErrorText: net::ERR_CERT_COMMON_NAME_INVALID. Request: url: https://<PRIVATE IP>

It seems that its due to it being via https but not having a valid cert. I was wondering if there is a option similar to curl -k that will ignore the certificate and procede with the check.

My check is already in the same vpc/subnet as my instance and the security group should give it access to it, so i do not believe this might be the issue. My application also does not accept traffic via http only https.

Please let me know if there might be a work around/solution.

asked 3 years ago1600 views
1 Answer
0

https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library_Nodejs.html#CloudWatch_Synthetics_Library_UIcanaries

added the following line to template
await synthetics.launch({
ignoreHTTPSErrors: true
});
let page = await synthetics.getPage();

answered 3 years ago
  • I created canary test for API using API Canary Blueprint and added the following line to the template: await synthetics.launch({ ignoreHTTPSErrors: true }); but I still get an error Error: self signed certificate in certificate chain Stack: Error: self signed certificate in certificate chain\n at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34)

    What can be wrong?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions