简体   繁体   English

在Centos上安装letencrypt证书

[英]Installing a letsencrypt Certificate on Centos

I am trying to understand the process of installing a letsencrypt certificate on Apache on Centos. 我试图了解在Centos上的Apache上安装letencrypt证书的过程。

I have read the installation instructions, cloned the git repository, and there I'm stuck. 我已经阅读了安装说明,克隆了git存储库,并在那里卡住了。

Has anybody had experience with this and what to do next? 有人对此有经验吗,下一步该怎么做?

Thanks 谢谢

You didn't really make it clear what your error was, but I'll take a guess and say that you left off with cloning the Git repository. 您并没有真正弄清楚您的错误是什么,但是我猜测,您是从克隆Git存储库开始的。

From here, you'll need to run some commands with the letsencrypt-auto program that you just cloned to actually obtain a certificate and install it. 在这里,您需要使用刚刚克隆的letsencrypt-auto程序运行一些命令,以实际获取并安装证书。 Let's Encrypt and their automatic configuration feature isn't necessarily stable yet, so I recommend running the command to only obtain a certificate, then manually configure SSL yourself. 让我们进行加密,它们的自动配置功能不一定稳定,因此我建议运行该命令以仅获取证书,然后自己手动配置SSL。 Head into the directory that you cloned the Git repository to and run the following commands: 转到将Git存储库克隆到的目录,然后运行以下命令:

chmod +x letsencrypt-auto
./letsencrypt-auto certonly

Let's Encrypt will begin to download its dependencies and a prompt will finally appear requesting which domains you want a certificate for. 让我们的加密将开始下载其依赖项,并最终出现一条提示,询问您想要证书的域。 Just fill it in and press enter. 只需填写它,然后按Enter。 If all goes well, you'll get an output that looks similar to this: 如果一切顺利,您将获得类似于以下内容的输出:

 - Congratulations! Your certificate and chain have been saved at
 /etc/letsencrypt/live/example.com/fullchain.pem. Your
 cert will expire on 2016-03-08. To obtain a new version of the
 certificate in the future, simply run Let's Encrypt again.

This path will differ from my path since I'm running Ubuntu 14.04. 由于我正在运行Ubuntu 14.04,因此该路径与我的路径不同。 Note the path to the folder, which will hold all of the files you need. 请注意该文件夹的路径,其中将包含您需要的所有文件。 Now, head into your Apache configuration and edit the configuration file to link to the SSL certificates that you just created, restart Apache, and you should be good to go! 现在,进入您的Apache配置并编辑配置文件以链接到您刚刚创建的SSL证书,重新启动Apache,您应该一切顺利!

If you need any further instructions, let me know. 如果您需要其他说明,请告诉我。

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

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