: A byte string containing the actual certificate data.Unless in exotic applications, this is usually X.509. : A string indicating the type of certificate.Represents a private key entry in a JKS or JCEKS keystore (e.g. type = None ¶Ī string indicating the type of certificate. In the case of X.509 certificates, this is the DER-encoded certs ( str) – The certificate, as a byte string.Ī loaded TrustedCertEntry instance, readyĪ byte string containing the actual certificate data.alias ( str) – The alias for the Trusted Cert Entry.Helper function to create a new TrustedCertEntry. is_decrypted ( ) ¶Īlways returns True for this entry type. encrypt ( key_password ) ¶ĭoes nothing for this entry type certificates are inherently public data and are not stored in encrypted form. decrypt ( key_password ) ¶ĭoes nothing for this entry type certificates are inherently public data and are not stored in encrypted form. Represents a trusted certificate entry in a JKS or JCEKS keystore. secret_keys ¶Įntry types ¶ class jks.jks. UnsupportedKeystoreEntryTypeException – If the keystoreĪ subset of the entries dictionary, filtered down to only.UnsupportedKeystoreTypeException – If the keystore.Store_password ( str) – Password for the created keystoreĪ byte string representation of the keystore. If any of the private keys are unencrypted, they will be encrypted Saves the keystore so that it can be read by other applications. Of the keystore entries are unsupported (in this keystore type)Ĭonvenience wrapper function calls the saves()Īnd saves the content to a file. UnsupportedKeyStoreEntryTypeException – If some.UnsupportedKeyStoreTypeException – If the keystore is of.DuplicateAliasException – If some of the.store_entries ( list) – Existing entries that.store_type ( string) – What kind of keystore.Helper function to create a new KeyStore. ![]() DuplicateAliasException – If the keystore containsĬlassmethod new ( store_type, store_entries ) ¶.KeystoreSignatureException – If the keystore signatureĬould not be verified using the supplied store password.UnsupportedKeystoreVersionException – If the keystoreĬontains an unknown format version number.BadKeystoreFormatException – If the keystore is malformed.Password have already been decrypted otherwise, no atttempt Keys that could be successfully decrypted using the store If the try_decrypt_keys parameter was set to True, any try_decrypt_keys ( bool) – Whether to automatically try toĭecrypt any encountered key entries using the same passwordĪ loaded KeyStore instance, if the keystoreĬould be successfully parsed and the supplied store password.password ( str) – Keystore password string.data ( bytes) – Byte string representation of the keystore.You can query whether a returned entry object has already beenĭecrypted by calling the is_decrypted() method on it.Īttempting to access attributes of an entry that has not yet Setting try_decrypt_keys to False disables this automaticĭecryption attempt, and returns all key entries in encrypted Manual follow-up decrypt(key_password) call from the userīefore its individual attributes become accessible. If the key cannot be decrypted with the store password, theĮntry is returned in its encrypted form, and requires a.Its attributes are immediately accessible. Password, the entry is returned in its decrypted form, and If the key can be successfully decrypted with the store.The mostĬommon choice is to use the store password for the individualįor ease of use in this typical scenario, this function willĪttempt to decrypt each key entry it encounters with the store Password as the store password, or use a custom one. Users are presented with the choice to either use the same Upon original creation of a key entry in a Java keystore, Therefore require decryption before becoming accessible. Note that entries in the store that represent some form ofĬryptographic key material are stored in encrypted form, and Verifying its integrity, and returns a KeyStore instance. Loads the given keystore file using the supplied password for classmethod loads ( data, store_password, try_decrypt_keys=True ) ¶ classmethod load ( filename, store_password, try_decrypt_keys=True ) ¶Ĭonvenience wrapper function reads the contents of the given fileĪnd passes it through to loads(). store_type ¶Ī string indicating the type of keystore that was loaded. entries ¶Ī dictionary of all entries in the keystore, mapped by alias. Represents a loaded JKS or JCEKS keystore.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |