0

I have built python with fips capable openssl, all things seem to be working fine but call to wrap_socketfails with the error "Invalid SSL protocol variant specified" when fips mode is enabled. This call succeeds when not in fips mode

Debugging through the code it was found that the call to SSL_CTX_new(SSLv3_method() in _ssl.c is returning null in fips mode as a result of which the above mentioned error is occurring

Any idea as to what might be causing this, is it possible that some non fips components are getting called ?

Yuvika
  • 5,624
  • 2
  • 16
  • 21
Tiger
  • 37
  • 5

3 Answers3

0

I dont think sslv3 is supported in FIPS mode. Try using SSLv23_server_method instead of SSLv3_method

Yuvika
  • 5,624
  • 2
  • 16
  • 21
0

Only Tls protocol is supported in Fips mode.

Following Dr. Stephen Henson's comment in the below link resolved my issue

http://openssl.6102.n7.nabble.com/Having-problem-using-SSL-td27038.html

Tiger
  • 37
  • 5
0

some issue with certifi latest version so downgrading certifi will solve issue

pip uninstall -y certifi && pip install certifi==2015.04.28

                        or 

pip install requests[security]

Cigodien
  • 78
  • 7