From 025483d1d626953c727d8bf94893c252f2294152 Mon Sep 17 00:00:00 2001 From: Maksim Beliaev Date: Tue, 16 Apr 2024 10:28:10 +0200 Subject: [PATCH] certs update to self signed certs --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b7caf9c..06edc9d 100644 --- a/index.js +++ b/index.js @@ -111,11 +111,16 @@ async function run() { } const axios = require('axios'); + // remove agent when nginx will be fixed and will provide CA certs + const agent = new https.Agent({ + rejectUnauthorized: false // Ignore certificate verification + }); try { console.log('Check in the signed list service'); const response = await axios.get( - 'https://cla-checker.canonical.com/check_user/' + username + 'https://cla-checker.canonical.com/check_user/' + username, + { httpsAgent: agent } ); if (response.status === 200) { console.log('- ' + username + ' ✓ (has signed the CLA)');