简体   繁体   English

Github证书发行

[英]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. 我将在github上托管一个个人网站,并且还将使用pi和带有express.js的数据库节点来构建智能家居。 I can acces my pi directly with the ip, I did all the work of port forwarding etc, it works. 我可以直接用ip访问我的pi,我做了端口转发等所有工作,它可以工作。

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). 现在,我面临一个Followong问题:由于github是一个受保护的网站,它需要HTTPS请求,因此我必须配置express.js以使用凭据(即密钥+证书)启动https服务器。 But now, my browser blocks the ajax request because the certificate is invalid (see screenshot linked) 但是现在,我的浏览器阻止了ajax请求,因为证书无效(请参见链接的屏幕截图)

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. 为了使您的Pi服务器可以通过HTTPS连接进行访问,您将需要获取SSL证书,而SSL证书又需要您获取自定义域。

Once you have a custom domain, you can get a free SSL certificate for your HTTPS connection via Let's Encrypt or CloudFlare . 有了自定义域后,您就可以通过Let's EncryptCloudFlare为HTTPS连接获取免费的SSL证书。

You can get a custom domain for cheap over at NameCheap . 您可以在NameCheap上以便宜的价格获得自定义域。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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