如何用商业SSL认证替换Certbot SSL认证?

发布于 2025-01-23 04:14:32 字数 74 浏览 4 评论 0原文

我在数字海洋上托管的NodeJS应用程序上启用了HTTP。我使用了certbot。我想用商业证书将免费证书替换为“安全”。我该怎么做?

I enabled https on my nodejs application hosted on digital ocean. I used certbot. I want to replace the free certificate with a commercial certificate so not it shows up as "secure". How can I do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风尘浪孓 2025-01-30 04:14:32

如果您的网站未通过免费证书显示安全,则配置存在问题。除非问题是过期证书,否则购买一个问题不会解决该问题。

更改证书将私钥和证书复制到服务器上的安全位置,然后更改Apache VirtualHost配置:

  • sslcertificatefile/fulelllpath/
  • to/fullchain.pem sslcertificatekeyatekeyatekeyatekeyatekeyatekeyatekeytifiekeyatekeytekeyatekeytekeytificeTificateKeytifie keyfile/

to/privkey.pprivkey.pem of Course of Course,更换/replent //forts /// fullPath/to/到您为存储证书创建的目录。

示例: /etc/certs/example.com

文件名取决于您向您发送的名称。使用他们的文件名或根据需要重命名。

If your site does not show secure with a free certificate, there is a problem with your configuration. Buying one will not fix that problem unless the issue is an expired certificate.

To change certificates copy the private key and certificate to a safe location on your server and then change the Apache VirtualHost configuration:

  • SSLCertificateFile /fullpath/to/fullchain.pem
  • SSLCertificateKeyFile /fullpath/to/privkey.pem

Of course, replace /fullpath/to/ to the directory you created to store your certificate.

Example: /etc/certs/example.com

The file names depends on the names your CA sent you. Use their filenames or rename them as you wish.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文