(certificate, private_key, intermediates=None,
                   private_key_passphrase=None, context=None, **kwargs)
return x509keypair_obj.uuid
Stores (i.e., registers) a cert with the cert manager.

        This method stores the specified cert to x509keypair model and returns
        a UUID that can be used to retrieve it.

        :param certificate: PEM encoded TLS certificate
        :param private_key: private key for the supplied certificate
        :param intermediates: ordered and concatenated intermediate certs
        :param private_key_passphrase: optional passphrase for the supplied key

        :returns: the UUID of the stored cert
Stores (i.e., registers) a cert with the cert manager.
Stores ( i . e . registers ) a cert with the cert manager .
def store_cert(certificate, private_key, intermediates=None,
                   private_key_passphrase=None, context=None, **kwargs):
        """Stores (i.e., registers) a cert with the cert manager.

        This method stores the specified cert to x509keypair model and returns
        a UUID that can be used to retrieve it.

        :param certificate: PEM encoded TLS certificate
        :param private_key: private key for the supplied certificate
        :param intermediates: ordered and concatenated intermediate certs
        :param private_key_passphrase: optional passphrase for the supplied key

        :returns: the UUID of the stored cert
        """
        if six.PY3 and isinstance(certificate, six.binary_type):
            certificate = certificate.decode()
        if six.PY3 and isinstance(private_key, six.binary_type):
            private_key = private_key.decode()
        x509keypair = {'certificate': certificate, 'private_key': private_key,
                       'private_key_passphrase': private_key_passphrase,
                       'intermediates': intermediates,
                       'project_id': context.project_id,
                       'user_id': context.user_id}
        x509keypair_obj = objects.X509KeyPair(context, **x509keypair)
        x509keypair_obj.create()
        return x509keypair_obj.uuid
def store_cert ( certificate , private_key , intermediates = None , private_key_passphrase = None , context = None , * * kwargs ) : if six . PY3 and isinstance ( certificate , six . binary_type ) : certificate = certificate . decode ( ) if six . PY3 and isinstance ( private_key , six . binary_type ) : private_key = private_key . decode ( ) x509keypair = { 'certificate' : certificate , 'private_key' : private_key , 'private_key_passphrase' : private_key_passphrase , 'intermediates' : intermediates , 'project_id' : context . project_id , 'user_id' : context . user_id } x509keypair_obj = objects . X509KeyPair ( context , * * x509keypair ) x509keypair_obj . create ( ) return x509keypair_obj . uuid