softhsm

Can't enable GOST engine support in OpenSSL

回眸只為那壹抹淺笑 提交于 2019-12-22 08:43:25
问题 I'm trying to install SoftHSM as shown here, which requires OpenSSL. So I installed OpenSSL v1.0.2j, but it seems it doesn't have bundled GOST support, or at least I couldn't find libgost.so in /usr/lib/openssl/engines ; so I took it from an older version of OpenSSL that I found (v1.0.0k-2.1.x86_64) and placed it in that folder. Then, as suggested in multiple forums, I modified the file openssl.cnf (in /usr/local/ssl ). In the line after RANDFIL = $ENV::HOME/.rnd I added: openssl_conf=openssl

SoftHSM2 java not working

江枫思渺然 提交于 2019-12-18 18:23:14
问题 I am trying to do POC on SoftHSM 2 , but some how I am getting below issue . Exception in thread "main" java.security.ProviderException: Initialization failed at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:376) at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103) at SoftHSM.main(SoftHSM.java:50) Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_SLOT_ID_INVALID at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotInfo(Native Method) at sun.security.pkcs11.SunPKCS11.<init>

Connecting to SoftHSM java

天大地大妈咪最大 提交于 2019-12-18 13:14:24
问题 Code: String pkcs11cfg = "pkcs11.cfg"; Provider p = new SunPKCS11(pkcs11cfg); Security.addProvider(p); KeyStore ks = KeyStore.getInstance("PKCS11", p); ks.load(null, pin); System.out.println(ks.size()); // prints 0 cfg: name = pkcs11Test library = /usr/local/lib/libsofthsm.so slot = 1 The problem is that I have some key pairs, I added them with pkcs11-tool. The version of softhsm is 1.2.1 Why there aren't any aliases in the KeyStore? How to fix this? 回答1: We will release SoftHSM 1.3.0 soon.

Fabric CA 1.4 官方文档中文版

允我心安 提交于 2019-12-16 11:14:30
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 链接: Fabric CA中文文档 目录 概述 Fabric CA概述 快速上手 安装前提条件 安装软件 使用Fabric CA命令行 配置软件 Fabric CA 服务器 初始化服务器 启动服务器 配置数据库 配置LDAP 搭建集群 搭建多个CA 登记中间CA 升级服务器 运营服务 Fabric CA客户端 登记启动身份 注册新的身份 登记对等节点身份 获取用户的Identity Mixer 获取Idemix CRI 回收证书或身份 生成证书回收清单 基于属性的访问控制 服务器配置动态更新 启用安全传输服务 联系指定的CA实例 HSM 配置Fabric CA服务器使用softhsm2 文件格式 Fabric CA服务器配置文件格式 Fabric CA客户端配置文件格式 故障排除 常见故障排除 来源: oschina 链接: https://my.oschina.net/u/2472105/blog/3043386

Connecting to SoftHSM java

半城伤御伤魂 提交于 2019-11-30 09:35:14
Code: String pkcs11cfg = "pkcs11.cfg"; Provider p = new SunPKCS11(pkcs11cfg); Security.addProvider(p); KeyStore ks = KeyStore.getInstance("PKCS11", p); ks.load(null, pin); System.out.println(ks.size()); // prints 0 cfg: name = pkcs11Test library = /usr/local/lib/libsofthsm.so slot = 1 The problem is that I have some key pairs, I added them with pkcs11-tool. The version of softhsm is 1.2.1 Why there aren't any aliases in the KeyStore? How to fix this? We will release SoftHSM 1.3.0 soon. It has support for certificates and is tested with Java. SoftHSM.java: import java.io.*; import java.math.*;