Koozali.org: home of the SME Server

Mail program complains of self signed certificate

Offline ReetP

  • *
  • 3,731
  • +5/-0
Mail program complains of self signed certificate
« on: November 24, 2021, 11:44:14 AM »
This bug refers:

https://bugs.koozali.org/show_bug.cgi?id=11773

Essentially an upgrade to dehydrated 0.7.0, which is the program that generates letsencrypt SSL certificates, means that certificates generated by 0.7.0 are using a new key algorithm.

That is fine for httpd and ftp, but due to some older libraries it trips up the mail system.

The simple fix right now is to do the following:

Code: [Select]
yum --enablerepo=smetest install smeserver-letsencrypt
(This will move to the smecontribs repo soon)

This should install :

Quote
smeserver-letsencrypt.noarch 0:0.5-18

You can then check the config file

Code: [Select]
cat /etc/dehydrated/config
We need to see "KEY_ALGO=rsa" :

Code: [Select]
# SME Server does not support yet elliptic curve (qpsmtpd and perl-IO-SOcket-SSL < 1.95)
KEY_ALGO=rsa

Then run this to force new certificates:

Code: [Select]
dehydrated -c -x
signal-event ssl-update

You should now see RSA certificates if you test here:

https://www.ssllabs.com/ssltest/

Quote
Certificate #1: RSA 4096 bits (SHA256withRSA)

Apologies for any inconvenience. I had looked at the release and did not notice the change. I installed it on my test box and httpd checked out but did not check mail :-(

Of course it didn't change immediately until a new certificate was generated.....

[edited to set the correct package]
« Last Edit: November 24, 2021, 07:43:14 PM by ReetP »
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline mauro

  • ***
  • 101
  • +0/-0
Re: Mail program complains of self signed certificate
« Reply #1 on: November 24, 2021, 02:41:52 PM »
Code: [Select]
yum --enablerepo=smetest install smeserver-dehydrated
do you mean maybe

Code: [Select]
yum --enablerepo=smetest install smeserver-letsencrypt
?
All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer.
-- IBM maintenance manual (1975)

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Mail program complains of self signed certificate
« Reply #2 on: November 24, 2021, 07:42:18 PM »
Code: [Select]
yum --enablerepo=smetest install smeserver-dehydrated
do you mean maybe

Code: [Select]
yum --enablerepo=smetest install smeserver-letsencrypt
?

I do. Damn and blast! I'll edit the original. Thanks!
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation