Koozali.org: home of the SME Server

Lets encrypt Unsafe TLS

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Lets encrypt Unsafe TLS
« on: February 20, 2019, 08:02:02 PM »
I have a friends sme that I am adding this contrib to.
However I have followed the wiki and lets encrypt completes without errors in test mode and production
however no when accessing any https page I get an error

Cannot securely connect to this page
This might be because the site uses outdated or unsafe TLS security settings. If this keeps happening, try contacting the website’s owner.

I have checked that
Quote
modSSL=service
    CertificateChainFile=/etc/dehydrated/certs/wakefield-security.com/chain.pem
    TCPPort=443
    access=public
    crt=/etc/dehydrated/certs/wakefield-security.com/cert.pem
    key=/etc/dehydrated/certs/wakefield-security.com/privkey.pem
    status=enabled

When running the command
Quote
[root@borris ~]# dehydrated -c -x
# INFO: Using main config file /etc/dehydrated/config
Processing wakefield-security.com with alternative names: mail.wakefield-security.com borris.wakefield-security.com
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till May 21 17:42:53 2019 GMT (Longer than 30 days). Ignoring because renew was forced!
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting authorization for wakefield-security.com...
 + Requesting authorization for mail.wakefield-security.com...
 + Requesting authorization for borris.wakefield-security.com...
 + 3 pending challenge(s)
 + Deploying challenge tokens...
 + Responding to challenge for wakefield-security.com authorization...
 + Challenge is valid!
 + Responding to challenge for mail.wakefield-security.com authorization...
 + Challenge is valid!
 + Responding to challenge for borris.wakefield-security.com authorization...
 + Challenge is valid!
 + Cleaning challenge tokens...
 + Requesting certificate...
 + Checking certificate...
 + Done!
 + Creating fullchain.pem...
 + Using cached chain!
Set up modSSL db keys
Signal events
All complete
 + Done!
Im assuming I have something leftover from a previous version of sme as this server started life as a sme 7 using affa to move from 7 to 8 to 9
But i dont know where. There was a cipher property that i removed but hasnt helped
Any ideas please?

James

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Lets encrypt Unsafe TLS
« Reply #1 on: February 21, 2019, 03:37:08 PM »
Some more info from the webpage error when connecting to any https page

Quote
Secure Connection Failed

An error occurred during a connection to mail.wakefield-security.com. Peer using unsupported version of security protocol. Error code: SSL_ERROR_UNSUPPORTED_VERSION

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.

Learn more…

Report errors like this to help Mozilla identify and block malicious sites

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Lets encrypt Unsafe TLS
« Reply #2 on: February 21, 2019, 04:47:14 PM »
Hard to tell without more info.

Seems the certs are being generated correctly.

First thing is to check for any non standard/custom httpd templates.

Check your httpd config settings, and your db accounts settings for each ibay.

Do you have any other contribs installed? Where does the website point to on the server? An ibay or a different directory?

Don't remove thing like Cipher settings unless you absolutely know what you are doing. Which key did you delete??

Post back with some info and someoneay be able to help.
...
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 Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Lets encrypt Unsafe TLS
« Reply #3 on: February 21, 2019, 07:38:53 PM »
What would help is to read the presented certificate to see the issue and expiration date, the domains and the issuer.

From modssl config we see at least the generation has ended and updated the path to certificate. But from my experience it is hard to know if this is test one or live one. Also it does not assure you the httpd server was actually restarted neither the template has been expanded.

Also as it is old server updated since sme7, one could have a template custom hidding the needed fragments for lets’encrypt.

/sbin/e-smith/audittools/templates


Should give info on this.

And to check any error on expanding template try

expand-template /etc/httpd/conf/httpd.conf


Also to see error related:
httpd -t

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Lets encrypt Unsafe TLS
« Reply #4 on: March 07, 2019, 10:02:16 PM »
What would help is to read the presented certificate to see the issue and expiration date, the domains and the issuer.

/sbin/e-smith/audittools/templates


Should give info on this.

And to check any error on expanding template try

expand-template /etc/httpd/conf/httpd.conf
/etc/e-smith/templates-custom/etc/dhcpd.conf/25LeaseTimeDefault: OWNED_BY_RPM, OVERRIDE
/etc/e-smith/templates-custom/etc/dhcpd.conf/25DomainNameServers: OWNED_BY_RPM, OVERRIDE
/etc/e-smith/templates-custom/etc/dhcpd.conf/25LeaseTimeMax: OWNED_BY_RPM, OVERRIDE
/etc/e-smith/templates-custom/etc/dhcpd.conf/25Routers: OWNED_BY_RPM, OVERRIDE
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/relayclients/10CustomAllowRelay: MANUALLY_ADDED, ADDITION

Quote
Also to see error related:
httpd -t
[root@bo ~]# httpd -t
Syntax OK

hopefully the above helps?


Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Lets encrypt Unsafe TLS
« Reply #5 on: March 07, 2019, 10:03:46 PM »
also
Quote
[root@borris ~]# expand-template /etc/httpd/conf/httpd.conf
[root@borris ~]#
Quote

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Lets encrypt Unsafe TLS
« Reply #6 on: March 07, 2019, 11:28:25 PM »
You still haven't advised what Cipher setting you modified or removed.

Note your original error and search it on the interwebs.

SSL_ERROR_UNSUPPORTED_VERSION

How about running ssl test and see what it tells you:

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

...
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 ReetP

  • *
  • 3,731
  • +5/-0
Re: Lets encrypt Unsafe TLS
« Reply #7 on: March 07, 2019, 11:54:05 PM »
Hmmmm. Assuming that is the domain.....

I can reach an ibay here.

http://mail.wakefield-security.com/

However......

https://www.ssllabs.com/ssltest/analyze.html?d=mail.wakefield-security.com

That doesn't make pretty reading.

You need to sort out your router PDQ.....
...
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 jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Lets encrypt Unsafe TLS
« Reply #8 on: March 08, 2019, 10:01:22 PM »
Hmmmm. Assuming that is the domain.....

I can reach an ibay here.

http://mail.wakefield-security.com/

However......

https://www.ssllabs.com/ssltest/analyze.html?d=mail.wakefield-security.com

#

That doesn't make pretty reading.

You need to sort out your router PDQ.....

AH!!!
Its the router should of known it wasnt sme. Sorry I didnt setup his router I just help with his sme box. Ill have a word
Thankyou!!!!

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: Lets encrypt Unsafe TLS
« Reply #9 on: March 08, 2019, 11:22:04 PM »
You might want some port forwarding for https to your SME :-)

And hide remote access to the router.....
...
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