Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| notes:solaris_tips [2021/04/30 11:32] – [Let's encrypt] admin | notes:solaris_tips [2026/10/25 19:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| $ wget -O acme.sh https:// | $ wget -O acme.sh https:// | ||
| $ ./acme.sh install | $ ./acme.sh install | ||
| + | $ crontab -l | ||
| + | 48 0 * * * "/ | ||
| </ | </ | ||
| * issue a certificate | * issue a certificate | ||
| Line 23: | Line 25: | ||
| * install the certificate to Apache | * install the certificate to Apache | ||
| < | < | ||
| - | acme.sh --install-cert -d tio.ddns.net | + | $ ./acme.sh --install-cert -d tio.ddns.net --cert-file /etc/apache2/2.4/letsencrypt/tio.ddns.net/cert.pem --key-file /etc/apache2/2.4/letsencrypt/tio.ddns.net/key.pem --fullchain-file /etc/apache2/2.4/letsencrypt/tio.ddns.net/ |
| - | --cert-file | + | $ chmod a+r / |
| - | --key-file | + | |
| - | --fullchain-file /path/to/fullchain/certfile/apache/ | + | |
| - | --reloadcmd | + | |
| </ | </ | ||
| + | === Configure Apache to use Let's Encrypt certificates === | ||
| + | * enable SSL in Apache | ||
| + | * [[https:// | ||
| + | < | ||
| + | # vim / | ||
| + | ... | ||
| + | Listen 80 | ||
| + | Listen 443 | ||
| + | ... | ||
| + | LoadModule ssl_module libexec/ | ||
| + | ... | ||
| + | < | ||
| + | ServerName tio.ddns.net | ||
| + | Redirect / https:// | ||
| + | </ | ||
| + | < | ||
| + | ServerName tio.ddns.net | ||
| + | Protocols h2 http/1.1 | ||
| + | |||
| + | SSLEngine on | ||
| + | SSLCertificateFile / | ||
| + | SSLCertificateKeyFile / | ||
| + | </ | ||
| + | ... | ||
| + | # svcadm restart apache24 | ||
| + | </ | ||
| + | Jako alternativa viz článek [[https:// | ||
| + | ===== Howto remove password from pdf document ===== | ||
| + | < | ||
| + | $ qpdf --password=YOURPASSWORD-HERE --decrypt input.pdf output.pdf | ||
| + | </ | ||
| ===== Howto merge pdf documents ===== | ===== Howto merge pdf documents ===== | ||
| + | < | ||
| + | $ pdfunite pdf1.pdf pdf2.pdf ... out.pdf | ||
| + | </ | ||
| + | or | ||
| < | < | ||
| $ gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -sOutputFile=out.pdf *.pdf | $ gs -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -sOutputFile=out.pdf *.pdf | ||
