Changes between Version 15 and Version 16 of QuickStart
- Timestamp:
- 05/20/09 17:39:33 (16 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QuickStart
v15 v16 199 199 }}} 200 200 201 This creates a signed certificate as file `cert.pem`. Remove the final 202 "-x509" if you want a certificate signing request only. In that case, 203 send the request to the CA, wait till you get it back, signed, and 204 proceed as normal. (Again, all of this occurs without divulging the 205 private key.) 201 This creates a signed certificate as file `cert.pem` (again, without divulging the private key). You can verify that it is indeed self-signed (the private key is not required for this): exit OpenSSL and type 202 {{{ 203 $ openssl verify -CAfile cert.pem cert.pem 204 cert.pem: OK 205 }}} 206 207 If instead you remove the "-x509" flag in the `req` OpenSSL command, you get a certificate signing request. Send it to the CA, wait till you get it back, signed, and 208 proceed. 206 209 207 210 Now we can store the certificate side by side with the key on the 208 211 token, as a piece of public (but read-only) data. It is important to 209 save the certificate under the same ID as the key . You can get a list212 save the certificate under the same ID as the key, so that applications wanting to use that certificate on your behalf can find the private key as well. You can get a list 210 213 of all keys and their details (including the ID) with: 211 214 {{{ … … 223 226 }}} 224 227 225 So lets store the key:226 {{{ 227 $ pkcs15-init --store-certificate req.pem --auth-id 01 --id 45 --format pem228 So lets store the certificate that we created: 229 {{{ 230 $ pkcs15-init --store-certificate cert.pem --auth-id 01 --id 45 --format pem 228 231 Security officer PIN required. 229 232 Please enter Security officer PIN: … … 233 236 certificate of the CA that signed your key, or some intermediate certificates 234 237 in the chain to the root CA) simply put those into pem files, and add them 235 to id 46, 47 and so on. 238 to id 46, 47 and so on. You don't need the private key for these obviously. 236 239 237 240 = Now what? =
