[openssl-users] SSL_read() failed: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init

Kadlecsik József kadlecsik.jozsef at wigner.mta.hu
Thu Oct 26 12:28:01 UTC 2017


Hi,

On Thu, 26 Oct 2017, Matt Caswell wrote:

> > Oct 20 18:50:05 mail2 dovecot: imap-login: Debug: SSL error: SSL_read() 
> > failed: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init
> > 
> > The openssl package is 1.1.0f-3.
> > 
> > The error messsage is total cryptic to me: how could three states be 
> > intermixed?
> > 
> > I think it's a dovecot issue about how the openssl library is used but I'm 
> > unfamiliar with the details of the openssl library: what function, macro 
> > is used incorrectly then, at which state?
> 
> SSL_shutdown() is used to shut down an SSL/TLS connection that has 
> already been established (meaning that the SSL/TLS handshake has 
> completed and we are ready to send/receive application data). If you 
> call SSL_shutdown() while the handshake is still in progress then you 
> get the "shutdown while in init" error message.

But why SSL_read() failed with this error message?

Best regards,
Jozsef
--
E-mail : kadlecsik.jozsef at wigner.mta.hu
PGP key: http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address: Wigner Research Centre for Physics, Hungarian Academy of Sciences
         H-1525 Budapest 114, POB. 49, Hungary


More information about the openssl-users mailing list