$sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install certbot
$certbot certonly --manual
Automatico, desactiva tu server y deja que certbot haga lo suyo
sudo certbot certonly --standalone
const privateKey = fs.readFileSync('/etc/letsencrypt/live/yourdomain.com/privkey.pem', 'utf8');
const certificate = fs.readFileSync('/etc/letsencrypt/live/yourdomain.com/cert.pem', 'utf8');
const ca = fs.readFileSync('/etc/letsencrypt/live/yourdomain.com/chain.pem', 'utf8')
const = credentials = {
key: privateKey,
cert: certificate,
ca: ca
}
Comentarios
Publicar un comentario