(issuer_name, context=None)
return ca_cert_ref, ca_cert, ca_password
Generate and store ca_cert

    :param issuer_name: CA subject name
    :returns: CA cert uuid and CA cert, CA private key password
Generate and store ca_cert
Generate and store ca_cert
def _generate_ca_cert(issuer_name, context=None):
    """Generate and store ca_cert

    :param issuer_name: CA subject name
    :returns: CA cert uuid and CA cert, CA private key password
    """
    ca_password = short_id.generate_id()
    ca_cert = x509.generate_ca_certificate(issuer_name,
                                           encryption_password=ca_password)
    ca_cert_ref = cert_manager.get_backend().CertManager.store_cert(
        certificate=ca_cert['certificate'],
        private_key=ca_cert['private_key'],
        private_key_passphrase=ca_password,
        name=issuer_name,
        context=context,
    )
    LOG.debug('CA cert is created: %s', ca_cert_ref)
    return ca_cert_ref, ca_cert, ca_password
def _generate_ca_cert ( issuer_name , context = None ) : ca_password = short_id . generate_id ( ) ca_cert = x509 . generate_ca_certificate ( issuer_name , encryption_password = ca_password ) ca_cert_ref = cert_manager . get_backend ( ) . CertManager . store_cert ( certificate = ca_cert [ 'certificate' ] , private_key = ca_cert [ 'private_key' ] , private_key_passphrase = ca_password , name = issuer_name , context = context , ) LOG . debug ( 'CA cert is created: %s' , ca_cert_ref ) return ca_cert_ref , ca_cert , ca_password