addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Miami Ruby Brigade Message Board › Soap4R and Untrusted SSL Certs

Soap4R and Untrusted SSL Certs

A former member
Post #: 1
I needed to test against an SSL SOAP site without a trusted SSL cert and was hoping for a simple way to disable the exception. I ended up monkey patching to achieve this but was wondering if there was a more conventional API solution?

Ruby 1.8.7

factory = SOAP::WSDLDriverFactory.new("#{@url­}?WSDL")

#
# Monkey Patch HTTP Client
# Sets SSL verify mode to NONE so that we can connect to an SSL server
# that does not have a trusted certificate.
#
class HTTPAccess2::Client
def initialize(*args)
super(args[0], args[1])
@session_manager.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
end
Ed T.
eddroid
Miami, FL
Post #: 15
http://stackoverflow....­
https://groups.google...­

There are some magic property settings somewhere. You should only disable SSL verification for testing purposes though.
Powered by mvnForum

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy