MikeL's FreeBSD howto - Update SSL Certificate
[20240811]
Every year I go through a huge waste of time trying to figure out how
to install my SSL certificate. I blunder around, and suddenly get it
working, and I step back, sigh, and swear that next year I'll just get
it right.
- Make new dir for this year.
- At NetSol download the "SSL package", not the latter the purports
to be used for Apache.
- Unzip NetSol file.
- create a link to, or copy .key file from previous year into
this dir. (Of course this assumes you did not make a new CSR and
such, just renewing an existing cert. Otherwise, make sure the
new signing key is in place here)
- If you omit the following ov_chain step, you'll get
unable
to get local issuer certificate
error.
cp SSL_WILDCARD_CerticateAuthorityRoot.crt ov_chain.crt
edit ov_chain.crt
- add a trailing newline
- append SSL_WILDCARD_IntermediateCA_2.crt
- add a trailing newline
- append SSL_WILDCARD_IntermediateCA_3.crt
- add a trailing newline
- Edit
/usr/local/etc/apache/Includes/httpd-ssl.conf
Don't forget that there may be multiple blocks of these directives
SSLCertificateFile
set to full path to the new STAR.VINTNERS.NET.crt file
SSLCACertificateChainFile
set to full path to this ov_chain.crt
SSLCACertificateFile
set to full path to SSL_WILDCARD_CertificationAuthorityRoot.crt file
Restart apache:
apachectl restart
Test Apache:
- In browser, visit said domain.
- Click on padlock icon.
- Click on "Connection Secure" item.
- Click on "More Information" item.
- This brings up a new window, click on "View Certificate" button.
- This brings up another window, check "Validity" section for new date.
Edit /etc/mail/
[systemname].mc
Change CERT_DIR to proper year, everything else should just work
from this if you haven't changed filenames since last time.
And
of course make .cf file, copy into place and restart sendmail.
Test sendmail:
- send an email to that domain.
- check
/var/log/maillog
for errors.
Update imap/pop3/lmtp:
Edit /usr/local/etc/imapd
:
- Fix
tls_server_cert
- should match sendmail confSERVER_CERT
- Fix
tls_server_key
- should match sendmail confSERVER_KEY
- Fix
tls_server_ca_file
- should match sendmail confCACERT
- Fix
tls_server_ca_dir
- should match sendmail CERT_DIR
Note! Thunderbird simply showed no new email even though I know
there's email. In order to localize the problem, I installed
Thunderbird on a different system - there it worked just fine. I
messed with my TB settings, deleted certs, etc. no dice. Finally, I
simply "removed" that "account", and recreated it - all is well
now.
Copyright © 1995-2024
Mike Lempriere
(running on host bayanus)