mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-30 16:13:55 +00:00
Match only the actual extension bytes of the SKID
This commit is contained in:
parent
962ca45bb7
commit
bc7e07583f
@ -182,7 +182,7 @@ public class ReferenceManifestValidator {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
subjectKeyIdentifier = getKeyName(rim);
|
subjectKeyIdentifier = getKeyName(rim);
|
||||||
if (subjectKeyIdentifier.equals(cert.getSubjectKeyIdString())) {
|
if (subjectKeyIdentifier.equals(cert.getSubjectKeyIdString().substring(8))) {
|
||||||
context = new DOMValidateContext(cert.getX509Certificate().getPublicKey(),
|
context = new DOMValidateContext(cert.getX509Certificate().getPublicKey(),
|
||||||
nodes.item(0));
|
nodes.item(0));
|
||||||
}
|
}
|
||||||
@ -354,6 +354,7 @@ public class ReferenceManifestValidator {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This method returns the subjectKeyIdentifier from a given X509Certificate.
|
* This method returns the subjectKeyIdentifier from a given X509Certificate.
|
||||||
|
*
|
||||||
* @param certificate the cert to pull the subjectKeyIdentifier from
|
* @param certificate the cert to pull the subjectKeyIdentifier from
|
||||||
* @return the String representation of the subjectKeyIdentifier
|
* @return the String representation of the subjectKeyIdentifier
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
|
Loading…
x
Reference in New Issue
Block a user