Saltar al contenido

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.

preguntada hace 4 años2,3 mil visualizaciones
1 Respuesta
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();

respondido hace 4 años
  • 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?

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.