Skip to content

Commit

Permalink
NO SSL Certificate check commented
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiochimera committed Jul 13, 2024
1 parent ffbc4c2 commit c0c2caf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lambda/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ function getError(err) {

exports.handler = async (event) => {
if (d) {
console.log("event: " + JSON.stringify(event))
console.log("event: " + JSON.stringify(event));
}

if (not_verify_ssl) {
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';
// process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0'; // Uncomment this if you don't want to check the ssl certificate validity
if (d) {
console.log("NO SSL Certificate check");
}
}

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit c0c2caf

Please sign in to comment.