내용으로 건너뛰기

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년 전2.3천회 조회
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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠