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