Net::NSS::SSL

SSL sockets using NSS
Download

Net::NSS::SSL Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Claes Jakobsson
  • Publisher web site:
  • http://search.cpan.org/~claesjac/

Net::NSS::SSL Tags


Net::NSS::SSL Description

SSL sockets using NSS Net::NSS::SSL is a Perl module that offers SSL sockets using NSS.Creating socketsThe prefered way of creating sockets is by using the new constructor. This creates this socket, sets the desired options, imports it into SSL layer and connects to the peer host, or binds and sets up a listening socket, in the correct order. If you need more control it's possible to create a new socket using create_socket which in turn must be SSL enabled by calling import_into_ssl_layer before connecting or listening.new ( $address : string, %args ) : Net::NSS::SSLnew ( %args ) : Net::NSS::SSL Creates a new socket, sets it up correctly, imports it into NSS SSL layer and optionally if it's a client-side socket connect to the remote host. PeerAddr : string The peer to connect to in form of < host >, < host:< port > > or < host:< service > > where host is either an IP number or a hostname, port a integer in the range 1-65535. If a service is specified such as http or ftp, its port number is looked up using getservbyname with the proto tcp. PeerPort : string | integer The numerical port or a service name to connect to. If PeerAddr is specified it may take precedence over this. PeerHost : string The host to connect to as either an IP number or a hostname. If PeerAddr is specified is may take precedence over this. Connect : boolean If true then create the socket, import it into SSL, set the specfied options but don't connect. Defaults to false if omitted. KeepAlive : boolean Periodically test whether connection is still alive. Default to false if omitted. Blocking : boolean Blocking or non-blocking I/O. Default to 1 if omitted or what the class method blocking returns if such exists. SSL_PKCS11_PinArg : scalar Sets the PKCS11 pin arg that is sent along to various funcions for the socket. See also: "set_pkcs11_pin_arg" in Net::NSS::SSL SSL_ClientCertHook : coderef | string Sets the client certificte hook for the socket. If ommited defaults $DefaultClientCertHook if one is defined. See also: "set_client_certificate_hook" in Net::NSS::SSL. SSL_ClientCertHookArg : scalar Sets the client certificate hook argument for the socket. If ommited defaults to $DefaultClientCertHookArg if defined. SSL_CertVerifyHook : coderef | string Sets the hook that is called to verify the certificate. If ommited defaults to $DefaultVerifyCertHook if one is defined. See also: "set_verify_certificate_hook" in Net::NSS::SSL. SSL_EnableOptions : arrayref A list of options to enable where the items are either numeric or a constant name from Crypt::NSS::SSL::Constants. SSL_DisableOptions : arrayref A list of options to enable where the items are either numeric or a constant name from Crypt::NSS::SSL::Constants. SSL_URL : string Sets the host/URL that the server certificate will be verified against. If ommited defaults to $DefaultURL if defined, otherwise uses PeerHost.create_socket ( $type : string ) : Net::NSS::SSL Creates a new socket of the TYPE tcp or udp. Does not set any socket options nor imports it into the SSL layer. You probablly want to use new instead of this method.import_into_ssl_layer ( ) Imports the socket into NSS SSL layer if not already done. The constructor new does this automatically for you. Requirements: · Perl


Net::NSS::SSL Related Software