The Dogtag Certificate System is an enterprise-class Certificate Authority (CA) which supports all aspects of certificate lifecycle management, including key archival, OCSP and smartcard management.
When processing certain certificates, pki pkcs7-import generates an error:
org.mozilla.jss.crypto.TokenException: Failed to find certificate that was just imported: (-8187) security library: invalid arguments.
at org.mozilla.jss.CryptoManager.importCertPackageNative(Native Method)
at org.mozilla.jss.CryptoManager.importCACertPackage(CryptoManager.java:861)
at com.netscape.cmsutil.crypto.CryptoUtil.importPKCS7(CryptoUtil.java:883)
at com.netscape.cmstools.pkcs7.PKCS7ImportCLI.execute(PKCS7ImportCLI.java:102)
at org.dogtagpki.cli.CommandCLI.execute(CommandCLI.java:58)
at org.dogtagpki.cli.CLI.execute(CLI.java:353)
at org.dogtagpki.cli.CLI.execute(CLI.java:353)
at com.netscape.cmstools.cli.MainCLI.execute(MainCLI.java:659)
at com.netscape.cmstools.cli.MainCLI.main(MainCLI.java:698)
Version of pki used:
PKI Command-Line Interface 11.5.0-SNAPSHOT
Distributor of pki:
AlmaLinux 9.4
How reproducible:
Copy the certificates below.
Run command:
cat $path_to_test_cert | pki pkcs7-import
Perhaps this is because the serial numbers of certificates are large.
But in this case, the error should be more informative.
This command is used when installing FreeIPA, and it may take a long time to find the cause of the failure.
Description of problem:
When processing certain certificates, pki pkcs7-import generates an error:
Version of pki used:
PKI Command-Line Interface 11.5.0-SNAPSHOT
Distributor of pki:
AlmaLinux 9.4
How reproducible:
Perhaps this is because the serial numbers of certificates are large. But in this case, the error should be more informative. This command is used when installing FreeIPA, and it may take a long time to find the cause of the failure.
Examples of "bad" certificates:
OpenSSL does not generate errors when processing these certificates: