Jailer
Not strong, but bad
- Joined
- Sep 12, 2014
- Messages
- 4,977
From the jail cli:Hey Jailer,
Can you detail out the steps here?
First you need to download the ports tree and extract them
portsnap fetch extract
After that add the following to /etc/mke.conf
echo 'DEFAULT_VERSIONS+=ssl=openssl' >> /etc/make.conf
Next uninstall openssl and nginx
pkg delete openssl
pkg delete nginx
Once they have been uninstalled re install each starting with openssl.
cd /usr/ports/security/openssl/ && make install clean
Once that's completed install nginx
cd /usr/ports/www/nginx/ && make install clean
After they have installed restart nginx
service nginx restart
Now go check your results at SSL Labs server test to check the results.
Once you've got all that set you'll need to lock the 2 packages that you installed from ports. If you don't the next time you do a
pkg upgrade
you'll overwrite the ports version with the package install. To do this just run pkg lock name_of_package
and it won't be upgraded until you unlock it.To keep everythign up to date you will need to manage the packages and ports seperately. Packages are managed with the package manger. To manage the ports you have a couple options. I install the portmaster package to manage my ports but you can install what works for you.
Your workflow for updates will go as follows:
pkg upgrade
and upgrade all your packages.pkg unlock name_of_package
and unlock nginx and opensslportsnap fetch update
to update the ports treeportmaster -a
to check your packages and install available updatespkg lock name_of_package
to lock nginx and openssl after updates are installed
Can you provide the relevant section in your conf file also?
Code:
server { listen 443 ssl; server_name www.boredguy.showersnet.com boredguy.showersnet.com; root /usr/local/www/nginx; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_certificate /usr/local/etc/letsencrypt/live/boredguy.showersnet.com/fullchain.pem; ssl_certificate_key /usr/local/etc/letsencrypt/live/boredguy.showersnet.com/privkey.pem; ssl_stapling on; ssl_stapling_verify on; ssl_dhparam /usr/local/etc/nginx/dhparams.pem; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; }
Last edited: