Difference between revisions of "User:Alvonruff/HTTPS Notes"

From ISFDB
Jump to navigation Jump to search
Line 29: Line 29:
  
 
==Issues to Resolve==
 
==Issues to Resolve==
* The front page is still labeled insecure, while all other pages seem ok. This has something to do with the redirect, as following the navbar Home Page link goes to a secure page.
+
* The front page is still labeled insecure, while all other pages seem ok.
 +
** This cleared up, but unsure why.
 
* Can not log into the wiki, nor the isfdb
 
* Can not log into the wiki, nor the isfdb
 
** Clearing out the cookies fixed the wiki issue.
 
** Clearing out the cookies fixed the wiki issue.

Revision as of 14:11, 11 May 2022

Apache

  • dnf install mod_ssl
  • systemctl restart httpd
  • httpd -M
  • cd /etc/httpd/conf.d
  • Create file isfdb2.org.conf
  • Add the following contents:
<VirtualHost *:80>
    ServerName stage.isfdb2.org
    DocumentRoot /var/www/html
    ServerAlias isfdb2.org
    ErrorLog /var/www/error.log
    CustomLog /var/www/requests.log combined
</VirtualHost>
  • service httpd restart

Certificate Support Software

  • dnf install epel-release
  • dnf install snapd
  • dnf install certbot
  • dnf install python3-certbot-apache

Certificates

  • certbot --apache
    • Select isfdb2.org
  • systemctl restart httpd

Issues to Resolve

  • The front page is still labeled insecure, while all other pages seem ok.
    • This cleared up, but unsure why.
  • Can not log into the wiki, nor the isfdb
    • Clearing out the cookies fixed the wiki issue.
    • Mediawiki is using pbkdf2, while isfdb is using md5, so the next step is obvious...
  • Prepending www doesn't seem to work:
    • If we traverse from an external site (or the web browser) to a www.isfdb2.org URL, it works (as it should)
    • If we configure the isfdb variables to www.isfdb2.org, it does not work
    • As such, this is likely not an issue.