TweetFollow Us on Twitter

Demystifying PKI: Enterprise Environments

Volume Number: 25
Issue Number: 08
Column Tag: Security

Demystifying PKI: Enterprise Environments

A Series of Articles and How-Tos about PKI technology in the OS X environment - Part 3

By Michele (Mike) Hjörleifsson

Last month we deployed a Certificate Authority using the built in tools on OS X Leopard (client or server). While this simple routine works well for smaller environments, it does not scale well. And, more importantly, it does not provide some key features an administrator would want to implement in a larger environment.

For instance, say you issued a certificate for a user to sign and encrypt their email. Later, that user has moved on to another company. How do you ensure the user isn't still using that certificate to sign emails as authentic your company emails? This is a key component in a certificate system and it is called revocation. Certificate revocation is typically performed in one of two ways. Certificate revocation lists (CRLs) are the traditional way of maintaining a list of which certificates are no longer valid. CRLs were provided or distributed to resources that validated the certificates. This method proved a bit inefficient and "offline" so a newer technology called Online Certificate Status Protocol (OCSP) was developed to allow for online validation and revocation of certificates in a more dynamic environment.

OpenSSL, which the internal OS X Certificate Assistant utilizes, though handy (and maybe a little clunky) isn't built for certificate management for medium to large infrastructures, nor does it provide effective mechanisms for validation of certificates for more than just website related uses. It does provide a quick and dirty way to create certificate requests, create certificates, sign and encrypt documents on a small scale. However, when you need to manage dozens if not hundreds or thousands of certificates, OpenSSL has major limitations, as it is not designed to be a full-fledged CA with all the associated management functionality. This limits the ability of administrators to effectively deploy a powerful set of digital signature and encryption tools readily and now freely available to them. Finally, OpenSSL has experienced some setbacks on the security-vulnerability-an-implementation front, casting additional shadows on utilizing it in mission critical and larger deployments.

As previously discussed, there are several roles that can be implemented in a PKI infrastructure even if only on one machine. This is a crucial concept and worth a quick review. The most recognized of the roles is the CA: an authority in a network that issues and manages security credentials and public keys for message encryption. As part of a public key infrastructure (PKI), a CA works with a registration authority (RA) to verify information provided by the requestor of a digital certificate. If the RA verifies the requestor's information, the CA can then issue a certificate. Depending on the public key infrastructure implementation, the certificate includes the owner's public key, the expiration date of the certificate, the owner's name, and other information about the public key owner.

An RA is an authority in a network that verifies user requests for a digital certificate and then tells the CA to issue it. RAs are part of a PKI a networked system that enables companies and users to exchange information and money safely and securely. The digital certificate contains a public key that is used to encrypt and decrypt messages and digital signatures.

Validation Authority (VA) offers a comprehensive, scalable, and reliable framework for real-time validation of digital certificates. In most implementations, one or more of the authorities will access ancillary information in an LDAP (lightweight directory access protocol) based directory service such as OpenLDAP, Open Directory, and Active Directory to tie a digital identity to a username or named account.

OpenSSL does not provide a user-friendly, or even administrator-friendly way to accomplish the RA and VA tasks and provides a basic level of CA functionality, which does not scale. More importantly, OpenSSL doesn't provide a straightforward OCSP function, which has become more and more of an issue. Once you issue a certificate, you will want these other services. When it comes time to move from a single server or small group of servers with just SSL certificates deployed to a more leveraged use of PKI for larger numbers of servers and other PKI-based technologies like digital signing, smart cards and encryption, it's time to look at a properly designed certificate authority infrastructure.

So how do you get started? We'll first we need to pick an enterprise certificate authority to use in our environment. This begs yet another question, how do we pick an enterprise certificate authority for our environment?

There are several commercial options and open source alternatives; let's give them each a quick review. Some of the players in the CA software landscape offer an optional managed service PKI that is designed so the manufacturer hosts the infrastructure and the client has web-based access to this system typically over a secure channel like SSL/TLS. While this option may be attractive to some, it has some implications to be aware of. First, your certificates will be stored in their facility on their equipment; this may or may not be acceptable to your project. Second, these services are typically designed for high volume customers and can bear a significant monthly recurring cost. Last, but not least, they may or may not provide the types of issuance services you need. For instance, one vendor may provide SSL certificate issuance and code-signing, but neither digital signature nor smart card identity capabilities. Among these vendors are VeriSign, Thawte, Entrust, Verizon, OpenTrust, ChosenSecurity, and each provide a different set of and different levels to there managed services.

Assuming you want to build your own PKI infrastructure your options are pretty limited on the Mac OS X Server platform. As such, I will point out the market leaders in the commercial CA space and the open source alternatives. Arguably, the industry leaders in the commercial CA marketspace are RSA, Entrust, Information Security Corp and Ascertia.

RSAs product is called RSA Certificate Manager or Keon. RSA is recognized as a leader in the PKI and authentication space. Unfortunately, their product only runs on Windows, RedHat and Solaris, not Mac OS X. Entrust's product is called Entrust Authority Security Manager and is designed to run on Windows Server, Solaris, HP-UX and IBM AIX. Information Security Corporation's CA called CertCA seems to be primarily targeted at U.S. government accounts (based on their client list from their website) and has the features expected in a full-scale commercial CA product. It is based on Java and in theory could work on Mac OS X but their website does not indicate that it is supported—only Windows and RedHat are supported. Ascertia's product, called TrustFinder CA, is a full-fledged certificate authority with all the functionality you would expect in an enterprise level product; it is designed to run on Windows Server, Solaris and Linux.

That doesn't leave a Mac OS X server administrator with a lot of choices to run a CA natively, so, lets take a look at our options. Option one is to run one of these servers in a virtual machine using Parallels Server or VMWare Fusion. This is a viable option though not a native OS X solution. Another option is to run OpenCA or Digi-CA (both are based on OpenCA) in a virtual machine. Digi-CA doesn't require any hard drive space and runs as a standalone bootable CD and is quasi-open source. Another option is to put one of these other operating systems into your environment, resulting in a little more administrative overhead.

Don't lose hope, there is an open source project called Enterprise Java Beans Certificate Authority (EJBCA) which runs using Enterprise Java and will run natively on the OS X platform. EJBCA is supported by a corporate entity called PrimeKey Solutions located in Stockholm, Sweden. EJBCA is similar to MySQL in that the software is provided at no cost, but PrimeKey is there to provide support, training and customization services for customers willing to pay for those services. Disclaimer: I oversaw the creation of the Mac OS X installer for EJBCA but I am not an employee of PrimeKey and as such, am not providing a biased view.

EJBCA, the largest open source CA project on SourceForge, is mature and platform agnostic making it a solid choice for managing certificates on the OS X platform. Add this to the fact that it is supported by a corporate entity available for consistent support and custom programming, EJBCA makes a good choice for the Mac OS X administrator. There are many "how to" and installation documents on the EJBCA website (ejbca.org) for deploying EJBCA and associated projects such as signserver.org and hardtokenmanagement.org for deploying specific PKI functionality for signing email, documents and smart cards.

You can download the EJBCA Mac OS X disk image (dmg) from ejbca.org the disk image will automount (double-click it if you have disabled auto-open of 'safe' downloads), and then just double-click and launch the installer. Currently, only Leopard Server on Intel is supported. OS X Leopard 'client,' Tiger and PPC supported installer development will depend on community response and demand. The install is very straight forward and installs the underlying jBoss and other required components, a good how-to is posted on their website, though none is really needed: the installer uses a true OS X meta-package.

With EJBCA installed you can refer to their extensive how-tos and documentation on administering your CA, all of which, thankfully can be done from their web interface, so you can get right to issuing your certificates.

So we have discussed various ways to issue certificates and keys for different purposes but what happens when an employee or member of an organization leaves or an entire organization goes defunct? How do we check to ensure the validity of their credentials? Enter certificate revocation lists (CRL) and the newer online certificate status protocol (OCSP).

CRLs are a list of certificate serial numbers that are no longer valid. These lists are distributed or made public so that outside organizations can verify the validity of a certificate. CRLs maintain one of two states for a certificate: hold or revoked. The revoked state is pretty obvious and is an irreversible state that tells outside entities to no longer trust the validity of that certificate. This can happen for several reasons: the CA may have become compromised and therefore had to reissue a set of or all certificates; the individual it was issued to is no longer employed or associated with the issuer; or the organization issued a certificate provided false information to attain a certificate and was found out and their certificate revoked. The most common reason is that a user lost their private certificate and needs to have a new certificate generated, voiding the original certificate. The hold state, on the other hand, is a reversible situation and is commonly used when an individual is on leave for an extended period of time, or thought the key was lost and then found it and has shown it was not compromised or accessed by unauthorized personnel.

A CRL is generated and published periodically, after a clearly defined timeframe, usually every calendar day. A CRL can also be published immediately after a certificate has been revoked, which is a very common situation in practice. The CRL is always issued by the CA that issued the corresponding certificates. All CRLs have a lifetime during which they are valid; this timeframe is often 24 hours or less. During a CRL's validity period, it may be consulted by a PKI-enabled application to verify a certificate prior to use.

To prevent forged or spoofed CRLs, CRLs usually carry a digital signature associated with the CA by which they are published. To validate a specific CRL prior to relying on it, the certificate of its corresponding CA is needed, which can usually be found in a public directory.

This method works fine but has its limitations. OCSP was developed to provide a more online and robust system to verify the validity of certificates in an online and real-time fashion. Inherently, OCSP servers respond to validity requests and are most often referred to as OCSP responders. OCSP requests and responses do not contain as much information as a CRL and as such can be faster and more responsive than a CRL list, which is well suited to high volume transaction sites.

OCSP responders typically use the HTTP protocol as the mechanism for the request and response. OCSP discloses to the responder that a particular network host used a particular certificate at a particular time. The entire CRL is not disclosed making it more efficient, but also more open as it does not validate the identity of the requestor because this is typically seen as unnecessary. Here is an example of an OCSP transaction from wikipedia.org that illustrates the process in simple terms:

1. Alice and Bob have public key certificates issued by Ivan, the CA.

2. Alice wishes to perform a transaction with Bob and sends him her public key certificate.

3. Bob, concerned that Alice's private key may have been compromised, creates an 'OCSP request' that contains Alice's certificate serial number and sends it to Ivan.

4. Ivan's OCSP responder looks up the revocation status of Alice's certificate (using the certificate serial number Bob provided) in his own CA database. If Alice's private key had been compromised, this is the only trusted location at which the compromise would be recorded.

5. Ivan's OCSP responder confirms that Alice's certificate is still OK, and returns a signed, successful 'OCSP response' to Bob.

6. Bob cryptographically verifies the signed response. He has Ivan's public key on hand (Ivan is a trusted responder and ensures that it was produced recently.

7. Bob completes the transaction with Alice.

This may seem a little much for a simple transaction such as purchasing a book on amazon.com but don't let this fool you. These 7 steps happen in seconds and are typically handled by your browser or other software used to initiate a transaction, making them transparent to you.

OCSP responders are commonly referred to as the validation authority (VA), though some commercial manufacturers produce VAs that have additional functionality beyond the basic OCSP validation transaction.

Hardware Extensions

Hardware Security Module (HSM) – a device used to generate cryptographic key pairs, keep the private key secure and generate digital signatures. It is widely used to secure the root key in a PKI system. Using the PKCS#11 programming interface, applications send a digest of the document to the HSM, which encrypts it with the private key, creating the digital signature. HSMs can be very sophisticated in order to keep intruders from gaining access to the private key." (source: http://dictionary.zdnet.com/definition/HSM.html)

This is a pretty technical sounding and obscure definition to the non-initiated PKI traveler, so let's simplify.

An HSM serves two primary purposes, which are stated in ZDNet's definition above. An HSM acts like a computational safe, protecting your private keys from prying eyes and preventing duplication through a hardware scheme that is usually unique to the manufacturer. Secondly, HSMs are designed specifically for this purpose so they can offload cryptographic mathematics from your servers (which can get very computationally intense in high volume installations) and provide better randomness when generating keys. Randomness is important, as it is the basis for ensuring the strength of the cryptography used to generate keys.

HSMs tend to be split into two camps: PCI cards that you insert into the server you are using for a certificate authority or other cryptographic use; and Net HSMs which are connected (typically on a closed private network) to a group of servers that can utilize the functionality of the HSM(s). There is a third, less popular method of using smart cards as an HSM for smaller installations. While this is a valid way to secure private keys for smaller environments, it does not scale very well for larger environments.

Encryption Standards

The National Institute of Standards and Technology (NIST) created a standard, called FIPS 140. FIPS is an acronym for Federal Information Processing Standards. 140 refers to the standard that accredits cryptography modules. You will commonly see a vendor state FIPS 140-2 Level 2. So, let's break that down to something understandable:

FIPS - This is the collection of all federal information processing standards.

140 - This is the standard under FIPS that deals with cryptographic modules.

-2 - This is the current revision of the standard.

Level 2 - There are currently four levels associated with the standard, these levels deal with the type of protection and amount of protection provided. Namely:

Level 1 – No specific physical security mechanisms are required

Level 2 – Requires tamper-evidence like tamper-evident coatings and so on.

Level 3 – Adds tamper detection and response to Level 2 requirements

Level 4 – Currently the highest level, it provides for deletion of keys to protect them in case of penetration or tampering by unauthorized persons or devices

Now that we know what an HSM is, and that the United States Federal Government has been nice enough to provide a ranking system for the security stance of each one, more questions arise that we need to answer. Why would you want to use one? Which level is right for your project? Who are the players in the HSM space?

There is a simple equation to determine whether you need to use one and the level of physical security the cryptography module you use in your environment should have. How much will it cost you and your organization in lost revenues, bad press, and customer perception if your private keys were to become compromised and that information made public? If the dollar amount is more than the cost of an HSM, then you should be using an HSM. It is quite simple; the HSM's sole purpose is to protect your keys and offload cryptographic functions for speed. If your private keys are lost, your entire PKI infrastructure is at risk or compromised. In my professional career, I have been asked several times whether a customer needs or doesn't need an HSM. The risk assessment equation is my typical answer but I always suggest at least a minimal HSM (such as a smart card HSM) as it doesn't make a lot of sense to spend the time to deploy PKI and then not protect your private root keys. It's akin to building a bank safe and leaving the combination on a post it note on a teller's computer terminal.

There are several players in the HSM space. The smart card HSM is an option for EJBCA provided by PrimeKey, which makes for a simple integrated basic solution for the most common uses of PKI in smaller organizations. nCipher, AEP Networks, Utimaco, and SafeNet are the major players in the commercial HSM space. Each has a different approach to protecting your keys and most have FIPS certification. If you are looking for a PCI-based HSM, SafeNet, and nCipher are your best bet. These products are mature and have maintained the federal certifications for one more certification cycle. For a network-based HSM, Utimaco, nCipher, SafeNet and AEP all have offerings and the decision comes down to your needs for redundancy and security level. AEP Networks' Keyper HSM offers optional load balancing so that you can provide intra or inter data center redundancy, which is of concern for larger deployments or for greater up-time requirements. Utimaco, nCipher and SafeNet all make decent network-based HSMs with varying certification levels. Be wary though of possible discrepancies between vendor claims and actual certification levels. To be sure of a vendor's certification level you can check the NIST's website directly at:

http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/1401val2009.htm

For Level 4 protection, which is the highest level provided by the FIPS certification, your options are limited to the AEP Networks Keyper HSM, and IBM eServer zSeries 900 CMOS Cryptographic Coprocessor. These are the only two cryptographic modules that have obtained an Overall Level 4 certification by NIST at the time this document was written. The IBM product is typically used only in financial services devices such as ATMs and as far as I can tell is not for commercial PKI use. AEP Networks has a good case study on their website about how ICANN (the internet authority for the U.S.) used the Keyper in a DNSSec environment. I have worked with several of these HSM products and for the level of security and transaction capability versus the dollars paid, I prefer the PrimeKey HSM for small installations and the AEP Keyper for larger, more secure installations. They are both relatively easy to configure, have a reliable track record and good support from the manufacturers which are both focused on PKI technology and not just providing the HSM as an also have product.

Wrap Up

In next month's installment, we are going to start putting all this knowledge to practical use in our Mac OS X environments. First stop, web site authentication with the certificates we issue from our newly installed CA.


Michele (Mike) Hjörleifsson has been programming Apple computers since the Apple II+, and implementing network and remote access security technologies since the early '90s. He has worked with the nation's largest corporations and government institutions. Mike is currently a certified Apple trainer and independent consultant. Feel free to contact him at mhjorleifsson@me.com

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Tokkun Studio unveils alpha trailer for...
We are back on the MMORPG news train, and this time it comes from the sort of international developers Tokkun Studio. They are based in France and Japan, so it counts. Anyway, semantics aside, they have released an alpha trailer for the upcoming... | Read more »
Win a host of exclusive in-game Honor of...
To celebrate its latest Jujutsu Kaisen crossover event, Honor of Kings is offering a bounty of login and achievement rewards kicking off the holiday season early. [Read more] | Read more »
Miraibo GO comes out swinging hard as it...
Having just launched what feels like yesterday, Dreamcube Studio is wasting no time adding events to their open-world survival Miraibo GO. Abyssal Souls arrives relatively in time for the spooky season and brings with it horrifying new partners to... | Read more »
Ditch the heavy binders and high price t...
As fun as the real-world equivalent and the very old Game Boy version are, the Pokemon Trading Card games have historically been received poorly on mobile. It is a very strange and confusing trend, but one that The Pokemon Company is determined to... | Read more »
Peace amongst mobile gamers is now shatt...
Some of the crazy folk tales from gaming have undoubtedly come from the EVE universe. Stories of spying, betrayal, and epic battles have entered history, and now the franchise expands as CCP Games launches EVE Galaxy Conquest, a free-to-play 4x... | Read more »
Lord of Nazarick, the turn-based RPG bas...
Crunchyroll and A PLUS JAPAN have just confirmed that Lord of Nazarick, their turn-based RPG based on the popular OVERLORD anime, is now available for iOS and Android. Starting today at 2PM CET, fans can download the game from Google Play and the... | Read more »
Digital Extremes' recent Devstream...
If you are anything like me you are impatiently waiting for Warframe: 1999 whilst simultaneously cursing the fact Excalibur Prime is permanently Vault locked. To keep us fed during our wait, Digital Extremes hosted a Double Devstream to dish out a... | Read more »
The Frozen Canvas adds a splash of colou...
It is time to grab your gloves and layer up, as Torchlight: Infinite is diving into the frozen tundra in its sixth season. The Frozen Canvas is a colourful new update that brings a stylish flair to the Netherrealm and puts creativity in the... | Read more »
Back When AOL WAS the Internet – The Tou...
In Episode 606 of The TouchArcade Show we kick things off talking about my plans for this weekend, which has resulted in this week’s show being a bit shorter than normal. We also go over some more updates on our Patreon situation, which has been... | Read more »
Creative Assembly's latest mobile p...
The Total War series has been slowly trickling onto mobile, which is a fantastic thing because most, if not all, of them are incredibly great fun. Creative Assembly's latest to get the Feral Interactive treatment into portable form is Total War:... | Read more »

Price Scanner via MacPrices.net

Early Black Friday Deal: Apple’s newly upgrad...
Amazon has Apple 13″ MacBook Airs with M2 CPUs and 16GB of RAM on early Black Friday sale for $200 off MSRP, only $799. Their prices are the lowest currently available for these newly upgraded 13″ M2... Read more
13-inch 8GB M2 MacBook Airs for $749, $250 of...
Best Buy has Apple 13″ MacBook Airs with M2 CPUs and 8GB of RAM in stock and on sale on their online store for $250 off MSRP. Prices start at $749. Their prices are the lowest currently available for... Read more
Amazon is offering an early Black Friday $100...
Amazon is offering early Black Friday discounts on Apple’s new 2024 WiFi iPad minis ranging up to $100 off MSRP, each with free shipping. These are the lowest prices available for new minis anywhere... Read more
Price Drop! Clearance 14-inch M3 MacBook Pros...
Best Buy is offering a $500 discount on clearance 14″ M3 MacBook Pros on their online store this week with prices available starting at only $1099. Prices valid for online orders only, in-store... Read more
Apple AirPods Pro with USB-C on early Black F...
A couple of Apple retailers are offering $70 (28%) discounts on Apple’s AirPods Pro with USB-C (and hearing aid capabilities) this weekend. These are early AirPods Black Friday discounts if you’re... Read more
Price drop! 13-inch M3 MacBook Airs now avail...
With yesterday’s across-the-board MacBook Air upgrade to 16GB of RAM standard, Apple has dropped prices on clearance 13″ 8GB M3 MacBook Airs, Certified Refurbished, to a new low starting at only $829... Read more
Price drop! Apple 15-inch M3 MacBook Airs now...
With yesterday’s release of 15-inch M3 MacBook Airs with 16GB of RAM standard, Apple has dropped prices on clearance Certified Refurbished 15″ 8GB M3 MacBook Airs to a new low starting at only $999.... Read more
Apple has clearance 15-inch M2 MacBook Airs a...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs now available starting at $929 and ranging up to $410 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at... Read more
Apple drops prices on 13-inch M2 MacBook Airs...
Apple has dropped prices on 13″ M2 MacBook Airs to a new low of only $749 in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, now available for $679 for 8-Core CPU/7-Core GPU/256GB models. Apple’s one-year warranty is included, shipping is free, and each... Read more

Jobs Board

Seasonal Cashier - *Apple* Blossom Mall - J...
Seasonal Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Seasonal Fine Jewelry Commission Associate -...
…Fine Jewelry Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) Read more
Seasonal Operations Associate - *Apple* Blo...
Seasonal Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Read more
Hair Stylist - *Apple* Blossom Mall - JCPen...
Hair Stylist - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.