User Certificate creation issue
-
Hi guys,
I am running pfSense version 2.7.2-RELEASE (amd64), and I have been experiencing issues since the last update. When creating a new user, I usually check the "create certificate" option for OpenVPN access. However, when I navigate to System / Certificates / Certificates, the user certificate lacks details such as CN, OU, O, L, Valid from, and Valid To.
Additionally, when attempting to export the certificate, it shows a length of 0, indicating that the new user certificates are not being created correctly. I am unable to generate an OpenVPN configuration using the client export tool, and I receive the following error message:
"A private key cannot be empty if PKCS#11 or Microsoft Certificate Store is not used.
Failed to export config files."Everything was working fine before the upgrade. Any advice on what might be wrong?
Certificate list looks like - image
Thank you.
-
I can't replicate that here. When I choose the option to create a user certificate, the certificate is created as expected.
Are there any errors in the system log or on the dashboard after that fails?
It could be an issue with the CA you are choosing, if somehow it isn't valid for signing it may not be successful in that step.
-
Hi, sorry for the late reply. My customer asked me to fix this pending issue, and I have a headache from it.
I have tried to generate a new CA and create user certificates using the new CA, but the issue persists. The user certificate is still empty when I check "Create user certificate" during the user creation request.
When I try to generate the certificate manually, an error is displayed: OpenSSL Library Error: error:0480006C routines::no start line
Which log do i have to check?
-
It really looks like there is an issue with the pfSense GUI. I exported ca.crt and ca.key to the local filesystem. Then I used the openssl command in the SSH console to generate user.crt and user.key signed with the exported ca.crt.
The next step was to create a user with certificates (but the certificate manager generates an empty certificate and key). Go to the certificate manager, edit the existing empty certificate and key, and copy the data from the .crt and .key files on the filesystem.
Everything works fine, including OpenVPN. So I don't know what could be causing the issue in the GUI...