Discussion in 'Ruby' started by Ze Maria, Feb 22, 2007.

  1. Ze Maria

    Ze Maria Guest

    Hi guys,
    Does someone knows how to use certificates with SOAP::WSDLDriverFactory
    for example, to generate a driver from a url like:

    Tks in advance
    Ze Maria
    Ze Maria, Feb 22, 2007
    1. Advertisements

  2. Ze Maria

    Justin Mazzi Guest

    If you don't have the CA, you can do:

    server.options["protocol.http.ssl_config.verify_mode"] = nil

    Or are you referring to use CERTS to authenticate?
    Justin Mazzi, Feb 22, 2007
    1. Advertisements

  3. Ze Maria

    Emil Marceta Guest

    Should be noted that the above actually does not checks the actual
    server (peer) certificate. It only validates that the peer certificate
    is signed by / issued by the 'api_cert_chain.crt'.

    To actually validate the server cert use :
    drv.options['protocol.http.ssl_config.verify_callback'] =

    where method validate_certificate looks like:

    def validate_certificate(is_ok, ctx)
    cert = ctx.current_cert

    # Only check the server certificate, not the issuer
    unless (cert.subject.to_s == cert.issuer.to_s)
    is_ok &&='server_cert.pem').read ==

    Emil Marceta, Feb 24, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.