Is there a standard mechanism for storing/retrieving cryptographic keys and certificates in the Python platform: equivalent to the 'keystore(/truststore)' in the Java Platform ?
Asked
Active
Viewed 1.1k times
1 Answers
1
Since Python standard library doesn't contain any manual encryption (only hashing). There is no real standard mechanism.
If you're using the ssl module then you can store client certificates (for authentication) and CA certificates (for chain validation) in a text which can be loaded into the SSLContext.

Artjom B.
- 61,146
- 24
- 125
- 222
-
1Thanks - my program has 'import Crypto' - maybe I pip installed another library at some point (pyCrypto?) - anyway I'm storing passwords directly in code (rather than in a 'store') - was just trying to tidy up using a 'master' password - but didn't want re-invent the wheel – monojohnny Nov 18 '15 at 22:40
-
1Revised answer (according to the general question). AFAIK, pyCrypto doesn't have something similar to a keystore. – Artjom B. Nov 18 '15 at 22:49