Project

General

Profile

Prepare For Grid Usage » History » Version 1

Timo Eronen, 2016-10-12 11:51

1 1 Timo Eronen
h1. Prepare For Grid Usage
2
3
*1. First you need to create a Personal Certificate according to this help: [[Obtain_the_Personal_Certificate]]*
4
5
*2. Then you need to Join to the fgi.csc.fi Virtual Organization.*
6
7
You *should* use the *same machine* and *same Browser* for obtaining both the Certificate and for joining the VO:
8
9
Go to page https://voms.fgi.csc.fi:8443/voms/fgi.csc.fi, fill the form and submit it.
10
11
Once you have sent your application *you need to wait* until it has been processed after which you'll get an email how to proceed.
12
13
*3. Extract the Personal Certificate from Browser.*
14
15
NOTE: The Personal Certificate is bundle of User Certificate and an associated private key.
16
17
Your Personal Certificate is stored into the Web Browser where you created it. To extract it for the Grid usage proceed as follows:
18
19
Locate the certificate in your Browser. It's placed under something like "Preferences" => "Advanced" => "Certificates" => "View Certificates" => "Your Certificates".
20
21
For example the Certificate in Firefox for OSX looks the following:
22
23
https://p55cc-redmine.utu.fi/attachments/download/6/cert_help.tiff
24
25
It's hard to tell where it is stored as there are too many different Browsers and versions, but the name of the Certificate should be TERENA and your name and email must be part of the Certificate.
26
27
Now "Backup" or "Export" the Certificate, or whatever options you have to Extract the Certificate into a file.
28
29
You will be asked filename into which the Personal Certificate shall be stored. Give some name, for example _user.p12_
30
31
Select “File type” as PKCS12 for the Certificate file.
32
33
Then you will be asked to create a password. Invent a reasonable password and remember it (you will need it later).
34
35
Once you have entered the password the Personal Certificate will be stored into the given file. The file consist of the User Certificate and an associated private key.
36
These two items will be separated into two files next.
37
38
*5. Extract the Certificate private key from Personal Certificate*
39
40
Enter command as follows:
41
42
<pre>
43
openssl pkcs12 -nocerts -in user.p12 -out userkey.pem
44
</pre>
45
46
When executed, this command will ask for the old and the new key passwords (they can be the same). So you better use the same password.
47
48
*6. Extract the User Certificate from Personal Certificate*
49
50
Enter the command:
51
52
<pre>
53
openssl pkcs12 -clcerts -nokeys -in user.p12 -out usercert.pem
54
</pre>
55
56
The two commands above should have created two files, _usercert.pem_ and _userkey.pem_. These two files should be moved into a _.globus_ sub-directory under the user's home directory (note the dot as the first character of the directory name). If the _.globus_ directory does not exist, it can be created with the command:
57
58
<pre>
59
mkdir ~/.globus/
60
</pre>
61
62
After this, the two Certificate files can be moved to the _.globus_ directory with the commands:
63
64
<pre>
65
mv usercert.pem ~/.globus/
66
67
mv userkey.pem ~/.globus/
68
</pre>
69
70
At this point you can (should) remove the original Personal Certificate file:
71
72
<pre>
73
rm user.p12
74
</pre>
75
76
Finally, make sure that the access permissions of the _userkey.pem_ file are set up correctly. The command to ensure this is:
77
78
<pre>
79
chmod 400 ~/.globus/userkey.pem
80
</pre>
81
82
At this point the setup is done and you can verify all is done and you are ready to use Grid. To check enter the command:
83
84
<pre>
85
arcproxy -S fgi.csc.fi
86
</pre>
87
88
If successful the output is something like this:
89
90
<pre>
91
Your identity: /DC=org/DC=terena/DC=tcs/C=FI/O=Turun yliopisto/CN=Timo Eronen tke@utu.fi
92
Contacting VOMS server (named fgi.csc.fi): voms.fgi.csc.fi on port: 15003
93
Proxy generation succeeded
94
Your proxy is valid until: 2016-10-12 23:16:10
95
</pre>