百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

BouncyHsm

> 编程语言
开源

Bouncy Hsm 是一款基于 HTML UI、REST API 和 PKCS#11 接口的 HSM 和智能卡模拟器。

185 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Bouncy Hsm 是一款基于 HTML UI、REST API 和 PKCS#11 接口的 HSM 和智能卡模拟器。

Bouncy Hsm

Bouncy Hsm is an developer friendly implementation of a cryptographic store accessible through a PKCS#11 interface. It can simulate HSM (hardware security module) and smart cards (also with a qualified area), it also includes a web administration interface and a REST interface.

Bouncy Hsm was created to facilitate the development and testing of applications using PKCS#11 devices. It is not intended for production data, as it does not implement any data and key protection in storage or during network calls.

The BouncyHsm project was created as an alternative to SoftHSMv2, due to ongoing problems I had using it.

(Screenshots from version 2.0.0)

Features

Bouncy Hsm implementig PKCS#11 interface from standard version 2.40, 3.1 and version 3.2.

  • Multiple application and users access using PKCS#11 interface.
  • Slot and crypto object management using web interface and REST API.
    • Create/remove slots.
    • Plug and unplug devices (tokens).
    • Edit object attributes.
    • Import P12/PFX files.
    • Import crypto objects in PEM format.
    • Generate CSR, generate self-signed certificate, import certificate from file.
    • Generate keys.
    • ...
  • Possibility to simulate cards with a qualified area and a signature PIN.
  • Possibility to simulate protected authentication path using web interface.
  • Possibility to simulate removable devices (tokens).
  • Supports RSA keys (with size 2-6K).
  • Supports 80 named elliptic curves and user-defined elliptic curves.
  • Edwards curves (Ed25519, Ed448).
  • Mongomery curves (X25519, X448).
  • Post-Quantum Cryptography (ML-DSA, SLH-DSA, ML-KEM)
  • Supports secrets (HMAC, derive,...)
  • Supports AES keys.
  • Supports Salsa20 keys.
  • Supports ChaCha20 keys (also ChaCha20Poly1305 algorithm).
  • Supports Camellia keys.
  • Supports mechanisms
  • Supports PKCS#11 functions
  • Supports custom profiles for mechanisms (To limit mechanisms to simulate a specific type of HSM or card).
  • Same behavior and algorithm support across platforms and versions of Linux operating systems.
  • Native PKCS#11 library without dependencies (no dependency hell, no permission configuration).
  • BouncyHsm runs on all platform supported .Net 10.0. Moreover, it can be run as a Windows service and also works on Raspberry Pi Zero 2 W. Native lib BouncyHsm.Pkcs11Lib is awaitable for Windows x86 and x64, Linux x64, RHEL like x64 (it can also be compiled for other platforms).
  • CLI tool for management.
  • Nuget (BouncyHsm.Client) with REST API client and native PKCS#11 libraries for unit testing. (See example project.)
  • Bouncy Hsm Restrictions

Quick start and deployment guide

  • Quick start guide
  • Deployment guide
  • Docker support

Contributing and issues

Pull requests are welcome. If you are not sure about the change, open an issue first.

If the found error or changes refer to the PKCS#11 standard, please complete the link section of the standard.

See more rules in CONTRIBUTING.

Links

Technology

  • Dotnet 10.0
  • BouncyCastle
  • Pkcs11Interop
  • LiteDb
  • Blazor WebAssembly
  • cmp
  • MessagePack-CSharp

Other links

  • PKCS #11 Cryptographic Token Interface Base Specification Version 2.40
  • PKCS #11 Cryptographic Token Interface Base Specification Version 3.1
  • PKCS #11 Cryptographic Token Interface Base Specification Version 3.2 as markdown, Usage Guide
  • Software Ideas Modeler - tool in which the diagrams in the documentation were drawn
  • NSwag studio - tool for generate OpenApi client
  • Ako som robil BouncyHsm - My blog post about BouncyHsm development, technological decisions and reasons for development - in Slovak language

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#blazorblazor-webassemblybouncycastlecryptography

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言