Package myproxy :: Package ws :: Package client :: Class MyProxyWSClient
[hide private]

Class MyProxyWSClient

source code


Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
ca_cert_dir(self, val) source code
 
logon(self, username, password, server_url, proxies=None, no_proxy=None, cert_life_time=86400, ssl_ctx=None)
Obtain a new certificate
source code
 
get_trustroots(self, server_url, write_to_ca_cert_dir=False, bootstrap=False)
Get trustroots
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
OpenSSL.crypto.PKey
create_key_pair(n_bits_for_key=PRIKEY_NBITS)
Generate key pair and return as PEM encoded string
source code
base string @return certificate request PEM text and private key PEM text
create_cert_req(key_pair, message_digest=MESSAGE_DIGEST_TYPE)
Create a certificate request.
source code
Class Variables [hide private]
  PRIKEY_NBITS = 2048
  MESSAGE_DIGEST_TYPE = "md5"
  CERT_REQ_POST_PARAM_KEYNAME = 'certificate_request'
  TRUSTED_CERTS_FIELDNAME = 'TRUSTED_CERTS'
  TRUSTED_CERTS_FILEDATA_FIELDNAME_PREFIX = 'FILEDATA_'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

ca_cert_dir(self, val)

source code 
Decorators:
  • @ca_cert_dir.setter

create_key_pair(n_bits_for_key=PRIKEY_NBITS)
Static Method

source code 

Generate key pair and return as PEM encoded string

Parameters:
  • n_bits_for_key (int) - number of bits for private key generation - default is 2048
Returns: OpenSSL.crypto.PKey
public/private key pair

create_cert_req(key_pair, message_digest=MESSAGE_DIGEST_TYPE)
Static Method

source code 

Create a certificate request.

Parameters:
  • CN (basestring) - Common Name for certificate - effectively the same as the username for the MyProxy credential
  • keyPair (string/None) - public/private key pair
  • messageDigest (basestring) - message digest type - default is MD5
Returns: base string @return certificate request PEM text and private key PEM text