Revocation of certificate failed after upgrading to 8.2.0 - WFLYEJB0034: Jakarta Enterprise Beans Invocation failed #494
-
Hello Community, I am having an issue revoking some certificates after the upgrade to EJBCA 8.2.0. Trying to revoke certificate from
This happens on some of the certificates, not all of them. Looking into the database, there are no obvious differences between the certificates that can be revoked, and certificates that will throw an exception when trying to revoke. Moreover, the certificate that failed to be revoked through the Does anyone have or had similar issue? Can you advise what can be an issue here? I am running with database MariaDB Server version: 10.3.39-MariaDB-0+deb10u1 Debian 10, with OpenJDK 17, and on the Wildfly 26.1.2.Final. I was trying to downgrade to OpenJDK 11, but the problem persists. With best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 17 replies
-
We have not heard of this before. Are you running with database.useSeparateCertificateTable=true or false (default is false)? |
Beta Was this translation helpful? Give feedback.
-
Default value is used, therefore I have a simple
|
Beta Was this translation helpful? Give feedback.
-
Are any publishers used? |
Beta Was this translation helpful? Give feedback.
-
A debug log previous to these failed revocations may reveal some interesting information. |
Beta Was this translation helpful? Give feedback.
-
Yes, there are couple of Publishers that are active, however, any of these Publishers are not selected for this particular Certificate Profile or Authority, so it should not trigger any Publisher when revoking certificate. Here is the DEBUG log before the exception:
|
Beta Was this translation helpful? Give feedback.
-
This was an Admin UI revocation. Did you search for end entity->view certificate->Revoke? I did the same and I get this additional log line: |
Beta Was this translation helpful? Give feedback.
-
Yes, it was done in the Admin UI search for end entity->view certificate->revoke, the same exception result is returned using revocation through Web Services revokeCert. The RA Web works, when I revoke in RA Web, certificate is revoked without any issue. Trying it now with the certificate that I am sure does not have any Publisher, I see the same line in the log:
But the rest is the same, exception occurs:
What can be different when the revocation using RA Web works, but not using the Admin UI? |
Beta Was this translation helpful? Give feedback.
-
Hi Tomas, Here is the TRACE log. There is one RA Peer connection enabled, however, the revocation is done on the same CA, not through the RA Peer. I am trying to revoke in Admin UI and RA UI on the same instance that has the CA. I do not see any interesting information in the database logs. |
Beta Was this translation helpful? Give feedback.
-
Testing various scenarios it seems that I can revoke every certificate that was issued after upgrade to 8.2.0. The problem seems to be with certificates that were issued before upgrade to 8.2.0, but it is still undeterministic behaviour. I do not see any changes to the database or data that can cause it. Do you see any reason why this can happen? |
Beta Was this translation helpful? Give feedback.
I confirmed it's the invalidityDate column by having an old cert where it was null, causing the error but after (I have failOnVerify=false):
update CertificateData set invalidityDate=-1 where fingerprint=LOWER('DF5D3D859744C0B53CC1E1C29AFF0147C399A417');
it works.