+ All Categories
Home > Documents > Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And...

Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And...

Date post: 19-Dec-2015
Category:
View: 214 times
Download: 0 times
Share this document with a friend
Popular Tags:
47
Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...
Transcript
Page 1: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Certificates, Browsers & You:What is all this certificate crud?

Frank J. NagyGod of Kerberos

AndAssociates...

Page 2: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Certificate Talks

• Introduction and Theory

• Using get-cert (KCA certificate) under Linux

• Using get-cert (KCA certificate) under OS X

• Using Network Identity Manager for Windows

• More Theory

Page 3: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

• Public key encryption, Public Key Infrastructure (PKI)

• Digital Signature

• {Digital} Certificate

• X.509 Standard (CCITT) and X.500 Naming Conventions

• Distinguished and Common Names

• Certificate Authority (CA)

• CA Certificate

• Chain of Trust

• Secure Socket Layer (SSL)

Page 4: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Public Key Encryption

Bob

Pat Doug Susan

Bob's Co-workers:

Anyone can get Bob's Public Key, but Bob keeps his Private Key to himself

Bob's keys:

(public)

(private)

"Hey Bob, howabout lunch at TacoBell. I hear theyhave free refills!"

HNFmsEm6UnBejhhyCGKOKJuxhiygSBCEiC0QYIh/Hn3xgiKBcyLK1UcYiYlxx2lCFHDC/A

HNFmsEm6UnBejhhyCGKOKJuxhiygSBCEiC0QYIh/Hn3xgiKBcyLK1UcYiYlxx2lCFHDC/A

HNFmsEm6UnBejhhyCGKOKJuxhiygSBCEiC0QYIh/Hn3xgiKBcyLK1UcYiYlxx2lCFHDC/A

"Hey Bob, howabout lunch at TacoBell. I hear theyhave free refills!"

Page 5: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Digital Signature

Page 6: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Digital Certificate

Bob Info: Name Department Cubical Number

Certificate Info: Expiration Date Serial Number

Bob's Public Key:

CertificateAuthority

CA Private Key:

Page 7: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Look Inside the Certificate

Subject Information:- Organization- Name- Email (optional)

Certificate Information:- Issuer (CA) Name- Validity dates (begin:end)- Serial Number- Usage flags

Subject's Public Key

Hash Data

Signature (byCA Private Key)

Page 8: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Some Certificate Uses

• Signing messages

– Identify author

– Make message tamper-evident\

• Identify host for SSL connection

• Web site authentication (common KCA usage)

• Others

Page 9: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

And now for something...

Completely specific:

The HowTo talks on getting KCA certificatesunder Linux, Mac OS X and Windows

Page 10: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Certificate Parts

• Subject (of the certificate)

• Valid and Expiration Dates

• Serial Number

• Public Key of the Subject

• Issuer of this certificate

• Hash and signature encoding algorithms

• Signed by CA Certificate private key

• Extensions (E-mail address, etc.)

Page 11: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Certificate Parts #2

• Distinguished Names (DN) and Common Names (CN)

– /DC=org/DC=doegrids/OU=People/CN=Frank J. Nagy 442270

– /DC=org/DC=DOEGrids/OU=Certificate Authorities/CN=DOEGrids CA 1

– /DC=gov/DC=fnal/O=Fermilab/OU=Certificate Authorities/CN=Kerberized CA HSM

– /DC=gov/DC=fnal/O=Fermilab/OU=People/CN=Frank J. Nagy/CN=UID:nagy

• Signature makes certificate tamper-evident

Page 12: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Types of Certificates

• Long-term personal certificates

– DOEGrids, Thawte, Verisign, etc.

• Short-term personal certificates

– Fermilab KCA

• Host/Service certificates

– For a particular node

– *.fnal.gov

Page 13: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Fermilab Kerberos CA (KCA)

• Get a certificate based on Kerberos credentials

• Tied to the Fermilab Infrastructure

– KCA uid=nagy is user name in CNAS, etc.

• Short-term certificate, valid for maximum lifetime (7 days) of the Kerberos ticket

Page 14: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Certificate Authority

• Validates identity

– KCA relies on your having Kerberos credentials

• Issues certificates signed with CA private key

• Identified by Certificate Authority Certificate

– CA Certificate needed to valid issued certificate

• Maintains Certificate Revocation List (CRL)

Page 15: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Trust Chain and Root CA

Root CA

SubordinateCA

End User

SubordinateCA

Page 16: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Further Reading

• What is a Digital Signature?

– http://www.youdzone.com/signature.html

– The source of some of the images in my talk.

• OpenSSL Certificate Cookbook

– Certificate Management and Installation with OpenSSL

• http://gagravarr.org/writing/openssl-certs/index.shtml

– OpenSSL Certificate Cookbook

• http://www.amigodocarro.com/html/ssl_cook.html

• Wikipedia: Public key certificate

– http://en.wikipedia.org/wiki/Public_key_certificate

Page 17: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

KCA Certificates for Linux

Firefox

How to import KCA Certificates in

Scientific Linux Fermi Firefox

Connie Sieh

[email protected]

Page 18: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – Try to access a page

Page 19: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – Try to access a page

Page 20: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – view certificates

Page 21: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – view certificates

Page 22: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – View Certificates

Page 23: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – Your certificates before

Page 24: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – STOP FIREFOX

Page 25: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – kinit <username>

Page 26: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – getcert waiting for user

Page 27: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – getcert done

Page 28: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – after getcert

Page 29: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – view certs after

Page 30: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Firefox – have cert – page loads

Page 31: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Computer Security Awareness Day September 29, 2009

David Schuman/ CD Desktop Support

Page 32: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

• Where is it located• How do I renew certificate• Identity ([email protected])• How do I import the certificate•Firefox versus Internet Explorer

Computer Security Awareness Day September 29, 2009

Page 33: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Computer Security Awareness Day September 29, 2009

Page 34: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Computer Security Awareness Day September 29, 2009

Page 35: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Computer Security Awareness Day September 29, 2009

Page 36: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Computer Security Awareness Day September 29, 2009

Page 37: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Computer Security Awareness Day September 29, 2009

Page 38: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

http://computing.fnal.gov/software/netidmgr/netidmgr-faq.html#PopUpCredentia

Computer Security Awareness Day September 29, 2009

Page 39: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Computer Security Awareness Day September 29, 2009

Page 40: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Computer Security Awareness Day September 29, 2009

Page 41: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Questions!

Computer Security Awareness Day September 29, 2009

Page 42: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Ben SegbawuSeptember 29 2009

Page 43: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Location Where can I get the get-cert script Where should I put the get-cert script

The Get Cert Script Options Username

RunGetCert App

Page 44: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Where to get and Where to put▪ http://security.fnal.gov/tools/index.html▪ Unzip and un-tar to /usr/bin/get-cert/

Page 45: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Options▪ -i (lower case I ) imports into firefox▪ -k imports into keychain

Username▪ if your user name is not the same as your

account name you will encounter an error▪ Work around is to modify the KCA script or

better yet create an account name on your OSX computer that matches your user name.

Page 46: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

An apple script “GUI” front end that runs the get-cert script

Page 47: Certificates, Browsers & You: What is all this certificate crud? Frank J. Nagy God of Kerberos And Associates...

Contact the Service Desk for support at http://servicedesk.fnal.gov


Recommended