Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Using Soap to pass x509 certificate

by Hammy (Scribe)
on Sep 15, 2004 at 05:23 UTC ( [id://391081]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Using Soap to pass x509 certificate
in thread Using Soap to pass x509 certificate

I appologize for being thick, but I have been at this since 7:00 AM EST and it is now 1:22 AM EST. I am not sure what you are asking for?
  • Comment on Re^4: Using Soap to pass x509 certificate

Replies are listed 'Best First'.
Re^5: Using Soap to pass x509 certificate
by matija (Priest) on Sep 15, 2004 at 05:47 UTC
    He is asking which program library on your machine is encoding your queries into SSL. Is it Crypt::SSLeay, or is it something else?
      I am not encrypting anything as of yet. The SSL cert (web server cert) have has only been used by Apache. A client asked if I had an x509 certificate so I gave them the public key. Now I need to send that public key in the header of my Soap request so he can verify it. I found the following documentation, but nothing on any of Perl's sites. So, to date, I have not encrypted anything using Perl.
      s:Envelope xmlns:s="http://www.w3.org/2001/12/soap-envelope" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"> <s:Header> ... <wsse:Security> <wsse:UsernameToken> <wsse:Username>PaulK</wsse:Username> <wsse:Password>GooReria</wsse:Password> </wsse:UsernameToken> </wsse:Security> ... </s:Header> ... </s:Envelope> To generate this header using the SOAP::Lite module, use the following + code: use SOAP::Lite maptype => { }; my $wsse = "http://schemas.xmlsoap.org/ws/2002/04/secext"; my $securityHeader = SOAP::Header->name(Security => { UsernameToken => { Username => SOAP::Data->type('' => 'PaulK'), Password => SOAP::Data->type('' => 'GooReria'), } })->uri($wsse)->prefix(''); my $result = SOAP::Lite # include header as an additional parameter ->securedMethod(@parameters, $securityHeader); ... A BinarySecurityToken element might be used instead of the UsernameTok +en element to allow binary or other non-XML formats to be included in + the message: <wsse:BinarySecurityToken xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext" ValueType="wsse:X509v3" EncodingType="wsse:Base64Binary"> A0CD... </wsse:BinarySecurityToken> In this example, ValueType identifies the type of the security token ( +X.509v3 certificate), and EncodingType describes the method used to e +ncode the data: Base64 or hex.
      I can not find a reference anywhere to securedMethod. I found this document at http://www.shebeen.com/securews/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://391081]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-26 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found