Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jwt_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def checkAlgNone(headDict, tok2):
def checkPubKey(headDict, tok2, pubKey):
print("\n====================================================================\nThis option takes an available Public Key (the SSL certificate from \na webserver, for example?) and switches the RSA-signed \n(RS256/RS384/RS512) JWT that uses the Public Key as its 'secret'.\n====================================================================")
try:
key = open(pubKey).read()
key = RSA.importKey(open(pubKey).read()).exportKey().decode() + "\n"
print("File loaded: "+pubKey)
except:
print("[-] File not found")
Expand Down