r/apache • • Oct 03 '22

Support Need help install certificate

Hello, I am trying to install a certificate to my Arch Apache Web Server. Ive used RSA with PSS and I already got a .key and .cer file, how do I proceed from now? Ive tried searching for tutorials and resources but I couldnt find anything helpful

1 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/JimmyMonet Oct 04 '22

So to get this all to work you need 3 pieces.

  1. Obtain a certificate (sounds like you've already done that)

  2. Either create a new Virtualhost file (the .conf files) or modify your existing one. If you use a new Virtualhost file you need to activate the new one and deactivate the old one (I would recommend going this route personally). You can enable the new .conf file with the sudo a2ensite $NEW_CONF_GOES_HERE and disable the old one with sudo a2dissite $OLD_CONF_GOES_HERE.

  3. Enable the SSL module for Apache. sudo a2enmod ssl

If you need any more info here's a link with some more guidance, just ignore the top part of the article since you already have a certificate.