I’m tried to installed a SSL-certificate via certbot and just let him do his thing BUT although I get the message with something like: congrats… successfully install… expires on the DATE
but now if I try go to my website it still is http. I read that certbot maybe did not update/add the paths for apache2 but I don’t know how to do that.
Debian 8 Jessie
Apache2
used certbot automated
I’m sorry if you lack some information to help I’ll add if you tell me what you need :>
Seems like the site is available now but it uses my selfsigned certificate instead of the one certbot made. How can I change this?
Also! How can I make the http version unavailable for public? so if people only enter anttology.com manually that they get to https instantly without having to type it themselves? Now if you go for anttology.com you get to the http version which now is “empty”
You need to find the conf file that serves the secure site (:443)
There you can modify which cert file is used.
That can be done with a redirection statement.
You need to find the conf file that serves the regular site (:80)
There you can insert a redirect statement like this:
Redirect "/" "https://www.example.com/"
or for more than just redirection to the main https start page:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI}
or maybe this could also do the trick:
SSLOptions +StrictRequire
SSLRequireSSL
try adding this to the :443 part:
SSLCipherSuite ECDH:DH:!ADH:!aNULL:!AESCCM:!DSS:!eNULL:!SEED:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA
It’s a very basic starting point.
You can read up on that and later decide for yourself which ciphers you would like to serve and in which order.
SSLOpenSSLConfCmd DHParameters
If using DHE ciphers.
And
SSLOpenSSLConfCmd Curves
as well.
openssl ciphers
will show all ciphers available on that version of openssl
openssl ciphers ECDH:DH:!ADH:!aNULL:!AESCCM:!DSS:!eNULL:!SEED:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA
will show the ciphers available with those restrictions.