250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- root
- crontab
- child theme
- 구글 클라우드
- php
- mysql
- https
- MariaDB
- git pull
- centos
- CentOS7
- Google Cloud
- Fail2ban
- vscode
- Linux
- Apache
- launch.json
- new user
- Liniux
- Certbot
- home page
- non-www
- Xdebug
- LetsEncrypt
- DOM Parser
- html
- front page
- wordpress
- SSL
- Mac
Archives
- Today
- Total
between 0 and 1
[SSL] Let's encrypt on Cent OS (how to install) 본문
Software Development Engineering/Dev.Info.
[SSL] Let's encrypt on Cent OS (how to install)
devxpert.yoon 2021. 2. 9. 01:30728x90
반응형
Prerequisites
- CentOS
- Apache Web Server on CentOS
Step 1 - Installing the Crertbot Let's Encrypt Client
$ sudo yum install epel-release
$ sudo yum install certbot python2-certbot-apache mod_ssl -y
Step 2 - Obtaining a Certificate
$ sudo letsencrypt
Step 3 - set information and select domain for ssl
1) set email address
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices)
(Enter 'c' to cancel): email@example.com
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
2) agree to register
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: y
3) share your email address to EFF or not.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: n
Account registered.
4) select domain for HTTPS (SSL certifiation)
Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: ex1.example.com
2: ex2.example2.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for ex1.example.com
Performing the following challenges:
http-01 challenge for ex1.example.com
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/httpd/conf.d/vhost-le-ssl.conf
Deploying Certificate to VirtualHost /etc/httpd/conf.d/vhost-le-ssl.conf
Redirecting vhost in /etc/httpd/conf.d/vhost.conf to ssl vhost in /etc/httpd/conf.d/vhost-le-ssl.conf
5) Congraturation. You obtained a certification
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://ex1.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/ex1.example.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/ex1.example.com/privkey.pem
Your certificate will expire on 2021-05-09. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again with the "certonly" option. To non-interactively
renew *all* of your certificates, run "certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
728x90
반응형
'Software Development Engineering > Dev.Info.' 카테고리의 다른 글
[SSL, Apache] http -> https & www to non-www setting (0) | 2021.02.10 |
---|---|
[SSL] Auto-renewal SSL on CentOS (let's encrypt, certbot) (0) | 2021.02.09 |
[Git] Adding an existing project to GitHub (기존 프로젝트 깃허브에 올리기) (0) | 2021.01.26 |
[VSCode] git pull - There is no tracking information for the current branch (0) | 2021.01.24 |
[Server] SSL for Localhost (Local Development Environment) (0) | 2021.01.03 |