Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

Warning

We do not recommend mixing dynamic and static configuration (i.e., using --pkcs11Config with a modified java.security file, as this can cause two copies of the provider to be loaded. This may result in hard to debug errors, such as "Private keys must be instance of RSAPrivate(Crt)Key or have PKCS#8 encoding" or "No installed provider supports this key".

Using xmlsectool with Dynamic PKCS#11 Configuration

...

Code Block
JVMOPTS="-Djava.security.properties=local-java.security" /opt/xmlsectool/xmlsectool.sh --sign ...

As described in java.security, the above example augments the JDK's version of java.security; you can override it completely by using "==" instead of "=" in the property definition.

Upgrading from a previous version of xmlsectool

...