diff --git a/src/test/test.py b/src/test/test.py index 2675e66..c0e75e0 100644 --- a/src/test/test.py +++ b/src/test/test.py @@ -182,8 +182,9 @@ def test_our_config_token(): nv_response_certificate_configuration = NV_CONFIG_TOKEN_RESPONSE.get('certificateConfiguration') nv_response_public_cert = nv_response_certificate_configuration.get('publicCert').encode('utf-8') nv_response_parsed_cert = x509.load_pem_x509_certificate(nv_response_public_cert) - jwt_decode_key = jwk.construct(nv_response_parsed_cert.public_bytes(encoding=Encoding.PEM), - algorithm=ALGORITHMS.RS256) + + nv_response_parsed_cert_as_pem = nv_response_parsed_cert.public_bytes(encoding=Encoding.PEM) + jwt_decode_key = jwk.construct(nv_response_parsed_cert_as_pem, algorithm=ALGORITHMS.RS256) ### build payload