Method Chain
Chain(SoftwareIdentityKind, Nullable<String>, Byte[], out Nullable<X509Certificate2Collection>)
The identity's certificate chain: leaf (public part), issuing CA, root G2 - created on first use.
Declaration
public static Error Chain(SoftwareIdentityKind kind, string? phoneId, byte[] subjectName, out X509Certificate2Collection? chain)
Parameters
| Type | Name | Description |
|---|---|---|
| SoftwareIdentityKind | kind | What the identity is for. |
| System.Nullable<System.String> | phoneId | PhoneSignature: the phone's stable ID (Android ID, iOS device UUID, else its name), at most 64 characters; ignored for a seal. |
| System.Byte[] | subjectName | Seal: the DER-encoded subject; ignored for a phone. |
| System.Nullable<X509Certificate2Collection> | chain | Leaf, issuing CA, root G2. Null in case of error. |
Returns
| Type | Description |
|---|---|
| Error | SUCCESS; CertificateNotFound if this build has no issuing CA; GENERAL_FAILURE for an unusable ID or subject. |