View | Details | Raw Unified | Return to bug 1371 | Differences between
and this patch

Collapse All | Expand All

(-)dd/ChangeLog.pkcs11 (+109 lines)
Line 0 Link Here
1
20080331
2
 - (alonbl) Rebase to openssh-4.9.
3
4
20080210
5
 - (alonbl) Fix typeo in add id message.
6
 - (alonbl) Release 0.23
7
8
20080109
9
 - (alonbl) More cleanups.
10
 - (alonbl) Add manpages updates.
11
 - (alonbl) Release 0.22
12
13
20080108
14
 - (alonbl) I was not aware of the fact that askpass can be
15
   used in the agent environment.
16
   The PKCS#11 patch now use the standard ssh-askpass interface.
17
   So you must have one available at your system.
18
   Removed the prompt-prog argument from ssh-add.
19
 - (alonbl) The patch is now a tarball with split patches.
20
 - (alonbl) Releae 0.21
21
22
20071229
23
 - (alonbl) Indent file to meet BSD styles.
24
 - (alonbl) Modify parameters (again) to meet BSD styles.
25
   I truly regret that I keep modifying the parameters, I believe
26
   this is not the last time, as I don't have full cooperation of
27
   upstream.
28
   Get provider keys:
29
   	Old:
30
		ssh-add --pkcs11-show-ids ...
31
	New:
32
		ssh-keygen -K provider_info
33
   Add key:
34
	Old:
35
		ssh-add --pkcs11-add-id ...
36
	New:
37
		ssh-add -I id [session_cache [cert_file]]
38
39
   Agentless operation (not recommended, OpenSC compatibility):
40
   	New:
41
		ssh -# provider_info ...
42
43
   Because I don't wish to add more switches, I added a format
44
   for provider information:
45
	lib[:prot_auth[:private_mode[:cert_is_private]]]
46
   For most implementations specify only the library name.
47
 - Rebase with openssh-4.7p1.
48
 - (alonbl) Release 0.20
49
50
20070209
51
 - (alonbl) Fixed typeo in X.509 detection, thanks for "Sandro Wefel".
52
 - (alonbl) Release 0.19
53
54
20070105
55
 - (alonbl) Removed pkcs11-helper since it is now a standalone library.
56
 - (alonbl) Default is PKCS#11 support is disabled, to enable configure
57
   with --with-pkcs11
58
 - (alonbl) Rebase with openssh-4.5p1.
59
 - (alonbl) Release 0.18
60
61
20061023
62
 - (alonbl) Removed logit from ssh-agent, thanks to Denniston, Todd.
63
 - (alonbl) Release 0.17
64
65
20061020
66
 - (alonbl) Major modification of ssh-add command-line parameters.
67
   Now, a complete serialized certificate needs to be specified, this
68
   in order to allow people to add id without forcing card to be available.
69
   But to allow complete silent addition a certificate file also needed.
70
   --pkcs11-show-ids is used in order to get a list of resources.
71
   --pkcs11-add-id --pkcs11-id <serialized id> \
72
      [--pkcs11-cert-file <cert_file>]
73
 - (alonbl) PKCS#11 release 0.16
74
75
20061012
76
 - (alonbl) OpenSC bug workaround.
77
 - (alonbl) PKCS#11 release 0.15
78
79
20060930
80
 - (alonbl) Some pkcs11-helper updates.
81
 - (alonbl) Rebase against 4.4p1.
82
 - (alonbl) PKCS#11 release 0.14
83
84
20060709
85
 - (alonbl) PKCS#11 fixed handling multiproviders.
86
 - (alonbl) PKCS#11 release 0.13
87
88
20060608
89
 - (alonbl) PKCS#11 modifed to match X.509-5.5 patch, works OK with focing
90
   ssh-rsa id.
91
 - (alonbl) PKCS#11 removed --pkcs11-x509-force-ssh argument.
92
 - (alonbl) PKCS#11 release 0.12
93
94
20060527
95
 - (alonbl) PKCS#11 fix issues with gcc-2
96
 - (alonbl) PKCS#11 fix issues with openssl-0.9.6 (first) version.
97
 - (alonbl) PKCS#11 modified to match X.509-5.4 patch.
98
 - (alonbl) PKCS#11 add --pkcs11-x509-force-ssh argument to force ssh id out
99
   of X.509 certificate.
100
 - (alonbl) PKCS#11 release 0.11
101
102
20060419
103
 - (alonbl) PKCS#11 fix handling empty attributes.
104
 - (alonbl) PKCS#11 release 0.10
105
106
20060404
107
 - (alonbl) PKCS#11 code sync.
108
 - (alonbl) PKCS#11 release 0.09
109
(-)dd/README.pkcs11 (+47 lines)
Line 0 Link Here
1
The PKCS#11 patch modify ssh-add and ssh-agent to support PKCS#11 private keys
2
and certificates (http://alon.barlev.googlepages.com/openssh-pkcs11).
3
4
Implementation is based on pkcs11-helper (http://www.opensc-project.org),
5
it allows using multiple PKCS#11 providers at the same time,  handling card
6
removal and card insert events, handling card re-insert to a different slot,
7
supporting session expiration.
8
9
A valid X.509 certificate should exist on the token, without X.509 support it is
10
exported as regular RSA key. Self-signed certificates are treated as RSA key and
11
not as X.509 RSA key.
12
13
If you like X.509 (http://roumenpetrov.info/openssh) support apply the X.509
14
patch AFTER the PKCS#11 patch. You may use -o PubkeyAlgorithms=ssh-rsa in order to
15
authenticate to none X.509 servers.
16
17
Please notice that a program such as x11-ssh-askpass must be installed on your system
18
to use smartcards with the agent.
19
20
Usage can be printed using the following commands:
21
$ ssh-keygen -h
22
$ ssh-add -h
23
$ ssh -h
24
25
A common scenario is the following:
26
$ ssh-agent /bin/sh
27
$ ssh-add -K /usr/lib/pkcs11/MyProvider.so
28
$ ssh-add -I 'serialized id'
29
$ ssh myhost
30
31
In order to see available objects, you can use:
32
$ ssh-keygen -K /usr/lib/pkcs11/MyProvider.so
33
34
In order to add id without accessing the token, you must put the certificate in
35
a PEM file and use:
36
$ ssh-add -I 'serialized id' -1 my.pem
37
38
Agentless configuration is also supported but not recommended, it loads all
39
available keys from provider:
40
$ ssh -# /usr/lib/pkcs11/MyProvider.so host1
41
42
In order to debug open two shells:
43
1$ rm -fr /tmp/s; ssh-agent -d -d -d -a /tmp/s
44
45
2$ SSH_AUTH_SOCK=/tmp/s; export SSH_AUTH_SOCK;
46
2$ [ssh-add]...
47

Return to bug 1371