Interface ICertificateStore
- Namespace
- SimpleSign.Core.Crypto
- Assembly
- SimpleSign.Core.dll
Abstraction for loading certificates from various stores (file system, OS store, HSM).
public interface ICertificateStore
Methods
FindBySubject(string)
Finds all certificates matching a subject name (partial match).
IReadOnlyList<X509Certificate2> FindBySubject(string subjectName)
Parameters
subjectNamestringSubject CN or partial match.
Returns
- IReadOnlyList<X509Certificate2>
Matching certificates.
FindByThumbprint(string)
Finds a certificate by SHA-1 thumbprint (hex string).
X509Certificate2? FindByThumbprint(string thumbprint)
Parameters
thumbprintstringSHA-1 thumbprint, case-insensitive.
Returns
- X509Certificate2
The certificate, or null if not found.
ListAll()
Lists all certificates in the store.
IReadOnlyList<X509Certificate2> ListAll()