OpenSSL/SOAP - keystore/truststore

  • Thread starter Christopher Wilson
  • Start date
C

Christopher Wilson

I am attempting to connect to a secure SOAP web service and have been
provided a password protected keystore, truststore and also a self
signed *.cer file.

The server component is implemented in java and the documentation is
plentiful. While I have been able to use the non-secure service, I am
not sure how to use the keystore/truststore particularly with password
protection.

I realize that this is roughly what is available to me in the ruby lib:

wsdl = 'https://some.com/something.wsl'
factory = SOAP::WSDLDriverFactory.new( wsdl )
drv = factory.create_rpc_driver
drv.options[ 'protocol.http.ssl_config.ca_file' ] = nil

alternatively:

drv.options['protocol.http.ssl_config.verify_mode'] =
openSSL::SSL::VERIFY_NONE
#drv.options['protocol.http.ssl_config.verify_mode'] =
OpenSSL::SSL::VERIFY_PEER
drv.options['protocol.http.ssl_config.ca_file'] = 'api_cert_chain.crt'
drv.options['protocol.http.ssl_config.client_cert'] = 'client.cert'
drv.options['protocol.http.ssl_config.client_key'] = 'client.keys'

Thanks in advance for any insight.

Christopher Wilson
 
S

Stephen Fickas

I'd like to take a string like that below

"0011122234667889"

and reduce to

"012346789"

I can see ways to do it for a single digit, but
not all in one fell swoop:

"0011122234667889".gsub(/1{2,}/, "1") #reduce seq (2 or more) of 1s to
single 1


"0011122234667889".gsub(/1+/, "1") #1 or more 1s to single 1

Thanks for any help.

Steve
 
J

Jean-François Trân

2008/3/6 said:
I'd like to take a string like that below

"0011122234667889"

and reduce to

"012346789"

I can see ways to do it for a single digit, but
not all in one fell swoop:

"0011122234667889".gsub(/1{2,}/, "1")
#reduce seq (2 or more) of 1s to
single 1

"0011122234667889".gsub(/1+/, "1") #1 or more 1s to single 1

My first try would be :

"0011122234667889".gsub /(\d)\1+/, '\1'

-- Jean-Fran=E7ois.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top