Changes between Version 1 and Version 2 of SettingUpUser


Ignore:
Timestamp:
11/29/05 19:25:50 (20 years ago)
Author:
Daniel Kahn gillmor
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SettingUpUser

    v1 v2  
    11Here's how i would create a user for trac:
     2
     3
     4{{{
     5[dkg@squeak cal]$ openssl req -newkey rsa:2048 -keyout cal-key.pem -out cal-req.pem
     6Generating a 2048 bit RSA private key
     7.......................................................................................................................................................+++
     8...........+++
     9writing new private key to 'cal-key.pem'
     10Enter PEM pass phrase:
     11Verifying - Enter PEM pass phrase:
     12-----
     13You are about to be asked to enter information that will be incorporated
     14into your certificate request.
     15What you are about to enter is what is called a Distinguished Name or a DN.
     16There are quite a few fields but you can leave some blank
     17For some fields there will be a default value,
     18If you enter '.', the field will be left blank.
     19-----
     20Country Name (2 letter code) [AU]:US
     21State or Province Name (full name) [Some-State]:New York
     22Locality Name (eg, city) []:New York
     23Organization Name (eg, company) [Internet Widgits Pty Ltd]:Columbia University Astrophysics Laboratory
     24Organizational Unit Name (eg, section) []:People
     25Common Name (eg, YOUR name) []:Daniel Kahn Gillmor
     26Email Address []:foo@bar.com
     27
     28Please enter the following 'extra' attributes
     29to be sent with your certificate request
     30A challenge password []:
     31An optional company name []:
     32[dkg@squeak cal]$
     33}}}
     34Now send the system administrator a copy of the new certificate request you just created called `cal-req.pem`, along with an explanation of why you should have an account.
     35
     36The system administrator will then send you a file called `cal-cert.pem`.  You should now run the following command:
     37
     38{{{
     39[dkg@squeak cal]$ openssl pkcs12 -export -in cal-cert.pem -inkey cal-key.pem -out cal-cert.p12 -name "My CAL Certificate"
     40Enter pass phrase for dkg-cal-key.pem:
     41Enter Export Password:
     42Verifying - Enter Export Password:
     43[dkg@squeak cal]$
     44}}}
     45
     46Now you have `cal-cert.p12`, which should be able to be loaded into your favorite web browser.  Under Mozilla, choose "Edit|Preferences", then select "Privacy and Security" in the left-hand pane, and choose "Certificates" from the sub-menu.
     47
     48Click "Manage Certificates", ensure that the "Your Certificates" tab is active, and choose "import".  Point Mozilla at `cal-cert.p12`, and give it the password you gave it in "the "Export Password" step above.  Mozilla should now know how to identify you to the server.