This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
JKS file format decoder. | |
Use in conjunction with PyOpenSSL to translate to PEM, or load private key and certs | |
directly into openssl structs and wrap sockets. | |
See http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/sun/security/provider/JavaKeyStore.java#JavaKeyStore.engineLoad%28java.io.InputStream%2Cchar%5B%5D%29 | |
''' | |
import struct | |
import hashlib |