Package contrail :: Package security :: Package onlineca :: Package client :: Class OnlineCaClient
[hide private]

Class OnlineCaClient

source code


Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
logon(self, username, password, server_url, proxies=None, no_proxy=None, cert_life_time=86400, ssl_ctx=None, pem_out_filepath=None)
Obtain a create a new key pair and invoke the SLCS service to obtain a 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=2048)
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='md5')
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_'
  SSL_METHOD = 4
Properties [hide private]
  ca_cert_dir

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)

create_key_pair(n_bits_for_key=2048)
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='md5')
Static Method

source code 

Create a certificate request.

Parameters:
  • 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

Property Details [hide private]

ca_cert_dir

Get Method:
unreachable.ca_cert_dir(self)
Set Method:
unreachable.ca_cert_dir(self, val)