Open sadgeeknz opened 2 months ago
Hi @sadgeeknz ,
If I'm not wrong, we are not configuring conf/cesecore.properties
file by default. Per the issue linked above, the parameter should be added there.
As a workaround, you could create a initialization script (to cp conf/cesecore.properties.sample
to conf/cesecore.properties
) and locate it in /docker-entrypoint-init.d directory.
I hope it helps
Hi @dgomezleon ,
Unfortunately, that does not seem to work. I had tried the following addition to the Dockerfile previously:
+RUN echo -e "\npkcs11.disableHashingSignMechanisms=false\n" >> /opt/bitnami/ejbca/conf/cesecore.properties +RUN echo -e "\npkcs11.disableHashingSignMechanisms=false\n" >> /opt/bitnami/ejbca/conf.default/cesecore.properties +RUN echo -e "\npkcs11.disableHashingSignMechanisms=false\n" >> /opt/bitnami/ejbca/conf/ejbca.properties +RUN echo -e "\npkcs11.disableHashingSignMechanisms=false\n" >> /opt/bitnami/ejbca/conf.default/ejbca.properties
(Not a clean approach, so I'll file your suggestion away, thank you.)
This does result in the conf/cesecore.properties file existing in the resultant Docker image (confirmed via docker exec), but I'm not seeing any change of behaviour in EJBCA. It is unclear to me why a change to ejbca.properties, in particular, isn't showing any impact.
Hi @sadgeeknz,
Thanks for confirming it. I will create an internal task to check it.
I have the same issue. I use kubernetes and have this in my deployment:
image: docker.io/bitnami/ejbca:8.3.2-debian-12-r2
imagePullPolicy: "IfNotPresent"
lifecycle:
postStart:
exec:
command:
- "/bin/sh"
- "-c"
- |
echo "web.reqcert=false" >> /opt/bitnami/ejbca/conf/web.properties
env:
- name: BITNAMI_DEBUG
value: "false"
The change in the file web.properties
does not show any effect.
Name and Version
bitnami/ejbca:latest
What architecture are you using?
amd64
What steps will reproduce the bug?
Clone bitnami/containers.git on a fresh Ubuntu 22.04 with Smartcard-HSM machine, add opensc to EJBCA Dockerfile, build and run docker image. Configure PKCS#11-based HSM Crypto Token in EJBCA. Attempt to generate RSA key.
This results in the error described in https://github.com/Keyfactor/ejbca-ce/discussions/281#discussioncomment-10516921, with a suggested workaround of enabling pkcs11.disableHashingSignMechanisms=false in the cesecore.properties file.
However, attempting to set that flag in various locations (including
/opt/bitnami/ejbca/conf/cesecore.properties
and/opt/bitnami/ejbca/conf/ejbca.properties
) in the Bitnami installation does not honor the setting. Raising this issue with EJBCA got me referred back to here.How does one set
pkcs11.disableHashingSignMechanisms=false
in the Bitnami docker image of EJBCA?What is the expected behavior?
Successful key generation.
What do you see instead?