• Resolved dkyiev

    (@dkyiev)


    Versions:
    WordPress: 5.8.1
    WordPress MS: No
    PHP: 7.4.9
    WP Mail SMTP: 3.1.0
    
    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host.
    Host: vps.remo100porcento.com
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)
    
    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    
    Debug:
    Email Source: WP Mail SMTP
    Mailer: Other SMTP
    SMTP Error: Could not connect to SMTP host.
    
    SMTP Debug:
    2021-10-05 12:23:06 Connection: opening to vps.remo100porcento.com:587, timeout=300, options=array()
    
    2021-10-05 12:23:06 Connection: opened
    
    2021-10-05 12:23:06 SERVER -> CLIENT: 220 vps.remo100porcento.com ESMTP Postfix
    
    2021-10-05 12:23:06 CLIENT -> SERVER: EHLO www.remo100porcento.com
    
    2021-10-05 12:23:06 SERVER -> CLIENT: 250-vps.remo100porcento.com250-PIPELINING250-SIZE 204800000250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250 CHUNKING
    
    2021-10-05 12:23:06 CLIENT -> SERVER: STARTTLS
    
    2021-10-05 12:23:06 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
    
    2021-10-05 12:23:06 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [/home/remoporc/public_html/site/wp-includes/PHPMailer/SMTP.php line 468]
    
    SMTP Error: Could not connect to SMTP host.
    
    2021-10-05 12:23:06 CLIENT -> SERVER: QUIT
    
    2021-10-05 12:23:06
    
    2021-10-05 12:23:06
    
    2021-10-05 12:23:06 Connection: closed
    
    SMTP Error: Could not connect to SMTP host.
    

    In the other thread, a user posted that it could be the OpenSSL version, which should be upgraded from 1.0.2k to 1.1.0+. Would it be this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Watching this. Have been getting the same problem/error now. Update problem?

    Misconfigured server certificate.
    This means OpenSSL on your server isn't able to verify the host certificate.
    
    There are a few reasons why this is happening. It could be that the host certificate is misconfigured, or this server's OpenSSL is using an outdated CA bundle.
    
    Recommended next steps:
    Verify that the host's SSL certificate is valid.
    Contact your hosting support, show them the "full Error Log for debugging" below and share this link with them.

    and I would add the SSL is not misconfigured. I have checked.

    An update. My hosting company fixed something. I don’t know what yet. But email is working again from site with the plugin.

    Hi @dkyiev,

    The error you are seeing indicates that your site is unable to connect to the SMTP host you’ve specified because of the SSL certificate your server presented. Please contact your web host support with the SMTP debug to fix the mail server certificate.

    Alternatively, you can switch to other of our available mailers. We have documentation for each of the mailers: https://wpmailsmtp.com/docs/a-complete-guide-to-wp-mail-smtp-mailers/

    I hope this helps!

    Thank you ??

    Hi @stardaug,

    If you are experiencing the same issue, please try the steps above. Otherwise, please start a new support thread so we can help you directly!

    Thanks! ??

    We updated our certificates (wildcard) and are facing the same error now. It is interesting, that the log shows OpenSSL 1.1.1d – we are using 1.1.1n.
    (OpenSSL 1.1.1n 15 Mar 2022 (Library: OpenSSL 1.1.1d 10 Sep 2019))

    Can you help?

    Log file:

    Versions:
    WordPress: 5.9.2
    WordPress MS: Yes
    PHP: 7.4.19
    WP Mail SMTP: 3.3.0

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not connect to SMTP host.
    Host: mail.xxx.ch
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)

    Server:
    OpenSSL: OpenSSL 1.1.1d 10 Sep 2019

    Debug:
    Email Source: WP Mail SMTP
    Mailer: Other SMTP
    SMTP Error: Could not connect to SMTP host.

    SMTP Debug:
    2022-03-25 17:24:37 Connection: opening to mail.xxx.ch:587, timeout=300, options=array()

    2022-03-25 17:24:37 Connection: opened

    2022-03-25 17:24:37 SERVER -> CLIENT: 220 mail.xxx.ch ESMTP MailCleaner (Community Edition 2022.03) Fri, 25 Mar 2022 18:24:37 +0100

    2022-03-25 17:24:37 CLIENT -> SERVER: EHLO xxx.ch

    2022-03-25 17:24:37 SERVER -> CLIENT: 250-mail.xxx.ch Hello firewall.xxx.local [192.168.2.1]250-SIZE 52428800250-8BITMIME250-PIPELINING250-PIPE_CONNECT250-AUTH PLAIN LOGIN250-STARTTLS250 HELP

    2022-03-25 17:24:37 CLIENT -> SERVER: STARTTLS

    2022-03-25 17:24:37 SERVER -> CLIENT: 220 TLS go ahead

    2022-03-25 17:24:37 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [/opt/bitnami/wordpress/wp-includes/PHPMailer/SMTP.php line 467]

    SMTP Error: Could not connect to SMTP host.

    2022-03-25 17:24:37 CLIENT -> SERVER: QUIT

    2022-03-25 17:24:37

    2022-03-25 17:24:37

    2022-03-25 17:24:37 Connection: closed

    SMTP Error: Could not connect to SMTP host.

    Plugin Support Dake

    (@dakeg)

    Hi @apalomares,

    We’re sorry to hear that you are now facing the same issues that were mentioned above and apparently the fixes proposed so far didn’t help either.

    As Justin mentioned, if the issue is still occurring, please start a new support thread so we can investigate and assist you directly.

    Thanks! ??

    All is good. Thank you! I restored the last working server backup and updated openssl. Now everything aeems to be working as it is supposed to.

    Plugin Support Dake

    (@dakeg)

    Hi @apalomares,

    That’s great news, thanks for letting us know ??

    Have a good one!`

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Misconfigured server certificate (2)’ is closed to new replies.