Welcome to the Linux Foundation Forum!

ERROR : STARTTLS failed! SSL connect attempt failed error:1416F086:SSL

error is:
STARTTLS failed! SSL connect attempt failed error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed at /usr/lib/git-core/git-send-email line 1495.

screenshot attached below of the /usr/lib/git-core/git-send-email line 1495.

Comments

  • Attach your smtp settings, most likely that you have misconfigured git send-email. Otherwise try refreshing/checking your ssl certificates at /etc/ssl/certs

  • i have also added the:
    sendemail.smtppass= myGMAILpassowrd

  • You will have to generate app specific password for authentication if you have 2-factor on your gmail account. Please refer to this - https://git-scm.com/docs/git-send-email

  • shivamrawat
    shivamrawat Posts: 5
    edited February 2021

    mam, i generated app specific password and placed it in the gitconfig file
    but it gives the same error

    Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
    DEBUG: .../IO/Socket/SSL.pm:825: local error: SSL connect attempt failed error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
    DEBUG: .../IO/Socket/SSL.pm:828: fatal SSL error: SSL connect attempt failed error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
    Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=localhost encryption= hello=localhosst.localdomain port=465 at /usr/lib/git-core/git-send-email line 1506.

  • Check your .gitconfig -

    [sendemail]
    smtpserver = smtp.gmail.com
    smtpserverport = 587
    smtpencryption = tls
    smtpuser = gmail_username
    smtppass = app-password

    The above should work.

Categories

Upcoming Training