日志标签 ‘SSL’

Warning: Use of undefined constant archives - assumed 'archives' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32
class="post-1646 post type-post status-publish format-standard hentry category-grass-roots-webmaster tag-ssl tag-969 tag-964">

宝塔面板添加阿里云申请到免费SSL证书

2022年4月15日

每个自然人可以在阿里云申请20个免费的“单个域名”的SSL证书,但是申请好了以后,怎么都没有找到在哪里进行部署,在部署的页面里,没有找到我使用的“轻量应用服务器”,或许是因为这个服务器太便宜了吧。

ssl证书

当然,对于一个擅用搜索引擎的人来讲,这都不是事。最终还是找到了办法:由于我在阿里云服务器上部署的是宝塔面板,所以,通过宝塔面板可以简单的完成ssl证书的部署。

1、先从阿里云上把ssl证书下载下来,然后解压缩,得到三个文件

2、打开宝塔面板,在“网站”-网站列表中,找到要部署的域名,点击SSL证书列的“未部署”

宝塔面包部署ssl证书

3、在SSL中,点击“其他证书”,然后用文本编辑器打开解压出来的三个文件,粘贴您的*.key以及*.pem内容(PEM格式证书 = 域名证书.crt + 根证书(root_bundle).crt),具体教程可查看宝塔论坛内容,然后保存即可。

宝塔面板部署ssl证书

4、保存后,打开“证书夹”,就可以看到刚才部署的证书及到期时间等信息,点击“部署”,之后就可以测试一下是否生效了。