Hızlı yanıt: kod örneği
Ultimately, and are just file extensions: it's up to you to name your files sensibly.Some application use a keystore file stored in : it was usually implied that it was JKS file, since JKS was the default keystore type in the Sun/Oracle Java security provider, up to Java 8. Not everyone uses the extension for JKS files, because it was implied as the default. Since Java 9, the default format is PKCS#12 (often with or extensions), but it's not clear whether all applications have caught up with that change. I'd recommend using the extension, just to remember which type to specify (if you need).In Java, the word "keystore" can have either of the following meanings, depending on the context: class and related API to make use of a keystore (whether it's file based or not). is a Java-specific file format, but the API can also be used with other file types, typically PKCS#12. When you want to load a keystore, you must specify its keystore type. The conventional extensions would be: extension), which is frequently used for Android applications.
.keystore
.jks
$HOME/.keystore
.jks
.p12
pfx
- the API: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/KeyStore.html
- a file (or other mechanism) that can be used to back this API
- a keystore as opposed to a truststore, as described here: https://stackoverflow.com/a/6341566/372643
KeyStore
JKS
- for type
.jks
,"JKS"
- or
.p12
for type.pfx
(the specification name is PKCS#12, but the"PKCS12"
is not used in the Java keystore type name).#
.bks