简体   繁体   中英

Github certificate issue

I am hosting a personal website on github, and I am also building a smart home using a pi and node with express.js for the database. I can acces my pi directly with the ip, I did all the work of port forwarding etc, it works.

Now I am facing the followong problem : Because github is a secured website, it needs a HTTPS request, so I had to configure my express.js to start a https server with the credentials (ie key + certificate). But now, my browser blocks the ajax request because the certificate is invalid (see screenshot linked)

How can I have my certificate validated by all browsers ?

For your Pi server to be accessible via an HTTPS connection, you will need to get a SSL certificate, which in turn require you to get a custom domain.

Once you have a custom domain, you can get a free SSL certificate for your HTTPS connection via Let's Encrypt or CloudFlare .

You can get a custom domain for cheap over at NameCheap .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM