-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement FindCertificateChain function to find certificate chain
Certificate chain is found by following algorithm: * find first certificate either by id or/and label or/and serial (same as existing FindCertificate does); * if issuer is not nil, find next certificate by CKA_SUBJECT (issuer should be equal subject); * if certificate with required subject not found then read all certificates and try to find next certificate by AuthorityKeyId (AuthorityKeyId should be equal to SubjectKeyId); * finding stops if last found certificate is selfsigned (issuer is nil or equals to subject). Signed-off-by: Oleksandr Grytsov <[email protected]>
- Loading branch information
Showing
3 changed files
with
195 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters