def create_certificate(self, csr, options):
        """
        Creates a certificate.

        :param csr:
        :param options:
        :return: :raise Exception:
        """
        current_app.logger.debug(
            f"Issuing new cryptography certificate with options: {options}"
        )
        cert_pem, chain_cert_pem = issue_certificate(csr, options)
        return cert_pem, chain_cert_pem, None

        Creates a certificate.

        :param csr:
        :param options:
        :return: :raise Exception:
        
lemur/plugins/lemur_cryptography/plugin.py