Class SoftwareIdentities
Software identities: keys and certificates the device API creates, keeps and signs with for a caller - phone signatures and seals - as it does for a pad without a pad certificate. The key never leaves the device API: the caller gets the chain (Chain(SoftwareIdentityKind, Nullable<String>, Byte[], out Nullable<X509Certificate2Collection>)) and the signature of a hash (SignHash(SoftwareIdentityKind, Nullable<String>, Byte[], Byte[], out Byte[])), and builds its CMS itself. Stored as the pad certificates (Windows: the user's certificate store, key not exportable; macOS: a PKCS#12 for the owner only in ~/.stepover), reused while it is from this release's issuing CA, else replaced.
Inheritance
Namespace: Sig.DeviceAPI
Assembly: SigDeviceAPI.dll
Syntax
public static class SoftwareIdentities : object
Remarks
Plan: stepover-docs/plans/software-identities.md.
Methods
| Name | Description |
|---|---|
| Chain(SoftwareIdentityKind, Nullable<String>, Byte[], out Nullable<X509Certificate2Collection>) | The identity's certificate chain: leaf (public part), issuing CA, root G2 - created on first use. |
| SignHash(SoftwareIdentityKind, Nullable<String>, Byte[], Byte[], out Byte[]) | Signs a SHA-256 hash with the identity's key: RSA PKCS#1 v1.5 (DigestInfo SHA-256) - the identity Chain(SoftwareIdentityKind, Nullable<String>, Byte[], out Nullable<X509Certificate2Collection>) returns for the same arguments, created on first use. |