Thursday, September 16, 2010

Ruby CAS Client with Ruby 1.9.1

The existing code base of Ruby CAS client is not compatible with Ruby 1.9.1 and When I test I got following error.

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I have modified the existing code base to overcome this issue. Please see the attached link. You can download the modified source from here. It works fine with Ruby 1.9.1

I have added http.verify_mode = OpenSSL::SSL::VERIFY_NONE and https.verify_mode = OpenSSL::SSL::VERIFY_NONE when create http or https connection.