J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | The files in this directory are used by the ClientAuth test. |
| 2 | |
| 3 | The cert8.db password is: "test12" |
| 4 | cert8.db includes entries for: |
| 5 | |
| 6 | 1. user1 (private key and cert signed by ca) |
| 7 | 2. user2 (private key and self-signed cert) |
| 8 | 3. ca (ca cert) |
| 9 | |
| 10 | and was set up using the following commands: |
| 11 | |
| 12 | 1. certutil -N -d . |
| 13 | 2. certutil -G -k rsa -g 512 -d . |
| 14 | 3. certutil -R -s "cn=user1" -k rsa -g 512 -d . -o user1.certreq |
| 15 | |
| 16 | 4. wrote own code to parse user1.certreq and create user1.cert signed |
| 17 | by the CA contained in basic.keystore (in the BasicData directory) |
| 18 | |
| 19 | 5. certutil -A -n user1 -t u -d . -i user1.cert |
| 20 | 6. certutil -A -n ca -t c -d . -i ca.cert |
| 21 | 7. certutil -S -n user2 -s cn=user2 -t u -k rsa -g 512 -x -d . -v 240 |
| 22 | |
| 23 | server.keystore contains the server's private key entry. |
| 24 | the server certificate is self-signed. |
| 25 | server.keystore's password is: "passphrase" |
| 26 | |
| 27 | truststore is shared by both the client and the server, |
| 28 | and contains certificates for user1, user2, server, and ca. |
| 29 | The truststore password is: "passphrase" |