StoreCertificates Method
StoreCertificates(KeyReference, IReadOnlyList<X509Certificate2>)
Store a list of certificates associated with the given key reference using the GlobalPlatform STORE DATA command.
C#
public void StoreCertificates(KeyReference keyReference, IReadOnlyList<X509Certificate2> certificates)
Parameters
Type | Name | Description |
---|---|---|
KeyReference | keyReference | The key reference associated with the certificates. |
System.Collections.Generic.IReadOnlyList<System.Security.Cryptography.X509Certificates.X509Certificate2> | certificates | The certificates to store. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when certificatedata |
SecureChannelException | Thrown when there was an SCP error, described in the exception message. |
Remarks
The certificates will be stored in the order they are provided in the list.
See GlobalPlatform Technology Card Specification v2.3.1 §11 APDU Command Reference for more information.