Last update at :2024-06-15,Edit by888u
If we don't want to buy a paid SSL certificate, choosing and using Let\\'s Encrypt free SSL certificate should be considered a priority at present. Although it needs to be reactivated and renewed every 90 days, if it is set to automatically The renewal problem is not a big one, and the compatible and supported browsers are relatively complete. Snail has also seen many excellent websites using it.
In the previous article "LNMP V1.4 quickly deploys Let's Encrypt free SSL certificate with one click", Snail can see that the official version of LNMP that will be released on Children's Day this year will be able to key to deploy Let's Encrypt certificate. At the same time, the OneinStack one-click package with many users in the past year also supports one-click rapid deployment of Let\\'s Encrypt free SSL certificate. Snail will record in this article how we use the OneinStack one-click package to install and deploy Let\\\\\\\\\'s free SSL certificate. \'s Encrypt.
First, preparations for installing Let\\’s Encrypt certificate on OneinStack
1. Our current server needs to deploy the OneinStack one-click package. If it is not deployed, you need to refer to this article to automatically deploy it.
2. We need to install the Let\\’s Encrypt client separately in a configured environment, otherwise we cannot automatically obtain the Let\\’s Encrypt installation option.
./addons.sh
Only after we have installed the client can the Let\\’s Encrypt option appear when adding a site.
3. We need to resolve the domain name to the current server first, so that domain name ownership will be detected when installing the certificate configuration.
Second, OneinStack adds site automatic configuration Let\\’s Encrypt
1. Basic site deployment parameter settings
./vhost.sh
We use the normal command to add a site to configure the site deployment parameters.
2. Configure SSL certificate
Because we installed the client at the beginning, we can see the Let\\’s Encrypt option here. We only need to resolve the domain name, and there is generally no problem here. We can fill in any of our own email addresses. There are several website parameters later, such as logs, pseudo-static rules, etc. We can configure them normally.
3. Installation successful
Seeing such an interface, it is theoretically possible to successfully install SSL. We can simply drop a page to the website directory, and then see if HTTPS forces a redirect. At this time, we only need to configure the website or move the website to modify the pointing.
Third, regarding Let\\’s Encrypt automatic renewal issue
After Snail saw the automatic deployment of SSL, it also automatically added a renewal script. The premise is that crontab must be installed on our server. If it is not installed, you need to install it yourself first, otherwise it cannot be deployed.
Fourth, One-click package configuration Let\\’s Encrypt summary of OneinStack
1. It is relatively simple for us to configure the Let\\’s Encrypt certificate in the OneinStack environment. The premise is that we have to install the Let\\’s Encrypt client before adding the site.
2. The disadvantage is that we can only automatically deploy and select Let\\’s Encrypt installation when we start to add a site. If there is an existing site, it cannot be automatically configured separately.
Recommended site search: ftp free space Hong Kong server, mainland China php space, Korean independent server, public network ip, how to build a server, icp filing query, Hong Kong ip, corporate email, mainland China dynamic ip proxy,
发表评论