Skip to content

Commit 155b182

Browse files
svenzikmrts
authored andcommitted
Add debug statement when returning early
WE2-1028 Signed-off-by: Sven Mitt <[email protected]>
1 parent 7586219 commit 155b182

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/validator/certvalidators/SubjectCertificatePurposeValidator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function validate(X509 $subjectCertificate): void
6666
if (!$usages || empty($usages)) {
6767
// Digital Signature extension present, but Extended Key Usage extension not present,
6868
// assume it is an authentication certificate (e.g. Luxembourg eID).
69+
$this->logger?->debug("User certificate has Digital Signature key usage and no Extended Key Usage extension, this means that it can be used for client authentication.");
6970
return;
7071
}
7172
// Extended usages must contain TLS Web Client Authentication

0 commit comments

Comments
 (0)