Re: Help! I'm trying to understand PKI - especially CA's role

From: Wimbo (wimbo_online_at__REMOVETHIS_hotmail.com)
Date: 10/08/04


Date: Fri, 08 Oct 2004 18:41:39 +0200

walterbyrd wrote:
> Below is what I understand so far. I know that at some point, the
> sender's public key is sent to a CA, and the CA sends back a digital
> certificate. Then the sender send the digital certificate to the
> reciever.
>
> But I'm not sure where that takes place. For example, does the sender
> create the digital signiture, or does the CA?
>
> ------------------------
>
> Process to send a message
> - start with clear test message
> - sender uses hash function is used to make Message Digest (MD)
> - sender uses sender's private key to encrypt MD
> - this creates a Digital Signiture
> - sender encrypts the message with recivers public key
> - encrypted MD (Digital Signiture) is sent with the encrypted message
> - reciever uses recievers private key to decrypt message
> - this verifies confidentiality
> - only reciever's private key can open message
> - reciever uses sender's public key to decrypt MD
> - this verifies authenticity
> - only sender's private key could have encrypted the MD

Basic operations:

Alice send her public key to a CA for certification

The CA verifies the credentials and signs the public key with the private
key of the CA and sends it back to Alice. (The verification credentials
depend on the requested certificate class. Class 1 certificates are only
validated by e.g. a valid credit card number. The higher the class, the
more personal it gets. With a class 3 certificate the CA knows for sure
that you are the person you say you are.)

Most CA's have the possiblitiy of storing the certificate in a public
accessible LDAP, so that the rest of the world has access to the users
certificate (for encrypting messages or to verifiy digital signatures).

If Alice wants to encrypt a message to Bob she needs to get the certificate
(public key) of Bob, this can be done by retrieving the certificate from
the LDAP (mentioned earlier) or by requesting a signed e-mail from Bob.
Microsoft e-mail application send the certificate along with digitally
signed messages. So that the receipient can validate the signature with the
attached certificate. The same certificate can be used to encrypt messages
in the future.

The only challenge is to know for sure that the certificate belongs to Bob
and not to Mr Man-in-the-Middle. This is possible with Class 1
certificates, but is nearly impossible for class 3 certificates.

If Alice wants to make sure that the message doesn't change during transit,
she signes the message with her private key. Bob can verify this by using
the certificate (public key) of Alice.

So the only thing a CA does is create certificates by signing public keys.
After that the CA is only used to verifiy if a certificate has been revoked
(CRL checking). The CA will be necessary for renewing a certificate after
one year (2 year certificates are becoming more and more common nowadays).

Wimbo



Relevant Pages

  • Re: Multi-layered PKI implementation
    ... Bob is an online retailer and Eve is a nasty ... Alice -> Bob: I want to by a shiny wotsit from you for 500 monkeys. ... my public key is 12345. ... Sure, my public key is 12345, and here is my certificate ...
    (Debian-User)
  • Re: Multi-layered PKI implementation
    ... Bob is an online retailer and Eve is a nasty ... Alice -> Bob: I want to by a shiny wotsit from you for 500 monkeys. ... my public key is 12345. ... Sure, my public key is 12345, and here is my certificate ...
    (Debian-User)
  • Re: TLS-certificates and interoperability-issues sendmail / Exchange / postfix ..
    ... > to assert that certificate validation doesn't happen, ... this trusted public key store contains public keys of that the ... signed by the CA. this digital certificate is returned to the "key ...
    (comp.security.unix)
  • Re: What is a Certificate?
    ... what exactly is a certificate? ... > I've read that it is a private key / public key pair. ... register public keys of something called "certification authorities" ... An example is the SSL domain name digital certificate scenario. ...
    (comp.security.misc)
  • Re: Public Encryption Key
    ... encrypt the message with the recipient's public key (or ... the two can be combined by: first do a digital signature of the ... certificate, certifying the validity of the assertion (ex: ...
    (comp.security.misc)