3
I just upgraded to Debian Wheezy from Lenny (long story) and a few of my Perl packages didn't make the upgrade for some reason, among them Crypt::SSLeay (libcrypt-ssleay-perl).
I was unable to connect to my credit card payment gateway using LWP until I installed libcrypt-ssleay-perl, and now it "works", but it takes 15-20 seconds to make the SSL connection due to the very unhelpful error message "error in unknown state":
SSL_connect:before/connect initialization
SSL_connect:unknown state
(waiting 15-20 seconds...) #this comment is from waldo22
SSL_connect:error in unknown state
SSL_connect:before/connect initialization
SSL_connect:SSLv3 write client hello A
SSL_connect:SSLv3 read server hello A
SSL_connect:SSLv3 read server certificate A
SSL_connect:SSLv3 read server done A
SSL_connect:SSLv3 write client key exchange A
SSL_connect:SSLv3 write change cipher spec A
SSL_connect:SSLv3 write finished A
SSL_connect:SSLv3 flush data
SSL_connect:SSLv3 read finished A
I have a feeling this has something to do with LWP changing the default behavior for certificate authorities and server certificiate verification:
https://stackoverflow.com/questions/74358/how-can-i-get-lwp-to-validate-ssl-server-certificates#5329129
and possibly:
https://stackoverflow.com/questions/5639803/aws-ses-certificate-verify-failed
My Perl module is using Crypt::SSLeay via LWP::useragent.
Obviously 15-20 seconds is way too long to wait to make an SSL connection, but without a more helpful error message, I don't know what to do.
Does anyone have any suggestions on how to better debug this or to get more verbose output?
Thanks a bunch,
-Wes
You can accept your own answer. This tells other people that it was correct and helped. – simbabque – 2012-10-10T08:43:39.300
Thanks, accepted. I didn't know if that was kosher. – waldo22 – 2013-08-25T01:02:55.313