Changes between Version 15 and Version 16 of QuickStart

Show
Ignore:
Timestamp:
05/20/09 17:39:33 (16 months ago)
Author:
DomQ
Comment:

Proof-read the end of the procedure

Legend:

Unmodified
Added
Removed
Modified
  • QuickStart

    v15 v16  
    199199}}} 
    200200 
    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.) 
     201This 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 
     204cert.pem: OK 
     205}}} 
     206 
     207If 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 
     208proceed. 
    206209 
    207210Now we can store the certificate side by side with the key on the 
    208211token, 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 list 
     212save 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 
    210213of all keys and their details (including the ID) with: 
    211214{{{ 
     
    223226}}} 
    224227 
    225 So lets store the key: 
    226 {{{ 
    227 $ pkcs15-init --store-certificate req.pem --auth-id 01 --id 45 --format pem  
     228So lets store the certificate that we created: 
     229{{{ 
     230$ pkcs15-init --store-certificate cert.pem --auth-id 01 --id 45 --format pem  
    228231Security officer PIN required. 
    229232Please enter Security officer PIN:  
     
    233236certificate of the CA that signed your key, or some intermediate certificates 
    234237in the chain to the root CA) simply put those into pem files, and add them 
    235 to id 46, 47 and so on.  
     238to id 46, 47 and so on.  You don't need the private key for these obviously. 
    236239 
    237240= Now what? =