LetsEncrypt on 1.4.2 have error.

  • Hello,
    I have upgrade to 1.4.2. But I have found LetsEncrypt 3.0.0 on imscp 1.4.2 have smtp error.




    Quote

    warning: TLS library problem: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate:s3_pkt.c:1315:SSL alert number 42:


    I disabled LetsEncrypt 3.0.0 and re-enabled it.
    It's can't enabled it and show error.





    Quote


    Plugin::LetsEncrypt::enable: Error: couldn't get currently installed version for /root/.local/share/letsencrypt/bin/letsencrypt: Traceback (most recent call last): File "/root/.local/share/letsencrypt/bin/letsencrypt", line 7, in from certbot.main import main File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py", line 13, in from acme import jose File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/jose/__init__.py", line 37, in from acme.jose.interfaces import JSONDeSerializable File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/jose/interfaces.py", line 9, in from acme.jose import util File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/jose/util.py", line 4, in from cryptography.hazmat.primitives.asymmetric import rsa File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py", line 14, in from cryptography.hazmat.backends.interfaces import RSABackend File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/cryptography/hazmat/backends/__init__.py", line 7, in import pkg_resources File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 21, in import io File "/usr/lib/python2.7/io.py", line 51, in import _ioImportError: No module named _io


    How to fix it?

  • Quote

    warning: TLS library problem: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate:s3_pkt.c:1315:SSL alert number 42:

    I use thunderbird mail client.I can send mail when I allow this cert.But python error still.

  • @akong7777


    Can we acces the server?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @akong7777


    Problem fixed. Certbot client was not installed correctly:

    Shell-Script
    1. root@web1:~# certbot-auto --versionError: couldn't get currently installed version for /root/.local/share/letsencrypt/bin/letsencrypt:Traceback (most recent call last):File "/root/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module>from certbot.main import mainFile "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py", line 13, in <module>from acme import joseFile "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/jose/__init__.py", line 37, in <module>from acme.jose.interfaces import JSONDeSerializableFile "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/jose/interfaces.py", line 9, in <module>from acme.jose import utilFile "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/jose/util.py", line 4, in <module>from cryptography.hazmat.primitives.asymmetric import rsaFile "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py", line 14, in <module>from cryptography.hazmat.backends.interfaces import RSABackendFile "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/cryptography/hazmat/backends/__init__.py", line 7, in <module>import pkg_resourcesFile "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 21, in <module>import ioFile "/usr/lib/python2.7/io.py", line 51, in <module>import _ioImportError: No module named _io


    I've fixed the problem as follow

    Shell-Script
    1. root@web1:~# rm -r /root/.local/root@web1:~# certbot-auto --versionBootstrapping dependencies for Debian-based OSes...已有 http://security.debian.org jessie/updates InRelease已有 http://security.debian.org jessie/updates/main Sources已有 http://security.debian.org jessie/updates/contrib Sources已有 http://security.debian.org jessie/updates/non-free Sources已有 http://security.debian.org jessie/updates/main amd64 Packages已有 http://security.debian.org jessie/updates/contrib amd64 Packages略過 http://ftp.debian.org jessie InRelease已有 http://security.debian.org jessie/updates/non-free amd64 Packages已有 http://http.debian.net jessie-backports InRelease已有 http://security.debian.org jessie/updates/contrib Translation-en已有 http://security.debian.org jessie/updates/main Translation-en已有 http://security.debian.org jessie/updates/non-free Translation-en已有 http://ftp.debian.org jessie-updates InRelease下載:1 http://http.debian.net jessie-backports/main Sources/DiffIndex [27.8 kB]已有 http://ftp.debian.org jessie-backports InRelease下載:2 http://http.debian.net jessie-backports/contrib Sources/DiffIndex [27.4 kB]已有 http://ftp.debian.org jessie Release.gpg下載:3 http://http.debian.net jessie-backports/non-free Sources/DiffIndex [20.5 kB]已有 http://ftp.debian.org jessie-updates/main Sources下載:4 http://http.debian.net jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]已有 https://packages.sury.org jessie InRelease已有 http://ftp.debian.org jessie-updates/contrib Sources下載:5 http://http.debian.net jessie-backports/contrib amd64 Packages/DiffIndex [23.3 kB]已有 https://packages.sury.org jessie/main Sources已有 http://ftp.debian.org jessie-updates/non-free Sources下載:6 http://http.debian.net jessie-backports/non-free amd64 Packages/DiffIndex [18.9 kB]下載:7 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [7,408 B]已有 https://packages.sury.org jessie/main amd64 Packages下載:8 http://http.debian.net jessie-backports/contrib Translation-en/DiffIndex [6,484 B]已有 http://ftp.debian.org jessie-updates/contrib amd64 Packages下載:9 https://packages.sury.org jessie/main Translation-zh_TW [169 B]下載:10 http://http.debian.net jessie-backports/main Translation-en/DiffIndex [27.8 kB]下載:11 http://ftp.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]下載:12 https://packages.sury.org jessie/main Translation-zh [169 B]下載:13 http://http.debian.net jessie-backports/non-free Translation-en/DiffIndex [14.7 kB]已有 http://ftp.debian.org jessie-updates/contrib Translation-en下載:14 https://packages.sury.org jessie/main Translation-en [169 B]下載:15 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [2,704 B]下載:16 https://packages.sury.org jessie/main Translation-zh_TW [169 B]下載:17 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]下載:18 https://packages.sury.org jessie/main Translation-zh [169 B]下載:19 http://ftp.debian.org jessie-backports/main Sources/DiffIndex [27.8 kB]下載:20 https://packages.sury.org jessie/main Translation-en [169 B]下載:21 https://packages.sury.org jessie/main Translation-zh_TW [169 B]下載:22 http://ftp.debian.org jessie-backports/contrib Sources/DiffIndex [27.4 kB]下載:23 https://packages.sury.org jessie/main Translation-zh [169 B]下載:24 http://ftp.debian.org jessie-backports/non-free Sources/DiffIndex [20.5 kB]下載:25 https://packages.sury.org jessie/main Translation-en [169 B]下載:26 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]下載:27 https://packages.sury.org jessie/main Translation-zh_TW [169 B]下載:28 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [23.3 kB]下載:29 https://packages.sury.org jessie/main Translation-zh [169 B]下載:30 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [18.9 kB]下載:31 https://packages.sury.org jessie/main Translation-en [169 B]下載:32 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [6,484 B]下載:33 https://packages.sury.org jessie/main Translation-zh_TW [169 B]略過 https://packages.sury.org jessie/main Translation-zh_TW下載:34 https://packages.sury.org jessie/main Translation-zh [169 B]略過 https://packages.sury.org jessie/main Translation-zh下載:35 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]下載:36 https://packages.sury.org jessie/main Translation-en [169 B]略過 https://packages.sury.org jessie/main Translation-en下載:37 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [14.7 kB]已有 http://ftp.debian.org jessie Release已有 http://ftp.debian.org jessie/main Sources已有 http://ftp.debian.org jessie/contrib Sources已有 http://ftp.debian.org jessie/non-free Sources已有 http://ftp.debian.org jessie/main amd64 Packages已有 http://ftp.debian.org jessie/contrib amd64 Packages已有 http://ftp.debian.org jessie/non-free amd64 Packages已有 http://ftp.debian.org jessie/contrib Translation-en已有 http://ftp.debian.org jessie/main Translation-zh_TW已有 http://ftp.debian.org jessie/main Translation-zh已有 http://ftp.debian.org jessie/main Translation-en已有 http://ftp.debian.org jessie/non-free Translation-en取得 401 kB 用了 11s (35.6 kB/s)正在讀取套件清單... 完成正在讀取套件清單... 完成正在重建相依關係正在讀取狀態資料... 完成augeas-lenses 已經是最新版本了。libaugeas0 已經是最新版本了。ca-certificates 已經是最新版本了。gcc 已經是最新版本了。libffi-dev 已經是最新版本了。python 已經是最新版本了。python-dev 已經是最新版本了。python-virtualenv 已經是最新版本了。virtualenv 已經是最新版本了。libssl-dev 已經是最新版本了。openssl 已經是最新版本了。升級 0 個,新安裝 0 個,移除 0 個,有 0 個未被升級。Creating virtual environment...Installing Python packages...Installation succeeded.certbot 0.12.0
    Shell-Script
    1. root@web1:~# certbot-auto --versioncertbot 0.12.0

    [hr]
    For your mail client problem, please use web1.aspa.idv.tw as IMAP and SMTP server hostname. Postfix and Dovecot both use the /etc/imscp/imscp_services.pem SSL certificate (copy of Let's Encrypt SSL certificate) which is valid till 28 june 2017:


    Shell-Script
    1. root@web1:~# openssl verify -CAfile /etc/letsencrypt/live/web1.aspa.idv.tw/fullchain.pem /etc/letsencrypt/live/web1.aspa.idv.tw/fullchain.pem/etc/letsencrypt/live/web1.aspa.idv.tw/fullchain.pem: OK


    Shell-Script
    1. root@web1:~# openssl verify -CAfile /etc/imscp/imscp_services.pem /etc/imscp/imscp_services.pem/etc/imscp/imscp_services.pem: OK


    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @akong7777


    Furthermore, make sure that your mail client is supporting TLS. SSLv3 is now discarded:


    Shell-Script
    1. root@web1:~# cat /etc/dovecot/dovecot.conf |grep ssl_protocolsssl_protocols = !SSLv2 !SSLv3


    Shell-Script
    1. root@web1:~# cat /etc/postfix/main.cf |grep smtpd_tls_protocolssmtpd_tls_protocols = !SSLv2, !SSLv3

    Test for SMTP succeded:

    Shell-Script
    1. root@web1:~# openssl s_client -connect web1.aspa.idv.tw:587 -starttls smtpCONNECTED(00000003)depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3verify return:1depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3verify return:1depth=0 CN = web1.aspa.idv.twverify return:1---Certificate chain0 s:/CN=web1.aspa.idv.twi:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X31 s:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3i:/O=Digital Signature Trust Co./CN=DST Root CA X3---Server certificate-----BEGIN CERTIFICATE-----MIIFJzCCBA+gAwIBAgISA2rkj0SpSATXY8lUZaU5sE+BMA0GCSqGSIb3DQEBCwUAMEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQDExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xNzAzMzAxNDUxMDBaFw0xNzA2MjgxNDUxMDBaMBsxGTAXBgNVBAMTEHdlYjEuYXNwYS5pZHYudHcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDIKiUz1YWdkTAOS93dCfHCsrEmEj9U+6lN/iVyHkt8nftocYKzMmswNgBQIwiXaV2SILSZooFySdtkmAB0/UM+S3rfDfKMDLM7Y10N+VN5a32zYmaTzZ26tCfK7pFejtzyyMRr2qGzcp4qOw3ZKoOAsnFH4bNVn71CIufn5omGNHmkmIJ04Gwsw+5lDb73R0z55xawAHFYt6UyXQbNi/GgWNoDtJKzoesesi196V7URGiRLdgU11VPaxQ7/LPvL1gxlukdXnN/PuF7RwBBMLLEZjIWCgzkeXp0eLLcSCFtUze3mfp0ADYCtBsaUE6/3Gsgjb0umsXGVT+hrDgGg0ZvAgMBAAGjggI0MIICMDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFMAvfhhHtFsEV3YScjUmisq+55UeMB8GA1UdIwQYMBaAFKhKamMEfd265tE5t6ZFZe/zqOyhMHAGCCsGAQUFBwEBBGQwYjAvBggrBgEFBQcwAYYjaHR0cDovL29jc3AuaW50LXgzLmxldHNlbmNyeXB0Lm9yZy8wLwYIKwYBBQUHMAKGI2h0dHA6Ly9jZXJ0LmludC14My5sZXRzZW5jcnlwdC5vcmcvMD4GA1UdEQQ3MDWCD2Z0cC5hc3BhLmlkdi50d4IQbWFpbC5hc3BhLmlkdi50d4IQd2ViMS5hc3BhLmlkdi50dzCB/gYDVR0gBIH2MIHzMAgGBmeBDAECATCB5gYLKwYBBAGC3xMBAQEwgdYwJgYIKwYBBQUHAgEWGmh0dHA6Ly9jcHMubGV0c2VuY3J5cHQub3JnMIGrBggrBgEFBQcCAjCBngyBm1RoaXMgQ2VydGlmaWNhdGUgbWF5IG9ubHkgYmUgcmVsaWVkIHVwb24gYnkgUmVseWluZyBQYXJ0aWVzIGFuZCBvbmx5IGluIGFjY29yZGFuY2Ugd2l0aCB0aGUgQ2VydGlmaWNhdGUgUG9saWN5IGZvdW5kIGF0IGh0dHBzOi8vbGV0c2VuY3J5cHQub3JnL3JlcG9zaXRvcnkvMA0GCSqGSIb3DQEBCwUAA4IBAQBgxyknR5le8qZiiY+V/8i9wjP9RgAAhNP+xgZFgqi/n+91fhqyh+LY/S3QLQPgG0alaEmRDK2S/jkiBjiuCgZXAs+3l17OBapHItiNUX6P4A2yOcO2nVXGQ7Kx+UzHpv+hBO7ct1iIrhIVxNEiqg9fag+j86j1CKO1+feZl//o6qdjpFwilvmER/aJzqS4LC1cOp3CLcn4sbyFl36pMmIfF5VdKopNrjqiL8ZheoTTQTTUjuzimvBRBjrUHH1FoCpmUDN9izBhEcO1/4ipwjLG+pjdpOW3G3Y/cuktCTfUlPTpPXpF8hTown8yePfFHkWA7/yeEjmtM2u435ACCoFD-----END CERTIFICATE-----subject=/CN=web1.aspa.idv.twissuer=/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3---No client certificate CA names sentPeer signing digest: SHA512Server Temp Key: ECDH, P-256, 256 bits---SSL handshake has read 3412 bytes and written 436 bytes---New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384Server public key is 2048 bitSecure Renegotiation IS supportedCompression: NONEExpansion: NONENo ALPN negotiatedSSL-Session:Protocol : TLSv1.2Cipher : ECDHE-RSA-AES256-GCM-SHA384Session-ID: 537CFBF28B04E2E58FBC8660CBC7586133F4912D11B8FF50894904FF3382D9DCSession-ID-ctx:Master-Key: FA99DC4B4432EDFA1C0CCBB5CE92A272DB4713EA5F89D4637E1FA1EDC76EC8166706CEB56040B0F3B1787DE695D9EFF7Key-Arg : NonePSK identity: NonePSK identity hint: NoneSRP username: NoneTLS session ticket lifetime hint: 7200 (seconds)TLS session ticket:0000 - 7d 4a 75 41 a5 f3 f4 36-fd 2c 18 4e c0 c3 6a dc }JuA...6.,.N..j.0010 - 90 b6 95 e8 21 1a de 05-37 00 ec da f6 5e da a9 ....!...7....^..0020 - 2d f0 b7 12 b2 fe 15 89-67 e1 bb 0b c6 d0 aa 26 -.......g......&0030 - 16 23 1e 93 33 eb 73 37-ed cd 16 eb e3 bf e9 4b .#..3.s7.......K0040 - b9 f7 2b 63 c9 5e 28 92-70 e7 aa 17 6f 05 8e 33 ..+c.^(.p...o..30050 - a5 4c dd 6b 2c a5 9a b4-95 ff 2c 55 c0 0e 62 50 .L.k,.....,U..bP0060 - f2 6d f3 ed d1 f0 ed 12-ad ae 3c 39 ee e2 b3 33 .m........<9...30070 - 71 b2 ca 91 d1 9e 4c 29-df b0 d8 c4 b9 19 d2 fc q.....L)........0080 - 48 d2 5a 5b 6c bd 8c 86-91 34 e9 24 d6 e4 d0 33 H.Z[l....4.$...30090 - ce a1 99 3d ec 96 46 43-1b fc 0e 60 08 79 b0 52 ...=..FC...`.y.RStart Time: 1491494627Timeout : 300 (sec)Verify return code: 0 (ok)---250 DSN

    Test for IMAP succeded:


    So, if there is an issue, that is on the mail client side ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @akong7777


    No, there is not bug ;) Please, read my previous answer ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206