Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| notes:solaris_tips [2019/08/19 08:39] – [Howto disable launching X on /dev/console] admin | notes:solaris_tips [2026/10/25 19:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Solaris tips ====== | ====== Solaris tips ====== | ||
| + | ===== HTTPS Apache web server ===== | ||
| + | The goal is to run HTTPS Apache web server using [[https:// | ||
| + | ==== Let's encrypt ==== | ||
| + | In order to get a certificate from Let’s Encrypt, it is necessary to demonstrate control over the domain. With Let’s Encrypt, it is done by using software that uses the [[https:// | ||
| + | === Deployment of ACME client in Solaris zone running Apache === | ||
| + | * install | ||
| + | < | ||
| + | $ ssh carmon | ||
| + | # pkg install -v gnu-tar | ||
| + | |||
| + | $ mkdir ~/scripts | ||
| + | $ cd ~/scripts | ||
| + | $ wget -O acme.sh https:// | ||
| + | $ ./acme.sh install | ||
| + | $ crontab -l | ||
| + | 48 0 * * * "/ | ||
| + | </ | ||
| + | * issue a certificate | ||
| + | < | ||
| + | # chmod a+w / | ||
| + | $ cd ~/.acme.sh | ||
| + | $ ./acme.sh --issue -d tio.ddns.net -w / | ||
| + | </ | ||
| + | * install the certificate to Apache | ||
| + | < | ||
| + | $ ./acme.sh --install-cert -d tio.ddns.net --cert-file / | ||
| + | $ chmod a+r / | ||
| + | </ | ||
| + | === 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 | ||
