I'm experimenting with OSGi conditional permissions mechanism. More specifically, I'm trying to use org.osgi.service.condpermadmin.BundleSignerCondition to restrict which bundles can be started. Documentation I have states that in order to use this permission, I must specify the path to JKS keystores using org.osgi.framework.trust.repositories framework configuration property. However, the same documentation mentions that JKS mentioned in this property must not have a password. So the question is: how to create a JKS without a password? Keytool utility refuses to create JKS with blank password.
相关问题
- how to deploy wab files in glassfish
- OSGI bundle dependencies
- Override Require-Capability in Maven-Bundle-Plugin
- ClassNotFoundException for org.osgi.framework.Bund
- Programmatically adding declarative services
相关文章
- UnsatisfiedLinkError While Calling Native Method f
- How to access a resource / configuration / text fi
- Is Apache Aries running in Felix?
- How do I tell an Eclipse plugin where a native lib
- Creating a .jks from a .crt and .key file, is that
- How can OSGi and Akka benefit from each other? How
- How to get control over JAXBContext in JAX-WS?
- Split packages in plain java
You cannot create a keystore with a blank password with keytool since a while, but you can still do it programmatically.
Read a cert like this:
Than create the keystore with the empty password like this:
Run the command:
It will ask for a password but you can simply push an enter. You will get the following warning, but the content of the keystore will be listed:
This might work for you.