ConnectScp03 Method
ConnectScp03(YubiKeyApplication, StaticKeys)
Initiate a connection to the specified application on a YubiKey device. The connection will be made over SCP03 (assuming the keys are the ones loaded onto the YubiKey).
IScp03YubiKeyConnection ConnectScp03(YubiKeyApplication yubikeyApplication, StaticKeys scp03Keys)
Parameters
Type | Name | Description |
---|---|---|
YubiKeyApplication | yubikeyApplication | The application to reference on the device. |
StaticKeys | scp03Keys | The SCP03 key set to use in making an SCP03 connection. |
Returns
An instance of a class that implements the IScp03YubiKeyConnection interface.
Remarks
Note that SCP03 works only with SmartCard applications, namely PIV, OATH, and OpenPgp. However, SCP03 is supported only on series 5 YubiKeys with firmware version 5.3 and later, and only the PIV application. If you specify any other application, the connection will likely fail.
Note also that the return is an instance of a class that implements IScp03YubiKeyConnection which is a "subclass" of IYubiKeyConnection.
ConnectScp03(Byte[], StaticKeys)
Initiate a connection to the specified application represented as an
applicationId
on a YubiKey device. The connection will be made
over SCP03 (assuming the keys are the ones loaded onto the YubiKey).
IScp03YubiKeyConnection ConnectScp03(byte[] applicationId, StaticKeys scp03Keys)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | applicationId | A byte array representing the smart card Application ID (AID) for the application to open. |
StaticKeys | scp03Keys | The SCP03 key set to use in making an SCP03 connection. |
Returns
An instance of a class that implements the IYubiKeyConnection interface.
Remarks
Note that SCP03 works only with SmartCard applications, namely PIV, OATH, and OpenPgp. However, SCP03 is supported only on series 5 YubiKeys with firmware version 5.3 and later, and only the PIV application. If you specify any other application, the connection will likely fail.
Note also that the return is an instance of a class that implements IScp03YubiKeyConnection which is a "subclass" of IYubiKeyConnection.