grid security 101 - nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · grid security 101...

27
Enabling Grids for E-sciencE Grid Security 101 Dennis van Dok www.eu-egee.org Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial 2008 1

Upload: others

Post on 28-Feb-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Enabling Grids for E-sciencE

Grid Security 101

Dennis van Dok

www.eu-egee.orgInformation Societyand media

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 1

Page 2: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

OutlineEnabling Grids for E-sciencE

Introduction

Trust

Obtain a certificate

Loading the certificate in a browser

Become a VO member

Get to work

One year later. . .

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 2

Page 3: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

What me worry?Enabling Grids for E-sciencE

Security is like wearing seatbelts. Most of the time they’re a mildnuisance. . .

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 3

Page 4: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

What me worry?Enabling Grids for E-sciencE

Security is like wearing seatbelts. Most of the time they’re a mildnuisance. . .

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 3

Page 5: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

What me worry IIEnabling Grids for E-sciencE

Computer networks need security too!

• computer break-in

• privacy or confidentiality breach

• identity theft

• botnets

• credit card fraud

• child porn

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 4

Page 6: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

What me worry IIEnabling Grids for E-sciencE

Computer networks need security too!

• computer break-in

• privacy or confidentiality breach

• identity theft

• botnets

• credit card fraud

• child porn

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 4

Page 7: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

The A’spects of computer securityEnabling Grids for E-sciencE

Brought to you by the letter A:

• Authentication

• Authorization

• Accounting

• Auditing

Your first and foremost worry is authentication

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 5

Page 8: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Knowing who to trustEnabling Grids for E-sciencE

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 6

Page 9: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Number of trust relationsEnabling Grids for E-sciencE

#domains = 7

A

B

C

D

E

F

G

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 7

Page 10: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Number of trust relationsEnabling Grids for E-sciencE

#domains = 13

A

B

CD

E

F

G

H

IJ

K

L

M

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 7

Page 11: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Number of trust relationsEnabling Grids for E-sciencE

#domains = 26

A

B

C

D

E

FG

H

I

J

K

L

M

N

O

P

Q

R

S T

U

V

W

X

Y

Z

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 7

Page 12: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Digital CertificatesEnabling Grids for E-sciencE

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 8

Page 13: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Knowing who to trustEnabling Grids for E-sciencE

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 9

Page 14: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Trusted third partiesEnabling Grids for E-sciencE

• All research grid infrastructures share the samebase set of trusted third parties (‘CAs’)

• There is typically one in each country

• The credentials they issue are comparable in quality

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 10

Page 15: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

How to obtain a certificateEnabling Grids for E-sciencE

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 11

Page 16: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Request a certificateEnabling Grids for E-sciencE

Go to https://ca.dutchgrid.nl/ and fill out the entire form.

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 12

Page 17: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Request a certificateEnabling Grids for E-sciencE

Verify your data and continue

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 12

Page 18: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Request a certificateEnabling Grids for E-sciencE

Download the application form (PDF) and print it.Download the script and run it!

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 12

Page 19: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Running the scriptEnabling Grids for E-sciencE

sh makerequest.shGenerating a 1024 bit RSA private key...++++++...........++++++writing new private key to ’./userkey.pem’Enter PEM pass phrase: *****Verifying - Enter PEM pass phrase: *****-----Mailing [CA:medium] certificate request to the DutchGrid CAPlease preserve your private key, named ./userkey.pemThis file is needed alongside with the public key you submitted tothe certification authority.

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 13

Page 20: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Running the scriptEnabling Grids for E-sciencE

In the authentication process by the CA, you may be asked toprovide a proof-of-possession of the keypair you submitted. Thismay involve you providing part of your public keydata displayedbelow:

B811761282B5AC7FCC59DE7B4381B879DD02FB6280A20DB2B42F3EC4AEDF36A24E0A1D7388D58EDB2074484DF7B407B77A1C30FF825C15C3A7DFD659F72815DD90AC59067A85D23F52005C05C3DD24F7E1BB4FAD134B8FDB1A1F064AE29DB38169A03ACF1E0C99E6DE0F88CE1DCE87D5836F157194FFA193EDE5EBCB260FD40D

*** Fill in the registration form now, and go to your RA.

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 13

Page 21: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Running the scriptEnabling Grids for E-sciencE

The script leaves a number of files:-rw-r--r-- userrequest.pem generated request-rw-r--r-- certreq10915.txt the same, plus extra info-r-------- userkey.pem this is your secret key!-rw-r--r-- certreq10915.cnf harmless/useless

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 13

Page 22: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Upload the requestEnabling Grids for E-sciencE

• If the mail fails, upload the request tohttp://ra.dutchgrid.nl/ra/public/submit.• Paste the text from certreqXXXXX.txt

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 14

Page 23: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Load certificate in browserEnabling Grids for E-sciencE

Convert your certificate to PKCS#12 format:

openssl pkcs12 -export \-in ~/.globus/usercert.pem \-inkey ~/.globus/userkey.pem \-out user.p12 \-name ’Joe Smith’

Use the “certificate store” of your browser

• Windows: double-click on the .p12 file

• Explorer: Internet Options-tab: Content

• Firefox: Preferences → advanced → encryption → certificates→ import

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 15

Page 24: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Apply for VO membershipEnabling Grids for E-sciencE

Go to https://voms.grid.sara.nl:8443/vomses and pick yourfavourite VO!

(Is it in this list?)

astron astrop dans emutd esr lofar lsgrid magic ncfomegac phicos pvier tutor vldbi vledut vlefi vlemedvlibu scia

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 16

Page 25: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Create a proxyEnabling Grids for E-sciencE

A VOMS proxy. . .

• is a ‘delegate’ of your real certificate

• is created by voms-proxy-init -voms 〈vo-name〉• has no passphrase

• proves your vo membership

• is automatically used by the grid tools

• has a lifetime of 12 hours. Hurry up!

Other useful commands:

• voms-proxy-info -all

• voms-proxy-destroy

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 17

Page 26: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Renew your certificateEnabling Grids for E-sciencE

• Your certificate has a validity of 12 months, then you willhave to renew

– you get an email warning 4 weeks in advance– download the script from the web site

(http://ca.dutchgrid.nl/rekey)– run it on a Unix system with OpenSSL installed.

• The script generates a signed email message

– send the signed message to [email protected]– do not modify the message in any way, preferably use

sendmail -t < newrequest.txt as the script tells you atthe end

– your Registration Authority will be contacted for confirmation– after response from the RA, a new certificate is mailed to you

• When you get the new certificate, remember to also put thenewkey.pem file in the proper place!

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 18

Page 27: Grid Security 101 - Nikhefdennisvd/tut08_security101.pdf · 2008. 11. 13. · Grid Security 101 Dennis van Dok Information Society and media EGEE-III INFSO-RI-222667 Grid Tutorial

Thanks for your attention. . .Enabling Grids for E-sciencE

. . . You’ve been a wonderfull audience.

EGEE-III INFSO-RI-222667 Grid Tutorial 2008 19