You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using version 0.1.7 of the wolfssl Command Line Utility. Linked to wolfSSL version 5.7.6
Description
Hello developer, I'm not sure if wolfssl has a command for CRL revocation checks. When I perform a revocation check using openssl, openssl indicates that the certificate has been revoked, but wolfssl does not display any information related to the certificate being revoked.
How are you building wolfSSL? You will need to pass in --enable-crl to enable CRL support.
Please use wolfSSL 5.8.2 with wolfCLU master, we have had significant changes to both since 0.1.7/5.7.6.
How are you building wolfSSL? You will need to pass in to enable CRL support. Please use wolfSSL 5.8.2 with wolfCLU master, we have had significant changes to both since 0.1.7/5.7.6.--enable-crl
Hello Developers,
Hello. I have installed the latest version of wolfSSL.
The following is the displayed result:
You are using version 0.1.8 of the wolfssl Command Line Utility.
Linked to wolfSSL version 5.8.2
I ran the command below and am not sure if wolfSSL supports CRL revocation checking:
wolfssl verify -CAfile root_cert_1.pem -CRLfile crl_revokedCert_02.pem ca1.pem
The command output was:
verifying certificate file ca1.pem
using CA file root_cert_1.pem
OK
Hello @onepeople158, I will take a look at this. I see your test case files in the isRevoked.zip file. Can you include the openssl verify commands you are using for comparison?
Hello @onepeople158, I will take a look at this. I see your test case files in the isRevoked.zip file. Can you include the openssl verify commands you are using for comparison?
If I include that flag in the wolfssl command and use the same flags as with your openssl verify command, I do also get an error from wolfssl, although the error message is different:
You are correct that wolfssl does not say that the certificate was revoked in this case. I'll check with the team to see about improving the error message.
If I include that flag in the wolfssl command and use the same flags as with your openssl verify command, I do also get an error from wolfssl, although the error message is different:
@onepeople158 Are you able to reproduce this by only using openssl commands to generate the test certificates/CRL?
These are the CRL, target certificate, and root certificate I generated using the OpenSSL command line (CRL: rootCA.crl, Root Certificate: rootCA.crt, Target Certificate: target.crt).
@onepeople158
The error code 12 is Err (12): CRL has expired.
This is because your crl is expired.
Last Update: Jan 1 00:00:00 2025 GMT
Next Update: Dec 1 00:00:00 2025 GMT
Since PR#9628 and PR#9635 have already been merged, I recommend using the latest GitHub versions of wolfSSL and wolfCLU so that you can see the following output.
$ ./wolfssl verify -CAfile crl_rootca.pem -crl_check ca1.pem
verifying certificate file ca1.pem
using CA file crl_rootca.pem
Verification Failed
Err (12): CRL has expired
Error returned: -1.
@onepeople158 The error code 12 is .Err (12): CRL has expired
This is because your crl is expired.
Last Update: Jan 1 00:00:00 2025 GMT
Next Update: Dec 1 00:00:00 2025 GMT
Since PR#9628 and PR#9635 have already been merged, I recommend using the latest GitHub versions of wolfSSL and wolfCLU so that you can see the following output.
$ ./wolfssl verify -CAfile crl_rootca.pem -crl_check ca1.pem
verifying certificate file ca1.pem
using CA file crl_rootca.pem
Verification Failed
Err (12): CRL has expired
Error returned: -1.
I replaced it with a valid CRL file, and wolfSSL indicated that the certificate had been revoked.
make[2]: warning: -j5 forced in submake: resetting jobserver mode.
verifying certificate file /kaggle/input/isrevoked/ca1.pem
using CA file crl_rootca.pem
Verification Failed
Err (23): certificate revoked
Error wolfcrypt/src/asn.c:26058: ASN self-signed certificate error (-275)
Error wolfcrypt/src/asn.c:40570: ASN CRL no signer error to confirm failure (-190)
Error returned: -1.
Activity
kareem-wolfssl commentedon Aug 12, 2025
Hello @onepeople158 ,
How are you building wolfSSL? You will need to pass in
--enable-crlto enable CRL support.Please use wolfSSL 5.8.2 with wolfCLU master, we have had significant changes to both since 0.1.7/5.7.6.
onepeople158 commentedon Aug 26, 2025
Hello Developers,
Hello. I have installed the latest version of wolfSSL.
The following is the displayed result:
You are using version 0.1.8 of the wolfssl Command Line Utility.
Linked to wolfSSL version 5.8.2
I ran the command below and am not sure if wolfSSL supports CRL revocation checking:
wolfssl verify -CAfile root_cert_1.pem -CRLfile crl_revokedCert_02.pem ca1.pem
The command output was:
verifying certificate file ca1.pem
using CA file root_cert_1.pem
OK
holtrop commentedon Aug 26, 2025
Hello @onepeople158, I will take a look at this. I see your test case files in the isRevoked.zip file. Can you include the openssl verify commands you are using for comparison?
onepeople158 commentedon Aug 27, 2025
openssl verify -crl_check -x509_strict -CAfile root_cert_1.pem -CRLfile crl_revokedCert_02.pem ca1.pem
C=CN, ST=Beijing, L=Beijing, O=My Organization, CN=My Intermediate CA
error 23 at 0 depth lookup: certificate revoked
error ca1.pem: verification failed
holtrop commentedon Aug 27, 2025
Hello @onepeople158 .
wolfssl verifydoes have a-crl_checkflag as well.If I include that flag in the wolfssl command and use the same flags as with your openssl verify command, I do also get an error from wolfssl, although the error message is different:
This is with the latest version of wolfssl from git.
holtrop commentedon Aug 27, 2025
You are correct that wolfssl does not say that the certificate was revoked in this case. I'll check with the team to see about improving the error message.
onepeople158 commentedon Aug 28, 2025
If you use this command, it will also report an error for the correct CRL.
right_crl.zip
holtrop commentedon Sep 2, 2025
Hello @onepeople158 , I will take a look at this as well.
For comparison, can you share the commands you used to create the test certificates in the two .zip archives that you shared?
onepeople158 commentedon Sep 3, 2025
These certificates were created using the cryptography library in Python.
holtrop commentedon Sep 15, 2025
@onepeople158 Are you able to reproduce this by only using openssl commands to generate the test certificates/CRL?
onepeople158 commentedon Sep 16, 2025
These are the CRL, target certificate, and root certificate I generated using the OpenSSL command line (CRL: rootCA.crl, Root Certificate: rootCA.crt, Target Certificate: target.crt).
openssl_crl_check.zip
command:
miyazakh commentedon Jan 9, 2026
Hi @onepeople158
It seems that there are multiple reasons why this does not work as expected.
wolfCLUdoesn't support-CRLfileoption yet.For
#1, could you concatenate the CRL and the CA certificate, and then use the result as the-CAfileargument, as shown below?For
#2, I have submitted a fix as PR#968. In the meantime, could you try configuring wolfSSL withCFLAGS="-DCRL_MAX_NUM_SZ=40"?For
#3, I am working on it.onepeople158 commentedon Jan 9, 2026
miyazakh commentedon Jan 9, 2026
@onepeople158
Did you recompile wolfSSL with
CFLAGS=-DCRL_MAX_NUM_SZ=40because your CRL number is large, and rebuild wolfCLU accordingly?onepeople158 commentedon Jan 10, 2026
I enabled the option CFLAGS=-DCRL_MAX_NUM_SZ=40 and recompiled wolfSSL. Below are the results.
miyazakh commentedon Jan 13, 2026
@onepeople158
The error code 12 is
Err (12): CRL has expired.This is because your crl is expired.
Since PR#9628 and PR#9635 have already been merged, I recommend using the latest GitHub versions of wolfSSL and wolfCLU so that you can see the following output.
onepeople158 commentedon Jan 14, 2026
I replaced it with a valid CRL file, and wolfSSL indicated that the certificate had been revoked.