Project

General

Profile

Submit Grid Job » History » Version 5

Timo Eronen, 2016-10-06 14:02

1 1 Timo Eronen
h1. Submit Grid Job
2 1 Timo Eronen
3 2 Timo Eronen
*======================== DRAFT ===============================*
4 1 Timo Eronen
5 1 Timo Eronen
First you need to create a Personal Certificate according to this help: [[Obtain_the_Personal_Certificate]]
6 1 Timo Eronen
7 5 Timo Eronen
Then you need to Join to the fgi.csc.fi Virtual Organization. You use the same machine and Browser for obtaining both the 
8 5 Timo Eronen
certificate and for joining the VO:
9 1 Timo Eronen
10 5 Timo Eronen
Go to page https://voms.fgi.csc.fi:8443/voms/fgi.csc.fi, fill the form and submit it.
11 5 Timo Eronen
12 5 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.
13 5 Timo Eronen
14 5 Timo Eronen
*1. Extract the Personal Certificate.*
15 5 Timo Eronen
16 3 Timo Eronen
Your Personal Certificate is stored into the Web Browser where you created it. To extract it for Grid usage proceed as follows:
17 3 Timo Eronen
18 3 Timo Eronen
Locate the certificate in your Browser. It's placed under something like "Preferences" => "Advanced" => "Certificates" => "View Certificates" => "Your Certificates".
19 4 Timo Eronen
20 4 Timo Eronen
For example the Certificate in Firefox for OSX looks the following:
21 4 Timo Eronen
22 1 Timo Eronen
https://p55cc-redmine.utu.fi/attachments/download/6/cert_help.tiff
23 4 Timo Eronen
24 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.
25 1 Timo Eronen
26 1 Timo Eronen
Now "Backup" or "Export" the Certificate, or whatever options you have to Extract the Certificate into a file.
27 5 Timo Eronen
28 5 Timo Eronen
29 5 Timo Eronen
30 5 Timo Eronen
You will be asked filename into which the Certificate shall be stored. Give some name, for example user.p12
31 5 Timo Eronen
32 5 Timo Eronen
Select “File type” as PKCS12 for the Certificate file.
33 5 Timo Eronen
34 5 Timo Eronen
Then you will be asked to create a password, invent a reasonable password and remember it (you will need it later).
35 5 Timo Eronen
36 5 Timo Eronen
Once you have entered the password the Certificate will be stored into the given file. The file consist of the Certificate and an associated private key. These two items will be separated into two files next.
37 5 Timo Eronen
38 5 Timo Eronen
The PEM formatted certificate consists of two files: private key file (userkey.pem) and certificate file (usercert.pem). The certificate private key is created with the command:
39 5 Timo Eronen
openssl pkcs12 -nocerts -in usercert.p12 -out userkey.pem
40 5 Timo Eronen
When executed, this command will ask for the old and the new key passwords (they can be the same). The user certificate file is created with the command :
41 5 Timo Eronen
openssl pkcs12 -clcerts -nokeys -in usercert.p12 -out usercert.pem
42 5 Timo Eronen
43 5 Timo Eronen
44 5 Timo Eronen
The commands above should have created two files, usercert.pem and userkey.pem. To use the ARC middleware 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:
45 5 Timo Eronen
mkdir ~/.globus/
46 5 Timo Eronen
After this, the certificate files can be moved to the .globus directory with the commands:
47 5 Timo Eronen
cp usercert.pem ~/.globus/
48 5 Timo Eronen
cp userkey.pem ~/.globus/
49 5 Timo Eronen
Finally, make sure that the access permissions of the userkey.pem file are set up correctly. The command to ensure this is:
50 5 Timo Eronen
chmod 400 ~/.globus/userkey.pem