def encode_csr(csr):
 return encode_b64jose(OpenSSL.crypto.dump_certificate_request(OpenSSL.crypto.FILETYPE_ASN1, csr.wrapped))

def encode_csr ( csr ) : return encode_b64jose ( OpenSSL . crypto . dump_certificate_request ( OpenSSL . crypto . FILETYPE_ASN1 , csr . wrapped ) )
encode csr as jose base-64 der .