Utimaco is not referring to a defined value when i start signserver with docker #12
-
I start signserver with docker: Now, i need connect signserver to PKCS11 on HSM.I has changed signserver-deploy.configuaration: Then I add PKCS#11 crypto worker from template,and i change the configuration: The PKCS#11 crypto worker status is offline,so i active it and enter authentication Code.but i get errors:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi! You refer to the filename signserver-deploy.configuration, is that the literal file name you used? And also those shared libraries which are configured, and pointing to a valid shared library physically on disk with the configured path will show up in the error message if you try to setup a P11 crypto worker with an unknown SHAREDLIBRARYNAME. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your answer, but I still have no success after following your method. My dockerfile content below: My start.sh content below:
Where My signserver_deploy.properties changed:
Then I build the image and execute:
PKCS#11 crypto worker create by template:
I feel that the modification of signserver_deploy.properties does not take effect, because I modified other places, such as setting I found a sentence at the beginning of signserver_deploy.properties: I have also searched for other information and tried my best to solve it, but it has never been successful. Hope you can help me, thank you very much. |
Beta Was this translation helpful? Give feedback.
-
Hi, Note that signserver_deploy.properties is the configuration file used when configuring the signserver.ear for deployment to the application server and is read and used when one runs the 'bin/ant deploy-ear' command. However, for the container packaging that command is run when the container is built and not at runtime and what is available in the container is an already configured application. We are discussing if we should change the container packaging to configure the signserver.ear during startup so that all properties are read from conf/signserver_deploy.properties so that the container would behave more similar to a normal SignServer installation. There is also an other solution of having SignServer read the configuration files during startup (sometimes referred to as "external configuration") however that is not supported for any packaging of SignServer and does not provide all SignServer deployment features. In the short-term I suppose one could figure out what the configuration run during "bin/ant deploy" is doing with the cryptotoken.p11.lib.* properties and change the place where they end up. Roughly it would be something like this:
Cheers, |
Beta Was this translation helpful? Give feedback.
Hi,
Note that signserver_deploy.properties is the configuration file used when configuring the signserver.ear for deployment to the application server and is read and used when one runs the 'bin/ant deploy-ear' command. However, for the container packaging that command is run when the container is built and not at runtime and what is available in the container is an already configured application.
We are discussing if we should change the container packaging to configure the signserver.ear during startup so that all properties are read from conf/signserver_deploy.properties so that the container would behave more similar to a normal SignServer installation.
There is also an other solution…