I am trying to set up an option in my portal for users to create a certificate using a local CA (OpenSSL). I created it via pi-manager, and everything appeared on the privacyIDEA server. After adjusting the CRL parameters, I was able to assign a CSR using the Admin interface.
However, a standard user cannot do the same. The policy allowing certificate enrollment exists, but upon reaching the enrollment screen, the following issues occur:
Default UI:
When clicking “Enroll,” the following message appears: “The minimum OTP PIN length is 6.”
New UI:
The OTP PIN field is visible; however, even after filling in all the information, the “Enroll Token” button does not become active.
With certificates the OTP PIN is used as the passphrase for the p12 file.
So if you are first creating a CSR, then an OTP PIN will not be used, yet, since there might not be a p12, yet.
Please remove your PIN length policy in this case and check again.