File tree Expand file tree Collapse file tree
lib/Service/IdentifyMethod/SignatureMethod Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,19 +63,19 @@ private function validateCertificateRevocation(array $certificateData): void {
6363 // fail-closed – we cannot confirm the certificate is not revoked.
6464 throw new LibresignException (
6565 $ this ->identifyService ->getL10n ()->t ('Certificate revocation status could not be verified ' ),
66- 400
66+ 422
6767 );
6868 }
6969
7070 private function validateCertificateExpiration (array $ certificateData ): void {
7171 if (array_key_exists ('validTo_time_t ' , $ certificateData )) {
7272 $ validTo = $ certificateData ['validTo_time_t ' ];
7373 if (!is_int ($ validTo )) {
74- throw new LibresignException ($ this ->identifyService ->getL10n ()->t ('Invalid certificate ' ), 400 );
74+ throw new LibresignException ($ this ->identifyService ->getL10n ()->t ('Invalid certificate ' ), 422 );
7575 }
7676 $ now = (new \DateTime ())->getTimestamp ();
7777 if ($ validTo <= $ now ) {
78- throw new LibresignException ($ this ->identifyService ->getL10n ()->t ('Certificate has expired ' ), 400 );
78+ throw new LibresignException ($ this ->identifyService ->getL10n ()->t ('Certificate has expired ' ), 422 );
7979 }
8080 }
8181 }
You can’t perform that action at this time.
0 commit comments