![plesk letsencrypt plesk letsencrypt](https://i.stack.imgur.com/oCTdz.png)
Read -p "Install certificate of $MainDomain to Postfix/IMAP/POP ? " usr/local/psa/admin/sbin/mailmng -restart-service Tar -chjf Cert-Backup-$2 /etc/postfix/postfix_default.pem /usr/share/imapd.pem /usr/share/pop3d.pemĬat $cacert_file >/tmp/newcert.pemĬp /tmp/newcert.pem /etc/postfix/postfix_default.pemĬhmod 600 /etc/postfix/postfix_default.pem opt/psa/bin/certificate -ac "LetsEncrypt-Auto_($MonthName)_admin_$MainDomain" -admin -ip $IP6
![plesk letsencrypt plesk letsencrypt](https://www.pixelx.de/img/faq/cloud-webhosting/plesk-onyx-letsencrypt.png)
opt/psa/bin/certificate -ac "LetsEncrypt-Auto_($MonthName)_admin_$MainDomain" -admin -ip $IP
![plesk letsencrypt plesk letsencrypt](https://support.cozaq.com/hc/article_attachments/360024532374/image4.png)
Read -p "Install & Assign SSL-Certificate of $MainDomain for IPs (Admin's repository)? " Keypress #Domain $domain will only been updated if either no arguments are given, or the one and only argument matches $domain Read -p "Install certificates in Plesk? " Keypress opt/psa/bin/subscription -u $2 -certificate-name $Certname opt/psa/bin/certificate -c $Certname -admin -key-file $key_file -cert-file $cert_file -cacert-file $cacert_file opt/psa/bin/certificate -c $Certname -domain $1 -key-file $key_file -cert-file $cert_file -cacert-file $cacert_fileĬertname="LetsEncrypt-Auto_($MonthName)_admin_$1"Įcho "Installing certifikate \"$Certname\" to admin's repository." Key_file="/etc/letsencrypt/live/$1/privkey.pem"Ĭert_file="/etc/letsencrypt/live/$1/cert.pem"Ĭacert_file="/etc/letsencrypt/live/$1/fullchain.pem" Read -p "Call letsencrypt-auto ? " KeypressĬertname="LetsEncrypt-Auto_($MonthName)_$1"Įcho "Installing certifikate \"$Certname\" to domain repository." Type YES to continue: " KeypressĮcho "I asked for \"YES\", you gave me \"$Keypress\". # date +%B should give the name of the current month, for more frequent calls use e.g.Įcho " Unique part for each certificate's name: $MonthName" #"MonthName" should be something that is unique between subsequent calles of the script #"Main" domain - the name of the certificate that will be associated to the IPs above.Įcho "Certificates will be renewed and installed in Plesk:"Įcho "Renew will be issued for all, however only domain $1 will be updated in Plesk!" #Domains, format: domain.tld "ĭomains=("domain.tld " "domain2.tld2") It requires Let’s Encrypt’s “certbot” to be installed in $HOME. Luckily, Plesk features it’s own CLI – so let’s make a short script to renew and update certificates.
Plesk letsencrypt install#
Let’s Encrypt features a CLI to request, update and install certificates – which work’s nicely as long as your server’s setup is compatible.
Plesk letsencrypt for free#
Let’s encrypt issues SSL-Certificates for free – meanwhile most Systems trust their CA.