LinuxDevCenter.com

oreilly.comSafari Books Online.Conferences.

We've expanded our Linux news coverage and improved our search! Search for all things Linux across O'Reilly!

Search
Search Tips

advertisement

Listen Print Discuss Subscribe to Linux Subscribe to Newsletters
Linux Server Hacks

Distributing Your CA to Client Browsers

by Rob Flickenger, author of Linux Server Hacks
02/20/2003

Installing your shiny new Certificate Authority certificate to client browsers is just a click away

In order for your client browsers to trust your new Certificate Authority, they must be configured to accept your CA's public key. There are two possible formats that browsers will accept for new certificate authority certs: pem and der. You can generate a der from your existing pem with a single OpenSSL command:

openssl x509 -in demoCA/cacert.pem -outform DER -out cacert.der

Also, add the following line to your conf/mime.types file in your Apache installation:

application/x-x509-ca-cert      der pem crt

Now restart Apache for the change to take effect. You should now be able to place both the cacert.der and demoCA/cacert.pem files anywhere on your web server, and have clients install the new cert by simply clicking on either link.

Early versions of Netscape expected pem format, but recent versions will accept either. Internet Explorer is just the opposite (early IE would accept only der format, but recent versions will take both). Other browsers will generally accept either format.

A dialog box will open in your browser when you download the new Certificate Authority, asking if you'd like to continue. Accept the certificate, and that's all there is to it. Now SSL certs that are signed by your CA will be accepted without warning the user.

Accepted CA

Keep in mind that Certificate Authorities aren't to be taken lightly. If you accept a new CA in your browser, you had better trust it completely--a mischevious CA manager could sign all sorts of certs that you should never trust, but your browser would never complain (since you claimed to trust the CA when you imported it). Be very careful about who you extend your trust to when using SSL-enabled browsers. It's worth looking around in the CA cache that ships with your browser to see exactly who you trust by default.

For example, did you know that AOL/Time Warner has its own CA? How about GTE? Or Visa? CA certificates for all of these entities (and many others) ship with Netscape 7.0 for Linux, and are all trusted authorities for web sites, email, and application add-ons, by default. Keep this in mind when browsing SSL-enabled sites: if any one of the default authorities have signed online content, then your browser will trust it without requiring operator acknowledgment.

Imported

If you value your browser's security (and, by extension, the security of your client machine), then make it a point to review your trusted CA relationships.

Resources

For more on OpenSSL, creating Certificate Authorities, and my book on Linux Hacks, check out these resources:
  • OpenSSL FAQ

  • Creating Your Own CA

  • Linux Server Hacks

Rob Flickenger is a long time supporter of FreeNetworks and DIY networking. Rob is the author of three O'Reilly books: Building Wireless Community Networks, Linux Server Hacks, and Wireless Hacks.

Linux Server Hacks

Related Reading

Linux Server Hacks
100 Industrial-Strength Tips and Tools
By Rob Flickenger


Read Online--Safari
Search this book on Safari:
 

Code Fragments only

O'Reilly & Associates recently released (January 2003)Linux Server Hacks.

  • Read sample hacks from this book on hacks.oreilly.com.

  • You can also look at the Table of Contents, the Index, and the full description of the book.

  • For more information, or to order the book, click here.


Return to the Linux DevCenter.


Have you distributed your own Certificate Authority to a client's browser? Tell us about it.
You must be logged in to the O'Reilly Network to post a talkback.
Post Comment
Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Free Certificate Authority...
    2003-09-28 23:58:53  anonymous2 [Reply | View]

    Rather then just build my own CA, I went on to create a complete trust model to control the way things happen, people that are more trusted have additional benefits, such as longer expiries, names on email certs etc...

    http://www.CAcert.org
  • A question
    2003-03-26 14:02:44  anonymous2 [Reply | View]

    Do most web browsers allow users to check which CAs are trusted? Also, is there any means for a non-profit organization get free 'widely trusted' certificates?
  • IMAPS option...
    2003-03-19 18:25:33  anonymous2 [Reply | View]

    If you've already setup an IMAPS (IMAP over SSL) then you can try pointing the web browser to http://server_name:993/ and accept the cert. Just another option...


Tagged Articles

Post to del.icio.us

This article has been tagged:

ssl

Articles that share the tag ssl:

Creating Your Own CA (39 tags)

A Day in the Life of #Apache (11 tags)

Using SSL with Non-Blocking IO (4 tags)

Distributing Your CA to Client Browsers (4 tags)

Apache and SSL (3 tags)

View All

certificate

Articles that share the tag certificate:

Creating Your Own CA (21 tags)

Distributing Your CA to Client Browsers (4 tags)

View All

security

Articles that share the tag security:

Secure RSS Syndication (169 tags)

Google Your Site For Security Vulnerabilities (74 tags)

Building a Desktop Firewall (64 tags)

The Next 50 Years of Computer Security: An Interview with Alan Cox (42 tags)

Protect Yourself from WiFi Snoops (40 tags)

View All

apache

Articles that share the tag apache:

Multiuser Subversion (38 tags)

Introducing LAMP Tuning Techniques (32 tags)

Apache Web-Serving with Mac OS X: Part 1 (26 tags)

Introducing mod_security (25 tags)

Location, Location, Location: Tips for Storing Web Site Files (22 tags)

View All

web

Articles that share the tag web:

What Is Web 2.0 (2258 tags)

Rolling with Ruby on Rails (686 tags)

Very Dynamic Web Interfaces (362 tags)

Ajax on Rails (183 tags)

A Simpler Ajax Path (136 tags)

View All

Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

O'Reilly Media

©2009, O'Reilly Media, Inc.
(707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
About O'Reilly
Academic Solutions
Authors
Contacts
Customer Service
Jobs
Newsletters
O'Reilly Labs
Press Room
Privacy Policy
RSS Feeds
Terms of Service
User Groups
Writing for O'Reilly
Content Archive
Business Technology
Computer Technology
Google
Microsoft
Mobile
Network
Operating System
Digital Photography
Programming
Software
Web
Web Design
More O'Reilly Sites
O'Reilly Radar
Ignite
Tools of Change for Publishing
Digital Media
Inside iPhone
O'Reilly FYI
makezine.com
craftzine.com
hackszine.com
perl.com
xml.com

Partner Sites
InsideRIA
java.net
O'Reilly Insights on Forbes.com