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
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,19 @@ The missing key management bridge between (Open)SSH and Java worlds. `SSHProvide
12
12
- verify and create [`SSHSIG`](https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.sshsig) and raw SSH signature formats, also with [SSH certificates](https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.certkeys) (including [webauthn signatures](https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.u2f#L222-L246))
13
13
- use existing OpenSSH [`allowed_signers`](https://man.openbsd.org/ssh-keygen.1#ALLOWED_SIGNERS) trust anchoring files (as used by Git, for example)
14
14
15
-
Pure Java with _zero_ 3rd party dependencies!
15
+
Pure Java with _zero_ 3rd party dependencies.
16
16
17
17
> [!TIP]
18
18
> Sign easily with local hardware keys on remote machines with SSH agent forwarding ❤️
19
19
20
20
## How to use
21
-
There is also a longer [Tutorial](https://github.com/martinpaljak/java-ssh-provider/wiki/Tutorial) (WIP)
21
+
There is also a longer [Tutorial](https://github.com/martinpaljak/java-ssh-provider/wiki/Tutorial) (WIP).
22
22
## Access keys in agent
23
23
24
24
Generate standard signatures with a key in hardware via `$SSH_AUTH_SOCK`
25
25
26
26
> [!NOTE]
27
-
> Keys are _reported_ by their public key fingerprint (same as shown by `ssh-add -l`) but _can also be addressed_ by full public key/certificate string (as shown by `ssh-add -L` or available in a `.pub` file).
27
+
> Keys are _reported_ by their public key fingerprint (same as shown by `ssh-add -l`) but can _also_ be addressed by full public key/certificate string (as shown by `ssh-add -L` or available in a `.pub` file).
28
28
29
29
30
30
```java
@@ -44,7 +44,7 @@ for (String alias : Collections.list(ks.aliases())) {
44
44
String alias ="SHA256:5DmYCoIkCgEoOnbx3K+UXLhHVh8pX8GXgf7IS8i9QPo";
45
45
46
46
PrivateKey key = (PrivateKey) ks.getKey(alias);
47
-
Signature sig =Signature.getInstance("SHA256withECDSA");// standard interoperable signature format
47
+
Signature sig =Signature.getInstance("SHA256withECDSA");
48
48
sig.initSign(key);
49
49
50
50
// Continue as usual
@@ -67,7 +67,7 @@ Verify it with Java (or vice-versa):
0 commit comments