You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Ubuntu 16.04 with no configuration options specified to alter installation locations, they end up in the same location for both the *manual method*
488
+
and `sudo make install` method.
489
+
490
+
#### Step 6 - Logging In via SSH
491
+
492
+
To log in, one used the `ssh` client application and specifies the path to the PKCS11 library via the `-I` option. It will prompt for the user PIN, which
493
+
in the example is set to `myuserpin`.
494
+
495
+
```bash
496
+
ssh -I /usr/local/lib/libtpm2_pkcs11.so 127.0.0.1
497
+
Enter PIN for 'label': myuserpin
498
+
Last login: Fri Sep 21 13:28:31 2018 from 127.0.0.1
499
+
```
500
+
501
+
You are now logged in with a key resident in the TPM being exported via the tpm2-pkcs11 library.
502
+
503
+
#### TODO
504
+
505
+
- [ ] `unittest.mock.patch` the `pycose.algorithms._Ecdsa.sign` method to
506
+
attempt usage of PKCS#11 module to sign.
507
+
508
+
```python
509
+
class _Ecdsa(CoseAlgorithm, ABC):
510
+
@classmethod
511
+
def sign(cls, key: 'EC2', data: bytes) -> bytes:
512
+
sk = SigningKey.from_secret_exponent(int(hexlify(key.d), 16), curve=cls.get_curve())
0 commit comments