upptime / cli

⬆️🛠️ Upcoming CLI to power the new version of Upptime
MIT License
15 stars 8 forks source link

verifying SSL Peer certificate raises error (node-libcurl) #7

Closed jayantkatia closed 3 years ago

jayantkatia commented 3 years ago

Commit:: 7011a2c

Issue

Verifying SSL Peer certificate raises error for most of the websites.

Steps to Reproduce

Uncomment line 17 of src/helpers/request.ts

Possible Solution

  1. https://github.com/JCMais/node-libcurl/blob/develop/COMMON_ISSUES.md
jayantkatia commented 3 years ago

4a030c1 solves this issue following https://github.com/JCMais/node-libcurl/blob/develop/COMMON_ISSUES.md

But the fix uses a downloaded version of cacert.pem which may not be ideal :thinking:

jayantkatia commented 3 years ago

Use in a workflow to download and push ca cert

 curl --remote-name --time-cond cacert.pem https://curl.se/ca/cacert.pem