(cert_ref, context=None, **kwargs)
return Cert(**cert_data)
Retrieves the specified cert.

        :param cert_ref: the UUID of the cert to retrieve

        :return: magnum.common.cert_manager.cert_manager.Cert
                 representation of the certificate data
Retrieves the specified cert.
Retrieves the specified cert .
def get_cert(cert_ref, context=None, **kwargs):
        """Retrieves the specified cert.

        :param cert_ref: the UUID of the cert to retrieve

        :return: magnum.common.cert_manager.cert_manager.Cert
                 representation of the certificate data
        """
        cert_data = dict()
        x509keypair_obj = objects.X509KeyPair.get_by_uuid(context, cert_ref)
        cert_data['certificate'] = x509keypair_obj.certificate
        cert_data['private_key'] = x509keypair_obj.private_key
        cert_data['private_key_passphrase'] = \
            x509keypair_obj.private_key_passphrase
        cert_data['intermediates'] = x509keypair_obj.intermediates
        return Cert(**cert_data)
def get_cert ( cert_ref , context = None , * * kwargs ) : cert_data = dict ( ) x509keypair_obj = objects . X509KeyPair . get_by_uuid ( context , cert_ref ) cert_data [ 'certificate' ] = x509keypair_obj . certificate cert_data [ 'private_key' ] = x509keypair_obj . private_key cert_data [ 'private_key_passphrase' ] = x509keypair_obj . private_key_passphrase cert_data [ 'intermediates' ] = x509keypair_obj . intermediates return Cert ( * * cert_data )