Perl Openwsman and certificates ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Perl Openwsman and certificates ?

Kämpfe, Christiane
Hello,
 
I have a question:
  With command wsman I can set
          -c, --cacert=<filename>                         Certificate file to verify the peer
          -A, --cert=<filename>                           Certificate file. The certificate must be in PEM format.
          -K, --sslkey=<key>                              SSL Key.
 
Out of the description found below http://turing.suse.de/~kkaempf/openwsman/
I have no idea how I can call new() for Openwsman::Client and specify
these SSL parameters
 
How can I set certificate parameters for the Perl-Openwsman interface ?
 
-- ftsckae
 
 
 

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Reply | Threaded
Open this post in threaded view
|

Re: Perl Openwsman and certificates ?

Klaus Kaempf
[Sorry for the late answer, this mail somehow got swamped :-/]

* Kämpfe, Christiane <[hidden email]> [Jan 14. 2014 11:22]:

> Hello,
>
> I have a question:
>   With command wsman I can set
>           -c, --cacert=<filename>                         Certificate file to verify the peer
>           -A, --cert=<filename>                           Certificate file. The certificate must be in PEM format.
>           -K, --sslkey=<key>                              SSL Key.
>
> Out of the description found below http://turing.suse.de/~kkaempf/openwsman/
> I have no idea how I can call new() for Openwsman::Client and specify
> these SSL parameters

The ssl certificates are not a property of the client but of the
transport object attached to the client.

>
> How can I set certificate parameters for the Perl-Openwsman interface ?


-c, --cacert=<filename> translates to $client->transport()->set_cainfo()

-A, --cert=<filename> translates to $client->transport()->set_cert()

-K, --sslkey=<key> translates to $client->transport()->set_key()

I happily accept new examples for
https://github.com/Openwsman/openwsman/tree/master/bindings/perl/tests ;-)

Hth,

Klaus
--
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel