Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to apply for https certificate

Shulou Source: shulou.com Published: 2022-06-01 10:59:40 11月14日 Update

This article mainly explains "how to apply for a https certificate". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to apply for a https certificate.

Here are two relatively simple ways to apply: use the website https://freessl.cn/ to apply for a certificate valid for one year for free online. * * get certbot client * * wget https://dl.eff.org/certbot-autochmod axix certbot-auto** stop nginx/apache**systemctl stop nginx** generation certificate * *. / certbot-auto certonly-- standalone-- email `Your email address `- d `your domain name address` need to be added after the current website has multiple domain names For example:. / certbot-auto certonly-- standalone-- email `your email address `- d `your domain name 1`-d` your domain name 2` * * View the production certificate * * tree / etc/letsencrypt/live/** add the certificate for nginx** to listen 443 ssl http2 under the server field Server_name domain_name; root / usr/share/nginx/html; ssl_certificate / etc/letsencrypt/live/domain_name/fullchain.pem; ssl_certificate_key / etc/letsencrypt/live/domain_name/privkey.pem; ssl_session_timeout 5m; ssl_ciphers ECDHE, RSAMUR, AES128, Musashi, GCMMuSHA256, ECDH, ECDH, AESHH, HIGH, null, aNULL, MD5, MD5, ADH, RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2. Ssl_prefer_server_ciphers on;** is now configured with https, so you can renew automatically by adding the following to the task schedule. 00,12 * python-c 'import random; import time; time.sleep (random.random () * 3600)' & & certbot renew** launch nginx/apache** systemctl start nginx thank you for reading, the above is the content of "how to apply for https certificate", after the study of this article, I believe you have a deeper understanding of how to apply for a https certificate, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Certificate domain name content address learning website mailbox valid task free application multiple fields customer client that is ideas situations articles methods more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Xiaomi Linux MariaDB Shulou Technology