[英]Is there a naming convention for keystore (java)
I'm working with java keystores for the first time. 我是第一次使用java密钥库。 Is there a standard extension / suffix for a keystore? 密钥库是否有标准的扩展名/后缀? Are they typically named .ks? 它们通常被命名为.ks吗? If it's a java keystore am I supposed to use .jks? 如果它是一个java密钥库我应该使用.jks? I would like to follow a naming convention if one is generally accepted. 如果一般被接受,我想遵循命名约定。
It depends on the key store type. 这取决于密钥库类型。 The default type for Java is JKS so .jks makes sense. Java的默认类型是JKS,因此.jks是有意义的。 Other key store types exist such as PKCS12. 存在其他密钥库类型,例如PKCS12。 Typical file extensions for PKCS12 key stores are .p12 and .pfx. PKCS12密钥库的典型文件扩展名为.p12和.pfx。 Looking at the file extensions in the open file window for Portecle , it considers .ks, .jks, .jceks, .p12, .pfx, .bks, and .ubr as possibilies. 查看Portecle的打开文件窗口中的文件扩展名,它将.ks,.jks,.jceks,.p12,.pfx,.bks和.ubr视为可能。 I've only ever encountered .jks, .p12, and .pfx myself however. 我自己只遇到过.jks,.p12和.pfx。
I just got into this question trying to guess why Unity3d
didn't accept my Android keystore. 我刚试着猜测为什么Unity3d
不接受我的Android密钥库。 name.key
doesn't work but name.keystore
does, so I guess that .keystore
is also a possible extension. name.key
不起作用,但name.keystore
没有,所以我猜.keystore
也是一个可能的扩展。
必须将格式密钥转换为.jks格式才能在J2EE SDK中使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.