Letsencrpyt Ubuntu 16.04: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 7: Zeile 7:
 
=Get the cert=
 
=Get the cert=
 
*sudo certbot --apache certonly
 
*sudo certbot --apache certonly
 +
=Certs Directory=
 +
*tree /etc/letsencrypt/
 +
<pre>
 +
/etc/letsencrypt/
 +
├── accounts
 +
│   └── acme-v01.api.letsencrypt.org
 +
│      └── directory
 +
│          └── 7dadf2df086c13b39ec5fd10d0ba33e2
 +
│              ├── meta.json
 +
│              ├── private_key.json
 +
│              └── regr.json
 +
├── archive
 +
│   └── sun.tuxmen.de
 +
│      ├── cert1.pem
 +
│      ├── chain1.pem
 +
│      ├── fullchain1.pem
 +
│      └── privkey1.pem
 +
├── csr
 +
│   └── 0000_csr-certbot.pem
 +
├── keys
 +
│   └── 0000_key-certbot.pem
 +
├── live
 +
│   └── sun.tuxmen.de
 +
│      ├── cert.pem -> ../../archive/sun.xmn.de/cert1.pem
 +
│      ├── chain.pem -> ../../archive/sun.xmn.de/chain1.pem
 +
│      ├── fullchain.pem -> ../../archive/sun.xmn.de/fullchain1.pem
 +
│      ├── privkey.pem -> ../../archive/sun.xmn.de/privkey1.pem
 +
│      └── README
 +
├── options-ssl-apache.conf
 +
├── renewal
 +
│   └── sun.xmn.de.conf
 +
└── renewal-hooks
 +
    ├── deploy
 +
    ├── post
 +
    └── pre
 +
</pre>

Version vom 24. Oktober 2017, 10:07 Uhr

Install

  • sudo apt-get update
  • sudo apt-get install software-properties-common
  • sudo add-apt-repository ppa:certbot/certbot
  • sudo apt-get update
  • sudo apt-get install python-certbot-apache

Get the cert

  • sudo certbot --apache certonly

Certs Directory

  • tree /etc/letsencrypt/
/etc/letsencrypt/
├── accounts
│   └── acme-v01.api.letsencrypt.org
│       └── directory
│           └── 7dadf2df086c13b39ec5fd10d0ba33e2
│               ├── meta.json
│               ├── private_key.json
│               └── regr.json
├── archive
│   └── sun.tuxmen.de
│       ├── cert1.pem
│       ├── chain1.pem
│       ├── fullchain1.pem
│       └── privkey1.pem
├── csr
│   └── 0000_csr-certbot.pem
├── keys
│   └── 0000_key-certbot.pem
├── live
│   └── sun.tuxmen.de
│       ├── cert.pem -> ../../archive/sun.xmn.de/cert1.pem
│       ├── chain.pem -> ../../archive/sun.xmn.de/chain1.pem
│       ├── fullchain.pem -> ../../archive/sun.xmn.de/fullchain1.pem
│       ├── privkey.pem -> ../../archive/sun.xmn.de/privkey1.pem
│       └── README
├── options-ssl-apache.conf
├── renewal
│   └── sun.xmn.de.conf
└── renewal-hooks
    ├── deploy
    ├── post
    └── pre