You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2026/07/12 08:06:00 UTC
[jira] [Commented] (PDFBOX-6212) LTV test assumes OCSP response contains embedded certificate, but e.g. DigiCert OCSP responses omit it
[ https://issues.apache.org/jira/browse/PDFBOX-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18095682#comment-18095682 ]
Tilman Hausherr commented on PDFBOX-6212:
-----------------------------------------
You are correct, but the test assumes that we're testing with a service that includes such a certificate. If we make that part optional then we wouldn't have the same test coverage if that other service is used.
At this time, I don't have a better idea than to write a comment explaining what you wrote.
> LTV test assumes OCSP response contains embedded certificate, but e.g. DigiCert OCSP responses omit it
> ------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-6212
> URL: https://issues.apache.org/jira/browse/PDFBOX-6212
> Project: PDFBox
> Issue Type: Bug
> Reporter: robo
> Priority: Minor
>
> The TestCreateSignature.testCreateSignedTimeStamp() test fails when using DigiCert's TSA ([http://timestamp.digicert.com|http://timestamp.digicert.com/]) because the generated LTV information contains OCSP responses whose BasicOCSPResp does not include embedded responder certificates.
> Test Failure:
>
> {code:java}
> org.opentest4j.AssertionFailedError: OCSP should have at least 1 certificate ==>
> Expected :true
> Actual :false{code}
>
> In RFC 6960 ( [https://datatracker.ietf.org/doc/html/rfc6960] ) it says certs is optional
> {code:java}
> certs: [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL
> {code}
>
> If I am correct, an OCSP response without embedded certificates should be standard-compliant. If the BasicOCSPResp is empty, maybe /DSS/Certs should be checked instead?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org