def encode_cert(cert):
 return encode_b64jose(OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_ASN1, cert.wrapped))

def encode_cert ( cert ) : return encode_b64jose ( OpenSSL . crypto . dump_certificate ( OpenSSL . crypto . FILETYPE_ASN1 , cert . wrapped ) )
encode certificate as jose base-64 der .