简体   繁体   English

如何创建双重控制Java密钥库文件

[英]How to create dual control java keystore file

Want to create java key-store file and create secret key using multiple users/user passwords. 想要创建Java密钥存储文件并使用多个用户/用户密码创建秘密密钥。

generally we can create key-store file in this way, 通常,我们可以通过这种方式创建密钥存储文件,

keytool -genseckey -keystore <filename>.jceks -storetype jceks -storepass <passwrod> -keyalg AES -keysize 256 -alias <alias name> -keypass <key password>

here, only one person has access to key-store file and keys, also that person can access that file without getting any others support. 在这里,只有一个人有权访问密钥存储文件和密钥,该人也可以在没有其他任何支持的情况下访问该文件。 So only one have full permission. 因此,只有一个人拥有完全许可。

Requirement is to distribute this permissions within 2 or 3 peoples. 要求是在2或3个人中分配此权限。

Is there any way to overcome this problem in java key-store(jceks) file ? 有什么办法可以解决java key-store(jceks)文件中的此问题?

I try to find solution in various ways. 我尝试以各种方式找到解决方案。 Finally I find out this https://github.com/evanx/vellum/wiki/DualControl . 最后,我找到了这个https://github.com/evanx/vellum/wiki/DualControl Could get a solution from this source. 可以从此来源获得解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM