# apt-get update ; apt-get dselect-upgrade -f fix-missing upgrade # apt-cache search letsencrypt # apt-get install letsencrypt # apt-cache show letsencrypt
# add-apt-repository ppa:certbot/certbot
# add-apt-repository --remove ppa:certbot/certbot
# apt-get install ppa-purge
# ppa-purge ppa:certbot/certbot
# letsencrypt certonly --webroot -w /home/admin/tomcat8_ecp/webapps/ -d ecp.adminschool.net
–dry-run
옵션을 붙여서 통과할 때까지 TEST한 다음 테스트 통과하면, –dry-run
옵션을 빼고 정식으로 진행하는 것이 좋다.–dry-run
옵션은 certonly
나 renew
명령하고만 함께 사용할 수 있는 옵션이다.# letsencrypt certonly --webroot -w /home/admin/tomcat8_ecp/webapps/ -d ecp.adminschool.net --dry-run
... IMPORTANT NOTES: - The dry run was successful.
letsencrypt revoke --cert-path /etc/letsencrypt/archive/ecp.adminschool.net/cert1.pem
Host name
수정 <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Host name="ecp.adminschool.net" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig> <Certificate certificateKeyFile="/etc/letsencrypt/live/ecp.adminschool.net/privkey.pem" certificateFile="/etc/letsencrypt/live/ecp.adminschool.net/cert.pem" certificateChainFile="/etc/letsencrypt/live/ecp.adminschool.net/fullchain.pem" type="RSA" /> </SSLHostConfig> </Connector>
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443" maxHttpHeaderSize="40000" />
.well-known/acme-challenge
디렉토리를 생성한다. # mkdir -p .well-known/acme-challenge
# letsencrypt certonly --webroot -w /home/admin/tomcat8_ecp/webapps/ -d ecp.adminschool.net