跳至內容

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.

已提問 4 年前檢視次數 2253 次
1 個回答
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();

已回答 4 年前
  • 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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。