def create_authority(options):
        """
        Creates an authority, this authority is then used by Lemur to allow a user
        to specify which Certificate Authority they want to sign their certificate.

        :param options:
        :return:
        """
        current_app.logger.debug(
            f"Issuing new cryptography authority with options: {options}"
        )
        cert_pem, private_key, chain_cert_pem = build_certificate_authority(options)
        roles = [
            {"username": "", "password": "", "name": options["name"] + "_admin"},
            {"username": "", "password": "", "name": options["name"] + "_operator"},
        ]
        return cert_pem, private_key, chain_cert_pem, roles

        Creates an authority, this authority is then used by Lemur to allow a user
        to specify which Certificate Authority they want to sign their certificate.

        :param options:
        :return:
        
lemur/plugins/lemur_cryptography/plugin.py