• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

使用crt和ca-bundle文件给网站配置ssl证书教程

建站知识 Liam 1年前 (2019-04-28) 640次浏览 12个评论 扫描二维码

说明:之前看到namecheap搞的免费换一年Comodo ssl证书活动,就去搞了一年,申请下来的证书文件就ca-bundlecrt文件,习惯用crtkey文件来配置ssl证书的我,就直接无视了ca-bundle文件,估计很多人也会和我一样,于是用crt文件和之前生成的key文件配置ssl后,会发现有的浏览器提示不安全,查了下问题后,发现证书链不完整导致的,感觉不能忽视ca-bundle文件,就胡乱折腾,最后给整好了。这里把方法分享下。

首先需要将颁发的crtca-bundle文件合并成一个新crt文件,登录vps运行命令:

cat xxx.crt xxx.ca-bundle > new.crt  #crt和ca-bundle文件位置填对 

然后用新的crt做证书文件,key还是用之前生成的!

配置ssl具体方法可以参考:LNMP环境配置SSL证书最简单教程CentOS 6系统Apache环境配置SSL证书教程,还嫌麻烦的可以直接用军哥的lnmp1.4一键包直接配置。


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:使用crt和ca-bundle文件给网站配置ssl证书教程
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(12)个小伙伴在吐槽
  1. For most up-to-date information you have to go to see the web and on web I found this web site as a finest site for most up-to-date updates.
    web host2020-08-31 19:10 回复 Mac OS X | Firefox浏览器 59.0
  2. Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thank you once again.
    black mass2020-08-28 23:17 回复 Linux | Firefox浏览器 54.0
  3. What's up to all, the contents present at this website are actually amazing for people knowledge, well, keep up the nice work fellows. yynxznuh cheap flights
    cheap flights2020-08-26 21:40 回复 Linux | Firefox浏览器 61.0
  4. I am extremely impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it's rare to see a great blog like this one today.
    cheap flights2020-08-26 18:25 回复 Windows 7 | Opera 9.80
  5. Howdy! Do you know if they make any plugins to protect against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any recommendations?
    best web hosting 20202020-08-26 03:24 回复 Linux | Firefox浏览器 56.0
  6. Everything is very open with a clear explanation of the challenges. It was really informative. Your website is very helpful. Thanks for sharing! cheap flights 32hvAj4
    cheap flights2020-08-25 08:22 回复 Windows 7 | Opera 9.80
  7. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something informative to read?
    cheap flights2020-08-24 16:47 回复 Mac OS X | Chrome 66.0.3359.139
  8. Heya! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing months of hard work due to no data backup. Do you have any methods to prevent hackers?
    web hosting services2020-08-14 14:32 回复 Mac OS X | Chrome 65.0.3325.88
  9. fantastic points altogether, you just received a logo new reader. What would you suggest in regards to your submit that you just made some days in the past? Any positive?
    best website hosting2020-08-14 11:28 回复 Linux | Firefox浏览器 59.0
  10. I am sure this post has touched all the internet users, its really really fastidious post on building up new blog. adreamoftrains web hosting providers
    adreamoftrains web host2020-08-12 07:30 回复 Linux | Chrome 68.0.3398.0
  11. Hello, I want to subscribe for this web site to obtain hottest updates, thus where can i do it please help.
    web hosting companies2020-08-11 17:31 回复 未知操作系统 | Chrome 43.0.2357.125
  12. Muchas gracias. ?Como puedo iniciar sesion?
    wbpdgmhrpi2020-05-04 12:56 回复 Windows 8.1 | Chrome 36.0.1985.125