Comments (5)
Adding new constant is not possible. You can only override the vendor constants defined in PKCS11Constants.java.
Taking CKK_VENDOR_SM2 as example, it specifies the constant value to the SM2 key type. Since SM2 key type is not specified in the PKCS#11 standard, each HSM vendor may use different constant value. In the java code, I assign CKM_VENDOR_SM2 = 0xFFFFF001L (see https://github.com/xipki/jpkcs11wrapper/blob/main/src/main/java/org/xipki/pkcs11/wrapper/PKCS11Constants.java#L1240). In the vendor.conf you may override this with the value defined by the HSM vendor.
BTW: It is better to have an issue under the project xipki/jpkcs11wrapper to discuss the usage of jpkcs11wrapper.
from xipki.
You can define your own vendor.conf and point it via the java property org.xipki.pkcs11.vendor.conf (-Dorg.xipki.pkcs11.vendor.conf=/path/to/your/vendor.conf-file).
BTW: Do you use jpkcs11wrapper in xipki or your own project? Please update to latest version (v1.0.4).
from xipki.
Hi,
Yes, I'm currently upgrading the jpkcs11wrapper version from 1.0.1 that I was using, to 1.0.4 which is very helpful on managing sessions on it's own .
Can you give me an brief explanation about VENDOR_BEHAVIORS? I can't really understand how it works! And I can't customize the name for example from CKK_VENDOR_SM2 to CKK_SOMETHING_SM2?
Really appreciate the help!
from xipki.
Hi,
Sorry, didn't notice that I created the issue in the root of the repositories, my bad!
Thank you for all the information, now I know how to configure those mechanisms.
from xipki.
Please also take a look at xipki/ipkcs11wrapper. It supports more algorithms.
from xipki.
Related Issues (20)
- Unable to initialize database in xipki-6.1.0vĀ HOT 2
- SdkClient.cacerts() only returns cacert HOT 4
- Unable to access mariadb user in Xipki-6.3.0 HOT 17
- [ERROR] Failed to execute goal on project ocsp-client: HOT 1
- Cannot revoke myca1 HOT 2
- ca:user-add fails intermittently HOT 11
- Configure TLS listerner port to listen only on localHost(127.0.0.1) HOT 3
- Cert Before Time Limit Only 10 Mins HOT 2
- Unable to access Karaf tool HOT 2
- est-gw: audit id ordering issue HOT 2
- ocsp.json, OCSP HOT 2
- CSR - Server Error 500
- Facing errror while initialising ca schema HOT 5
- The assemblies artifacts were not pushed to central for 6.4.0 HOT 3
- could not remove user <>, error: remote management is not permitted to the client without valid certificate HOT 6
- REST gateway CA can't be selected through URL
- Unable to import database to xipki:6.3.0 from 5.3.15 HOT 15
- Error while generating cert.der in xipki: 6.3.0v HOT 4
- Error while changing ca with new masterpassword. v6.3.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xipki.