반응형
- 90일 마다 갱신
- 무료
- 생성 횟수 제한이 있으므로(시간 제한이 걸림 = 시간이 지나면 다시 생성 가능)
- 해당 내용은 cafe24 웹호스팅 사용자 (http 인증)
1. 설치 (https://letsencrypt.org/ko/getting-started/)
user@MacBook-Air ~ % brew install certbot
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 5 taps (heroku/brew, shivammathur/php, homebrew/core, homebrew/cask and homebrew/services).
==> New Formulae
crfsuite juicefs soplex utftex
==> New Casks
pokemon-tcg-live
You have 17 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
Warning: certbot 2.2.0 is already installed and up-to-date.
To reinstall 2.2.0, run:
brew reinstall certbot
user@MacBook-Air ~ %
2. 인증서 생성
user@MacBook-Air ~ % sudo certbot certonly --manual \
--preferred-challenges http \
--email user@mail.com \
--agree-tos \
--key-type rsa \
-d domain.com
--manual : 수동옵션
--preferred-challenges http : http 인증
--email : 이메일
--agree-tos : 사전 동의
--key-type rsa : rsa 로 처리해야 cafe24 에서 등록이 가능
-d domain.com : 사용할 도메인
--key-type rsa 옵션을 반드시 적어주세요 RSA, ECDSA 방식이 있는데 ECDSA 로 생성하면 카페24 등록 시 인증서 해독이 안됩니다.
그럼 위와 같은 형태로 http 인증이 진행 됩니다.
1. 해당 경로에 ftp 로 파일을 생성
2. 파일 내용을 위의 텍스트 입력 후 저장
3. 인증서 확인
user@MacBook-Air ~ % sudo certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: domain.com
Serial Number: 4afb00xa4d4xd7ae5xf62f9x0f403716e3
Key Type: RSA
Domains: domain.com
Expiry Date: 2023-05-09 16:23:50+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/domain.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/domain.com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
반응형
4. cafe24 외부인증서 등록
해당 내용을 입력하고 신청하기를 해주시면 됩니다.
* 해당 경로에 접근은 root 계정으로 접근하시면 됩니다. (su -)
- cat /etc/letsencrypt/live/domain.com/cert.pem
- cat /etc/letsencrypt/live/domain.com/privkey.pem
반응형
'IT' 카테고리의 다른 글
[Flutter] Flutter 란, 장점/단점 (0) | 2023.02.18 |
---|---|
[Flutter] 안드로이드 앱 이름 설정, 변경 (0) | 2023.02.12 |
[Flutter] Map 사용법 (Dart) (0) | 2023.01.23 |
[Mysql] 특정테이블 제외 덤프(dump) 명령어 (0) | 2023.01.12 |
[로직강좌/Logic Pro] 1. 기본 단축키, 레이아웃 (0) | 2023.01.09 |