From 316114b46a546793d789e5fd5d24823774b4530d Mon Sep 17 00:00:00 2001 From: Athira Sabu <102021496+AsabuHere@users.noreply.github.com> Date: Wed, 4 Oct 2023 11:25:57 +0530 Subject: [PATCH] fix: update security method validatessl (#961) * update security method validatessl --- src/base/BaseTwilio.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/base/BaseTwilio.ts b/src/base/BaseTwilio.ts index b8c944aa7..d6a4ee757 100644 --- a/src/base/BaseTwilio.ts +++ b/src/base/BaseTwilio.ts @@ -232,7 +232,8 @@ namespace Twilio { /* jshint ignore:start */ /** - * Validates that a request to the new SSL certificate is successful. + * Test if your environment is impacted by a TLS or certificate + * change is by sending an HTTP request to the test endpoint * * @throws RestException if the request fails * @@ -244,7 +245,7 @@ namespace Twilio { return this.httpClient ?.request({ method: "get", - uri: "https://api.twilio.com:8443/2010-04-01/.json", + uri: "https://tls-test.twilio.com:443", }) .then((response: any) => { if (response["statusCode"] < 200 || response["statusCode"] >= 300) {