Home > Ask the Security Experts > Application Security Questions & Answers > Securing public key transport
Ask The Security Expert: Questions & Answers
EMAIL THIS

Securing public key transport

Michael Cobb EXPERT RESPONSE FROM: Michael Cobb

Pose a Question
Other Security Categories
Meet all Security Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 08 August 2005
Do I need a digital certificate to use HTTP over SSL? If the answer is yes, why have I been allowed to access secure sites without one? If the answer is no, how does the client send its public key to the secure server?

>
EXPERT RESPONSE

While some sites may require a user to present a digital certificate before they release sensitive information, your computer doesn't need one to access a site. However, the Web server does. To answer the second part of your question, let's take a look at how a secure session, using digital certificates and SSL works.

When your computer, also known as the client, uses the HTTPS protocol to request a secure Web page, it initiates a secure session with the Web site by sending a Client Hello message to the server. This message contains information about which encryption and compression algorithms the client supports and a pseudorandom number.

The Web server responds with a Server Hello message, which contains information about server supported algorithms and a pseudorandom number. The server chooses the strongest cipher that both the client and server support. The server also sends the client a digital certificate. The server must always present its certificate to the client, but if the server doesn't require client authentication the client is not required to send a certificate. The server will then send a Server Hello Done Message, indicating it is finished and is waiting for the client's response.

Once the client receives the server's message, it checks the certification hierarchy of the server's certificate. The server's certificate contains its public key, which the client uses to authenticate the server and verify that the name of the server in the certificate matches the name the client used to start the session. For example, if the user enters https://www.secureserver.com for the URL, the certificate should contain a subject name of www.secureserver.com or *.secureserver.com.

The client then computes a premastered secret using the two random values that were generated during the Client and Server Hello messages. This premastered secret is encrypted using the public key from the server's certificate and is sent to the server in a a Client Key Exchange message. If the server can decrypt this, the client is assured that the server has the correct private key. This step is crucial to prove the authenticity of the server. Only the server with the correct private key can decrypt this data and continue the protocol negotiation.

This handshake sequence securely exchanges data that is then used by both the client and the server to calculate a Master Secret key. Because both the server and the client can calculate the Master Secret key, it does not need to be exchanged. The server can now respond to the client with a request to begin communicating using the established keys and parameters.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Application Security
Protecting exposed servers from Google hacks (and Google 'dorks')
Which automated quality assurance tools can be used to test software?
Has proof-of-concept mobile device malware translated into any meaningful attacks?
How to test the security of personal details submitted to a website
Is security improved when the number of Internet gateways is reduced?
Are Internet cafe users' email credentials at risk?
Which operating system can best secure an FTP site?
Will firewall technology have to adapt to applications that use port 80?
How secure is a mobile phone platform that has an open source framework?
What ports should be opened and closed when IPsec filters are implemented?

Email Encryption (SMIME & PGP)
Tumbleweed merger seen as a negative for email security customers
Secure messaging complications result in limited protection
Information security book excerpts and reviews
ING hopes to cut phishing attacks with encryption software
Companies still monitoring email manually, survey finds
Should iPhone email be sent without SSL encryption?
Can the symmetric encryption algorithm for S/MIME messages be changed?
Security vendor Postini acquired by Google
Which email encryption products can be released internationally?
What are the pros and cons of using an email encryption gateway?
Email Encryption (SMIME & PGP) Research

SSL & TLS
Which operating system can best secure an FTP site?
If email attachments are sent via SSL will they be encrypted?
Transit Safety
Yahoo fixes SSL flaw in Business E-mail
Quiz: Web application threats and vulnerabilities
Secure data transmission methods
Apple patches 13 flaws in Mac OS X
Security Bytes: IE7 defenses revealed
How to configure an FTP server with SSL
How to reduce risks with URL filtering

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
asymmetric cryptography  (SearchSecurity.com)
cryptographic checksum  (SearchSecurity.com)
data encryption/decryption IC  (SearchSecurity.com)
deniable encryption  (SearchSecurity.com)
elliptical curve cryptography  (SearchSecurity.com)
Escrowed Encryption Standard  (SearchSecurity.com)
MPPE  (SearchSecurity.com)
Quiz: Cryptography  (SearchSecurity.com)
session key  (SearchSecurity.com)
Twofish  (SearchSecurity.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

TechTarget Security Media
Information Security View this month\\'s issue and subscribe today.
Information Security Decisions Apply online for free conference admission.
SearchSecurity.com
HomeNewsMagazineWebcastsWhite PapersLearningAdviceTopicsEventsAbout Us

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts