From e1b831d251bd2871199f1549d1fa1b188f82314c Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Thu, 21 Mar 2024 18:33:57 +0100 Subject: [PATCH] check issuer only if provided --- .../java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java index 692efce..8d5cbd9 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/probe/EmbeddedProofProbe.java @@ -259,7 +259,7 @@ public class EmbeddedProofProbe extends Probe { return error("Invalid public key: " + e.getMessage(), ctx); } - if (controller != null) { + if (controller != null && credentialHolder.getCredential().getIssuer() != null) { if (!controller.equals(credentialHolder.getCredential().getIssuer().toString())) { return error( "Key controller does not match issuer: " + credentialHolder.getCredential().getIssuer(),