You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somealgorithmsrequires"pip install cryptography". Seehttps://pyjwt.readthedocs.io/en/latest/installation.html#cryptographic-dependencies-optionalTraceback (mostrecentcalllast):
File"C:\Users\jnguyen-a\AppData\Local\Programs\Python\Python311\Lib\site-packages\jwt\algorithms.py", line350, inprepare_keyRSAPrivateKey, load_pem_private_key(key_bytes, password=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"C:\Users\jnguyen-a\AppData\Local\Programs\Python\Python311\Lib\site-packages\cryptography\hazmat\backends\openssl\backend.py", line494, in_handle_key_loading_errorraiseValueError(
ValueError: ('Could not deserialize key data. The data may be in an incorrect format, it may be encrypted with an unsupported algorithm, or it may be an unsupported key type (e.g. EC curves with explicit parameters).', [<OpenSSLError(code=503841036, lib=60, reason=524556, reason_text=unsupported)>])
Duringhandlingoftheaboveexception, anotherexceptionoccurred:
Traceback (mostrecentcalllast):
File"C:\Users\jnguyen-a\AppData\Local\Programs\Python\Python311\Lib\site-packages\msal\oauth2cli\assertion.py", line114, increate_normal_assertionstr_or_bytes=jwt.encode( # PyJWT 1 returns bytes, PyJWT 2 returns str^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"C:\Users\jnguyen-a\AppData\Local\Programs\Python\Python311\Lib\site-packages\jwt\api_jwt.py", line73, inencodereturnapi_jws.encode(
^^^^^^^^^^^^^^^File"C:\Users\jnguyen-a\AppData\Local\Programs\Python\Python311\Lib\site-packages\jwt\api_jws.py", line160, inencodekey=alg_obj.prepare_key(key)
^^^^^^^^^^^^^^^^^^^^^^^^File"C:\Users\jnguyen-a\AppData\Local\Programs\Python\Python311\Lib\site-packages\jwt\algorithms.py", line353, inprepare_keyreturncast(RSAPublicKey, load_pem_public_key(key_bytes))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ValueError: UnabletoloadPEMfile. Seehttps://cryptography.io/en/latest/faq/#why-can-t-i-import-my-pem-file for more details. MalformedFraming```My .PEMhasaformatsimilartobelow:
```python-----BEGINCERTIFICATE-----fawefaojsfdojiwefoajsdkljskdfasf=wejfasidofjlksdjfalskdjfkwefasdkfjeiorjqipofkdkdkdfowifeasdfdkfassadfoijweoifjaskldfjlskd-----ENDCERTIFICATE-----
I received the following issue:
This is my ClientContext code
The text was updated successfully, but these errors were encountered: