Demand for New Best Practices

Today, enterprises face new uncertainties. Explosive growth in network scale and complexity demands a next generation PKI. The number of digital certificates in use across the organization has exploded, coupled with the demand to integrate with a growing number of tools and applications – such as secrets management, key vaults, SIEM, ITSM and PAM solutions. To support this new reality, IT and security leaders must make decisions on how to re-build or re-engineer their disjointed and aging PKI environments, as well the certificates issued from them.

In this white paper, you will learn how the role of PKI in the enterprise has evolved, as well as the new challenges and risks in running it effectively and keeping it secure. You’ll discover insights and best practices to identify these challenges, address the risks, and take action to adopt the next generation of PKI that can support your business needs today and into the future.

"Organizations are expanding the use of PKI within IoT and DevOps pipelines. Technical professionals need to transform the perception – and the deployment – of PKI to establish an automated management regime for PKI."

 

Gartner, The Resurgence of PKI in Certificate Management, the IoT and DevOps

New Use Cases: Legacy PKI vs Digital Transformation

PKI is nothing new. Many PKI implementations are more than a decade old and already support a multitude of applications across the business. However, deploying a PKI even 5 to 10 years ago meant an entirely different set of use cases, challenges, and standards than enterprises face today. Once viewed as a complex tool used for niche use cases like web servers and network authentication, PKI has emerged as a core technology to secure applications at the forefront of digital transformation.

Cloud / Multi-Cloud

Multi-cloud, containers, and service mesh are the new norm. Every cloud environment is different, but the need for PKI and identity is consistent. To communicate securely, every machine and application needs a unique identity that is trusted, up-to-date (not expired), and compliant with enterprise security policy.

Remote Workforce

Recent shifts in the IT landscape have rapidly expanded the footprint of mobile devices and remote workers. PKI and digital certificates are more critical than ever to secure connections both behind and beyond the corporate firewall. Every person, machine and application must have an identity that can be verified and trusted.

IoT Devices

The newest challenge on the horizon comes from the emergence of IoT devices. Connected devices, software, and sensitive data all need to be verified as authentic and protected from malicious access or corrupted code. PKI and certificate-based authentication, encryption, and firmware signing offer an effective and scalable way to overcome a host of IoT challenges.

DevOps

DevOps teams rely on digital certificates to to authenticate and secure connections, protect containers and the code within them, and run applications securely. before it’s pushed to production. Agility and speed are the name of the game – PKI deployments must adapt to seamlessly integrate certificates into the CI/CD pipeline, without slowing down developers.

"The most significant challenge organizations will continue to face, with respect to enabling applications to use PKI, is the inability of an existing PKI to support new applications."

 

nCipher-Ponemon, 2019 Global PKI and IoT Trends Study

What's Changed: PKI Then and Now

Public or Private PKI

When building out a PKI program, enterprises are confronted with the choice between public and private certificate authorities (CAs). Depending on organizational needs, it may make sense to just purchase certificates from a publicly trusted CA. For instance, if you're running a public-facing website, you'll need a certificate issued from a public CA. However, this approach can become expensive at scale, particularly when certificates don’t need to be trusted outside the organization. That’s where private PKI – also known as in-house PKI – comes into play.

Standing up a PKI in-house allows organizations to support large-scale certificate deployments used for internal operations – things like network access, email encryption (S/MIME), cloud-based applications, IoT and mobile devices. Rather than purchase certificates from a third-party public CA, deploying a private PKI makes more economic sense. But as enterprises become increasingly reliant on their private PKI to support business growth, they often overlook the cost and complexity of maintaining the policies, security controls, hardware and software required to run it.

Today, most organizations take a hybrid approach, using a mix of digital certificates from both public and private CAs. As a result, it's become much more difficult to know how many certificates you have, where they live, and whether they are compliant becomes incredibly difficult. Following best practices is next to impossible when you’re too busy chasing down application owners to renew certificates, or recovering from the latest outage.

Two-Tier or Three-Tier Design

In the past, IT teams had to discuss the architecture of their PKI and determine whether to implement a two- or three-tier design. Today that discussion is no longer necessary, as years of successful PKI operations have established reasons for either method, depending on your requirements. The vast majority of PKI deployments are two-tier, with three-tier designs being implemented only when specific technical or industry-imposed requirements must be met.

HSM or No HSM

Another topic of debate has been whether or not to implement a Hardware Security Module (HSM) to protect CAs and private keys that could otherwise be compromised. Now HSMs are becoming standard practice to protect the long-term integrity of PKI implementations. “It won’t happen to us” is no longer a valid argument, as attackers have realized the value of using private keys to breach enterprise networks.

42% of organizations today use HSMs to secure their PKI.

 

nCipher-Ponemon, 2019 Global PKI and IoT Trends Study

PKI Team or Dispersed Accountability

Large enterprises used to have a dedicated team responsible for all things PKI, but over time that task is often been transitioned to the security team. While security professionals are knowledgeable, they have dozens of tools and applications to run outside of PKI. This tends to place conflicting pressure on multiple teams that rely on PKI, from infrastructure teams to developers. A lack of internal skills and resources matched with a waning number of PKI experts in the industry leaves most organizations with no alternative.

PKI Setup

 

Changing Crypto: Evolving Risks and Challenges

Organizations turn to PKI to establish trust, but insecure keys and digital certificates issued from disjointed and poorly managed PKI have become a prime target for attackers seeking to breach the network. Without knowing the potential vulnerabilities, establishing policies and procedures to prevent them, and having a way to identify impacted certificates, your PKI and IT assets are at risk. A simple misconfiguration can compromise the trust of an entire PKI and all certificates issued from it.

Crypto-Library Bugs

Discovery of a bug in crypto-libraries can compromise the security of devices on your network, resulting in the need to not only install firmware or software updates, but also generate new keys and re-issue certificates according to the technology used in patching or replacing it.

Root Compromise

Another challenge comes from attacks on root certificate key stores relied upon by applications, browsers, and devices. When a Root of Trust (RoT) is compromised, all trust is lost. In the case of a compromised CA, the chain of trust and all public and private keypairs are rendered moot, or even dangerous, as they can be issued and used maliciously.

Weak Crypto and Hashing

Cryptography deployed today will not be secure in the future. In fact, it’s hard to find any cryptographic algorithm or hashing mechanism that hasn’t failed us in recent years, only to be replaced by a stronger, less breakable alternative. Think MD5, SHA-1, and 1024-bit RSA keys, to name a few.

Certificate Expiration

It’s common to see organizations extend the validity period of certificates, sometimes to 25, 50, or even 99 years to avoid any chance of it expiring while in service. However, like passwords, certificates must regularly be re-issued and renewed to ensure their integrity. Maximum validity of SSL/TLS certificates continues to shrink as industry experts recognize the need to renew them more frequently to prevent the risk of compromise.

Post-Quantum Threats

Most experts predict that quantum computing will become viable sometime between 2024 and 2030. The scale of the potential impact to cryptography is immense. Most public-key algorithms in use today will be susceptible to attack by quantum computing processors.

Still Experiencing Outages?

Recent costly outages such as those seen at LinkedIn, Equifax, and Microsoft Teams highlight the critical importance of staying ahead of certificate expirations. A patchwork of spreadsheets, CA-provided tools and internal PKI interfaces won't cut it anymore. To keep pace, enterprises today need the right tools to get visibility of all certificates and automate manual processes such as issuance, renewal and replacement of weak or expired digital certificates.

Find the right certificate management tool for your organization →

 

Increased PKI Scrutiny

As enterprises rely more heavily on keys and digital certificates, PKI is coming under increased scrutiny from internal compliance teams, external auditors, and regulatory entities. Most organizations recognize PKI as a core component of enterprise security, yet far too often, it’s left under-supported.

Many PKI deployments are outdated, unable to meet the requirements of emerging technologies. Others don’t receive the dedicated expertise they once had, with PKI operations being folded into other security and IT functions. Others are simply forgotten, yet continue to issue certificates with little or no oversight. In any case, lack of investment and attention to PKI often manifests itself through widespread network and application outages, or worse yet, a serious security breach.

Organizations successfully taking advantage of PKI are active in conducting their own internal audits. They are also implementing tools to enable real-time PKI health and compliance reporting in an effort to reduce risk and prove the intended PKI assurance level needed to meet standards from NIST and SANS Institute, as well as other industry and regulatory requirements.

Internal Audit

A strong framework for assessing security can be found in the 20 SANS CIS Critical Security Controls. A number of the SANS CIS controls can be useful for PKI auditing to identify the devices and applications authorized to connect to a network and those that are not. Part of the assessment for these controls should include identifying the location of certificates on every device and application. Most organizations are unaware of where their certificates live or even how many they have. Regular and thorough audits can provide a clear understanding of your certificate landscape and how it evolves over time.

Incident Reporting

Incident monitoring and alerts help organizations minimize the potential for holes in their security infrastructure. One example highlighting the importance of actively monitoring your PKI operations lies in how an organization suspends network access for a severed employee. Most organizations will shut off Active Directory (AD) access. That may be fine if all authentication occurs through AD, but if the employee had a device that authenticated to the network solely through a certificate, more steps must be taken. If the organization does not know to revoke the certificate, the employee can still access the network and the organization may not know. An auditor may ask how an organization can be sure that a terminated employee isn’t still connecting to the network. Being able to answer questions like these go a long way in complying with audit requirements.

External Audit

The last piece of the puzzle is to be able to quickly respond to external auditors that want to know that an organization’s systems are secure. Auditors increasingly want to know that certificates are valid and aligned with defined security policies, and that key and encryption strength are up to par with industry standards. Preparing for these audits is especially critical in highly regulated industries like finance and healthcare.

PKI Audit

 

Why Your PKI May be at Risk: Good Intentions Gone Bad

PKI vulnerabilities are likely not intentional. Vulnerabilities are more often the result of highly skilled IT professionals with good intentions that do not work in PKI 100% of the time. The task of standing up and running a PKI is often delegated to an individual with no previous experience or specialized knowledge in PKI. The expectation is that PKI is simple – requiring only a quick read through the install manual and a few hours to spin it up. Let’s explore what can happen when this approach is taken.

In one Keyfactor client example, data center staff cleaning out some old server racks decided to dispose of an old, non-supported server that hadn’t been powered up for months. It turns out that "old server" was the root of trust for their PKI. Since there were no compensating controls to require verification with another team member before retiring a server, the root CA had to be recovered. Even worse, the backup was hosted in the cloud, so the root had to be published online in order to be recovered, thereby putting the entire infrastructure and certificates at risk.

Removing the Root of Trust

An enterprise may choose to build their own PKI or buy certificates from a public CA that meet a certain assurance level. In either case, the assumption is that those certificates offer an expected level of trust. However, due to inconsistent enforcement or adherence to policies and procedures, lack of knowledge or limited resources, enterprises often unknowingly downgrade the overall security of their PKI over time. It’s like a sliding scale where, without proper maintenance, your PKI grows less and less secure with age.

"The best practice is to never publish the root online. Exposing the root to your network, even for the briefest of moments, makes it vulnerable to potential access of the CA keys, ultimately putting the entire PKI at risk."
Chris Hickman
CSO, Keyfactor

The Golden Rule: Getting it Right Starts at Design

Unfortunately, there are a large number of PKI design aspects that, once configured, cannot be changed without a complete redeployment. Many of these aspects can also have a significant impact on the long-term usefulness of your PKI. And since PKI components are around for many years, the ramifications of decisions made during the design phase can be significant.

What Can and Can't be Remediated

What can be done if a component of the PKI is compromised? Or if a change is needed to the CA? What is the net effect of that change? Is it something that can be mitigated or not?
If your PKI has been compromised, the most conservative approach is to consider that even a minor compromise puts the entire environment at risk, and because of that, the intended level of assurance is lost and a new PKI must be implemented. Certificates must be immediately replaced and issued from a new, uncompromised PKI. For some less critical use cases, an enterprise may opt to continue as is, tighten up some of the controls and monitor the PKI environment more closely to ensure the compromise doesn’t happen again, but this decision should be made on a case-by-case basis.

How Remediation Affects Certificates

Some things can’t be changed, such as CA names — most products forbid it. Signing algorithm and key length are two other certificate features that can’t be changed without revoking and re-issuing every certificate. While some minor changes can be made along the way, certain changes will have broad-reaching effects. For example, consider the location of your Certificate Revocation Lists (CRL). While you may decide to publish the CRL to a new location, existing certificates that have already been issued will not reflect that new location. If an application performs revocation checking and cannot find the CRL, or if the CRL is expired, revocation checking will fail, which can have significant consequences.

A best practice for many CAs is to issue certificates with a limited life span, say one or two years, depending on the use case. However, through bad practices, necessity, or lack of appropriate tools to manage the certificate lifecycle, organizations sometimes issue certificates with longer life spans. The challenge occurs when a widespread change to certificates is needed. Certificates with longer life spans cannot be updated until the current certificate expires. This is especially true with auto-enrollment certificates, where default settings may control certificate issuance to an old root that should no longer be trusted.

Planning for the Next Audit

Preparing for a security audit is always challenging, often more so when trying to provide an audit trail for security tools like PKI that may have never been audited before, or that do not typically have dedicated monitoring and management. If an enterprise doesn’t have access to its complete inventory of certificates, it’s impossible to say with any level of certainty that every certificate is under the protection of the established PKI controls and is being employed for the intended use.

The Role of Policies and Practices

The Certificate Policy (CP) and Certification Practice Statement (CPS) are the guiding documents that outline how certificates and the PKI are managed, providing proof of the intended level of assurance to a relying party during a certificate handshake. Even privately rooted CAs, at a minimum, should have corresponding CP and CPS documents that correctly identify how an organization will use, consume, and manage certificates in the infrastructure around them.

Build a Security Level and Stick to it

Depending on the use case, an organization may plan for a PKI with low, medium or high assurance. The key is to maintain the original assurance level over time. Not maintaining this original level degrades the integrity of PKI and all applications that rely on it. Not only do you risk having to explain why the original level wasn’t maintained after a breach, but an auditor may perceive the downgrade as a failure to adhere to a specific standard.

6 Steps to PKI Success: PKI — The New Best Practices

PKI has evolved – demanding a new set of best practices. As more stringent industry and data security regulations come to fruition, businesses are becoming more reliant than ever on their PKI to guarantee trust. Getting it right requires significant investments in infrastructure, personnel, and ongoing operational support, but the payoff for building a robust and reliable PKI is invaluable.

01 | Understand Your Use Cases

A common mistake made before a PKI project leaves the ground is not fully understanding what goes into the design. It may look simple on paper, but the process of architecting a PKI that fits your unique environment and business needs must be verified before getting started.

Begin by understanding and documenting the intended use cases for your PKI thoroughly. Each following step throughout the project will depend on establishing this baseline knowledge. An incomplete inventory could, at the least, create more arduous work to remediate shortcomings, and at worst, result in a PKI that is unable to support growth without a complete re-build. Again, remember that certain settings while building a PKI are more or less “burned” into its fabric, so understanding your needs upfront and designing your PKI to align with them will prevent irreparable post-production issues.

02 | Define Policies & Practices

Most organizations deploy a PKI quickly to address a specific project requirement, without consideration for proper policies and procedures. Fortunately, PKI has a well-defined structure for policy and practices defined in the form of Certificate Policy and Certificate Practice Statements (CP/CPS). Drafting a CP/CPS is optional, but your environment will benefit from a high assurance level through the enforcement of these policies. Not every enterprise needs a CP/CPS, but the best secured and managed PKIs usually do.

Once you’ve documented your use cases, you’ll need to define your CP/CPS, which will guide you through the process of implementing controls for your PKI. Creating these documents can be a daunting task, but it’s important to note that just copying another set of CP/CPS documents verbatim will not suffice. These tools only have value if they truly represent your organization’s specific PKI requirements and operational processes. The NIST 7924 Draft CP/CPS can provide a solid starting point, but you will need to customize it to your organization.

03 | Perform the Root Signing Ceremony

Building the root CA (i.e., the root signing ceremony) is akin to creating a “master key” to an organization’s network and should be treated with the same sensitivity. The building and configuration of the root CA should be well scripted in a controlled environment. Depending on the assurance level desired for the PKI, this ceremony will range from an informal execution of a scripting document (low assurance) to a formal recorded event in a pre-authorized location (high assurance).

From the second the root CA is created, a chain of custody is established, which must remain intact from the minute it’s incepted throughout its lifetime. If this chain of custody is broken at any time, the potential for malware infecting the machine, erroneous certificates being created, or the login security of a root CA must be assumed to have happened, and the root should be considered compromised. At that point, your PKI is not trustworthy and all certificates issued are invalid. Do not let this happen. The Root CA is a security measure that you have deliberate control over from start.

Consider an HSM

It is at this point that you will need to decide if a hardware security model (HSM) is required for your certificate authorities (CAs). This is a critical decision before deploying any of your PKI components. HSMs provide hardware-rooted protection for your PKI, but your budget may or may not allow for them. However, consider that a well-designed PKI is typically in use for decades. While HSMs can be integrated later on, they offer limited protection in comparison to building them in from the start.

04 | Build & Configure the Infrastructure

Once the root signing ceremony is complete, it’s time to build and configure the subordinate CAs and other ancillary PKI servers. Create a clear set of build documentation and configuration procedures to identify any gaps and ensure that infrastructure aligns with the CP/CPS established earlier. Share and review the plan with other PKI-dependent teams to ensure that you have not missed anything. Before placing the PKI into production, make sure that you’re able to properly test all PKI components, as well as certificates across the various platforms and applications you intend to support.

Consider how certificates issued from your PKI will be managed throughout their lifecycle. Using custom scripts and manual spreadsheets may have worked with limited certificate counts, but most enterprises today have thousands, if not tens of thousands of certificates in their environment. Choosing the right solution will allow you to discover, manage, and automate the lifecycle of every key and certificate across your environment, without having to re-engineer your PKI or re-issue certificates.

Don't Forget About Disaster Recovery

Many organizations running their own PKI in-house have never conducted end-to-end disaster recovery (DR) testing. This is different from simply testing a CA or root recovery and re-installing a certificate. An effective DR testing strategy should include:

  • Understanding what it would take to rebuild the entire PKI environment, including the root CAs, issuing CAs, validation schemes, and OCSP or CRL
  • Ensuring that the certificates are consumable by the relying parties that need them
  • Putting together a testing plan and organizing a test environment
05 | Move From Test to Production

While moving into a steady state, make sure that all components of the PKI are then properly operationalized. Like most assets created from a project of this type, when it moves into being part of the corporate infrastructure, there’s no longer a project team accountable for the maintenance and upkeep. A PKI requires a significant amount of care and feeding to remain functional – these are dangerous tripping points for security teams who were focused on simply implementing the PKI, but not its ongoing operations. A common tripping point is forgetting about CRL intervals. Many teams forget to publish the CRL, causing all certificates to become immediately unusable.

A critical component to PKI operations involves how to incorporate, explain, and document changes, also known as change control. Compensating controls are another important element. A compensating control is an additional security measure designed to add security to a complex and sensitive environment, such as PKI. Adding an HSM to the root, securing where the HSM is stored, and controlling and monitoring who has access to it are all considered compensating controls. Consistently keeping the HSMs in a separate locked cabinet under 24/7 video surveillance for which only a select few have a key adds additional compensating controls to satisfy audit requirements.

06 | Continuously Review, Test & Audit

Once controls have been documented and operationalized, review and test them on a regular basis. This is often part of an internal audit, and should include review and testing of everything listed in your CP/CPS, business continuity, and DR plans for all PKI components. If there is a legitimate need for a change, kick off a change control to update any of the documents. Think of them as living, breathing documents that evolve with the goal of maintaining the PKI’s intended level of assurance.

Organizations that schedule and conduct their own internal audits regularly are able to easily identify issues, answer external auditor questions, and provide proof of the required level of assurance. PKI owners should also monitor and benchmark their enterprise PKI controls against current and emerging standards including the CA/Browser Forum, WebTrust, and industry regulatory agencies. This helps the organization stay ahead of trends that could otherwise lead to PKI shortcomings. Another best practice is to conduct an annual PKI health check to uncover anything the organization may not have considered.

It's Time to Re-Think Your PKI

While PKI has been a backbone of enterprise IT for decades, the role of PKI in the enterprise has changed drastically. No longer viewed as a deep-weeds technology responsible for a limited number of use cases, PKI is now emerging as a core requirement to support digital transformation.

PKI isn’t like any other technology in your IT stack – it’s a complex ecosystem of roles, policies and procedures, hardware and software. Just keeping it up and running can be challenging enough for organizations, never mind enabling new integrations. Security teams find themselves fighting fires to mitigate the risk of a breach or outage, while the integrity of their PKI continues to degrade.

Executing an in-house PKI successfully is not impractical, but it does require significant investment of time and resources to get it right. Enterprises that limit their PKI deployment to components bundled into their operating system (i.e. Microsoft CA) will quickly realize that this approach is not sustainable.

Know Your Options — In-House PKI vs Cloud-Hosted PKIaaS

When it comes to private PKI, you have two options, either build your own or move it to the cloud. PKI as-a-Service platforms provide all the benefits of a privately-rooted PKI, but without the cost and complexity of running it in-house. With dedicated PKI expertise at their disposal, proactive compliance coverage, and multi-layered security across infrastructure and operations, PKIaaS providers can deliver a much more effective, and ultimately more secure, PKI than most enterprises can achieve on their own.

Whether you deploy internally or work with a reputable provider to build and run it for you, PKI has to be done right. Make the best decision for your business based on the resources available to you. Whichever path you choose, Keyfactor can help you determine your PKI requirements and find the solution that works best for your business.

Certificate Lifecycle Automation

  • Gain complete visibility of certificates with direct integration into public and private CAs
  • Group certificates, monitor status, get alerts and notifications in real-time
  • Automate the lifecycle of keys and certificates from issuance to renewal and revocation
  • Integrate with existing IT systems as well as Cloud, DevOps, and IoT infrastructure

Cloud-Hosted PKIaaS

  • Get a dedicated, privately-rooted PKI in the cloud without any shared infrastructure
  • Leverage our team of experts to manage and monitor your PKI 24 x 7 x 365
  • Retain complete control over your PKI root and recovery materials
  • Stay confident with proven SLA uptime and guaranteed response commitments