{"id":7371,"date":"2018-09-13T17:21:46","date_gmt":"2018-09-13T21:21:46","guid":{"rendered":"https:\/\/www.thesslstore.com\/blog\/?p=7371"},"modified":"2024-03-20T15:33:36","modified_gmt":"2024-03-20T19:33:36","slug":"pki-certificate-management-mistakes","status":"publish","type":"post","link":"https:\/\/www.thesslstore.com\/blog\/pki-certificate-management-mistakes\/","title":{"rendered":"Let\u2019s Talk About Some Common PKI Certificate Management Mistakes"},"content":{"rendered":"<h2>There are a lot of moving parts with Public Key Infrastructure, which means there\u2019s plenty of room for PKI certificate management mistakes<\/h2>\n<p>Public Key Infrastructure is the backbone of most organizations\u2019 encryption implementations. A well-constructed PKI can handle a range of responsibilities for your organization, everything from authentication to encryption to ensuring file and email integrity. But PKI is complicated, there are a number of common PKI certificate management mistakes that any company or organization can make.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-7373\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Crypto-Protection-Icon-Modern-238971124-300x300.jpg\" alt=\"pki certificate management mistakes\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Crypto-Protection-Icon-Modern-238971124-300x300.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Crypto-Protection-Icon-Modern-238971124-768x768.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Crypto-Protection-Icon-Modern-238971124-1024x1024.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Crypto-Protection-Icon-Modern-238971124.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>Especially if it\u2019s not large enough to hire a specialist to manage its PKI.<\/p>\n<p>And even when organizations can afford to hire a specialist (or even a team of them), there\u2019s no guarantee that their approach will be correct. After all, PKI is constantly evolving and as you\u2019ll see, if you don\u2019t stay on the cutting edge you\u2019re going to end up making some pretty egregious PKI certificate management mistakes.<\/p>\n<p>Today we\u2019re going to talk about some of those common errors and what your company can do to avoid making these PKI certificate management mistakes.<\/p>\n<p>Let\u2019s hash it out\u2026<span id=\"newline\"><\/span><\/p>\n<span style=\"--tl-form-height-m:120.9844px;--tl-form-height-t:120.9844px;--tl-form-height-d:120.9844px;\" class=\"tl-placeholder-f-type-shortcode_17586 tl-preload-form\"><span><\/span><\/span>\n<h2>Let\u2019s start with a quick refresher on Public Key Infrastructure<\/h2>\n<p>Public Key Infrastructure, or PKI, seems like a difficult concept to grasp at first glance, but once you unravel it a bit, it all makes sense. PKI is facilitated by two things: <a href=\"https:\/\/www.thesslstore.com\/blog\/root-certificates-intermediate\/\">digital certificates<\/a> and <a href=\"https:\/\/www.thesslstore.com\/blog\/difference-asymmetric-encryption-algorithms-vs-symmetric-encryption-algorithms\/\">public\/private key pairs<\/a>.<\/p>\n<p>For the sake of this discussion I\u2019m going to simplify things a bit, but let\u2019s start with <a href=\"https:\/\/www.thesslstore.com\/blog\/root-certificates-intermediate\/\">root certificates<\/a>. Root certificates sit at the heart of PKI. These digital certificates are universally trusted, a copy of each is saved in the root store of every user\u2019s computer system. Root Certificate Authorities, that is, CAs that own one of these trusted roots, can issue certificates off those roots.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-7386\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Electronic-Key-Line-Icon-Priv-244556431-300x300.jpg\" alt=\"pki certificate management mistakes\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Electronic-Key-Line-Icon-Priv-244556431-300x300.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Electronic-Key-Line-Icon-Priv-244556431-768x768.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Electronic-Key-Line-Icon-Priv-244556431-1024x1024.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Electronic-Key-Line-Icon-Priv-244556431.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>When we say issue certificates, what\u2019s really meant is that a certificate signing request is presented to the CA, which then uses its root\u2019s private key to digitally sign the certificate. Or at least, in theory that\u2019s how it works. In reality, the threat of having a root compromised is so severe that CAs spin up <a href=\"https:\/\/www.thesslstore.com\/blog\/root-certificates-intermediate\/\">Intermediate Roots<\/a>. An intermediate Root is signed by the trusted root, which grants it trusted status despite not being a part of the root store. The CA can then issue certificates by using the intermediate root\u2019s private key to sign the end-user or leaf certificate.<\/p>\n<p>One more thing, there can be multiple intermediates. Sometimes a CA spins up an intermediate for itself, or it can issue another intermediate root to a Sub-CA for the Sub-CA to issue from. All of this creates something called a certificate chain. When a client is presented with a leaf certificate, it looks at the digital signature on the certificate and follows the chain back to the certificate who\u2019s private key signed it. It continues reading signatures and following the chain until it arrives at one of the roots in its trust store. As long as the leaf certificate can be chained back to a trusted root it will be trusted. If it can\u2019t the client\u2019s browser issues an error.<\/p>\n<p>What I\u2019ve just described, from the Root CA all the way down to the leaf certificates is what comprises Public Key Infrastructure. In an SSL\/TLS context, when this is deployed correctly, any client can use the publicly available key to authenticate the end point it\u2019s associated with, and securely send it a symmetric session key to use for communication.<\/p>\n<p>That\u2019s PKI in a nutshell.<\/p>\n<h2>Hashing out some common PKI Certificate Management Mistakes<\/h2>\n<p>Now let\u2019s talk about some of the most frequent PKI certificate management mistakes we see. We\u2019ve worked with <a href=\"https:\/\/www.thesslstore.com\/partner\/enterprise-solutions.aspx\">Enterprise clients<\/a>, large companies and SMBs. All of them have different needs and pain points, but there are some common issues that almost everyone runs into, too.<\/p>\n<p>While this list is far from comprehensive, hopefully it will give you a nice jump on correcting any PKI certificate management mistakes that are currently plaguing your organization&#8217;s implementation.<\/p>\n<h2>Spending too much time on CA Hierarchies<\/h2>\n<p>At the outset of creating your PKI, provided you\u2019re rolling your own, you\u2019ll want to map everything out. And let\u2019s face it, for the IT crowd diagramming all of these boxes and lines can be a lot of fun. Almost sexy in that weird way that only someone who truly understands system architecture can appreciate. Unfortunately, one of the most common PKI certificate management mistakes we see is that it&#8217;s a little too easy to get distracted with all that\u2014worrying about your hierarchy of offline roots, policy\/intermediate CAs, Online issuing CAs, etc.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-7385\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/CA-Hierarchy-300x300.jpg\" alt=\"pki certificate management mistakes\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/CA-Hierarchy-300x300.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/CA-Hierarchy-768x768.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/CA-Hierarchy-1024x1024.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/CA-Hierarchy.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>And yes, if you&#8217;re building your own you\u2019re going to need to start by setting up a truly offline Root CA, spinning up a couple of intermediate roots to issue off of and you\u2019ll need to protect them with a solid Hardware Security Module (HSM). But, there are a whole lot of other things you\u2019ll also need to worry about, too. And those are no less important. We\u2019ll get to those in a minute.<\/p>\n<p>But first, the tendency when diagramming all of this is that you can end up making everything far too complex. This is only going to cause you headaches down the road because it\u2019s going to end up being more expensive and more complex to manage. Ideally, well-managed PKI ends up saving you time and stress\u2014not adding to it.<\/p>\n<span style=\"--tl-form-height-m:927.562px;--tl-form-height-t:999.781px;--tl-form-height-d:999.781px;\" class=\"tl-placeholder-f-type-shortcode_17591 tl-preload-form\"><span><\/span><\/span>\n<h2>Not spending enough time on other configuration details<\/h2>\n<p>While it\u2019s easy to spend too much time on CA hierarchies, another one of the most common PKI certificate management mistakes we see is not spending enough time on the other moving parts. And that\u2019s a mistake, because failing to make the right decisions during this stage of your setup means that you\u2019ll have to completely re-deploy everything if you want to change anything later.<\/p>\n<p>You may have never thought about what goes into a certificate security policy, you may not even know what one is, but you definitely shouldn\u2019t let that stop you from defining one. For instance, when you use a commercial CA for SSL certificates, you don\u2019t have to worry about certificate revocation lists (the CA does), but if you\u2019re spinning up your own PKI that responsibility falls to you. Are you going to need to set up one or two OSCP (online certificate status protocol) servers for this internally? Will you need one for external use?<\/p>\n<p>As Ted Shorter, the CTO of <a href=\"https:\/\/blog.css-security.com\/blog\/diy-pki-five-common-mistakes\">Certified Security Solutions<\/a> puts it:<\/p>\n<blockquote><p>PKI enjoys a well-defined structure for policy and practices definition, in the form of Certificate Policy (CP) and Certification Practices Statements (CPS). These are excellent frameworks for defining the requirements governing a PKI, and the means by which an implementation would meet those requirements. Creating these documents can be a daunting task. However, it\u2019s important to note that simply copying someone else\u2019s set of CP\/CPS documents verbatim will not suffice; these tools only have value if they truly represent <strong><em>your<\/em><\/strong> organization\u2019s PKI requirements and operational processes.<\/p><\/blockquote>\n<p>Let\u2019s look at a few more configuration-style PKI certificate management mistakes\u2026<\/p>\n<h2>Using outdated algorithms, ciphers and protocols<\/h2>\n<p>You want your PKI to have two key attributes from a big picture standpoint: scalability and long-term viability. Both of those attributes are borne out of picking the correct configurations. And perhaps no where is that more important than when it comes to picking ciphers and protocols. Public Key Cryptography is constantly evolving, <a href=\"https:\/\/www.thesslstore.com\/blog\/difference-encryption-hashing-salting\/\">algorithms<\/a> come and go, <a href=\"https:\/\/www.thesslstore.com\/blog\/cipher-suites-algorithms-security-settings\/\">ciphers<\/a> change\u2014if you\u2019re not careful your entire PKI can become outmoded within a few years of implementing it.<\/p>\n<p>That\u2019s why it\u2019s so critical to do your research and pick the correct algorithms and ciphers for your PKI implementation. Here are a few examples:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-7387\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Documentation-With-Algorithm-L-255750634-300x243.jpg\" alt=\"pki certificate management mistakes\" width=\"300\" height=\"243\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Documentation-With-Algorithm-L-255750634-300x243.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Documentation-With-Algorithm-L-255750634-768x621.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Documentation-With-Algorithm-L-255750634-1024x828.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Documentation-With-Algorithm-L-255750634.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<ul>\n<li>SHA-1 was deprecated back in 2015, <a href=\"https:\/\/www.thesslstore.com\/blog\/difference-sha-1-sha-2-sha-256-hash-algorithms\/\">we now use SHA-2<\/a>. If you were building out your PKI in 2014 and chose SHA-1, you&#8217;d be in trouble right now.<\/li>\n<li>TLS 1.3 was just finalized by the IETF and <a href=\"https:\/\/www.thesslstore.com\/blog\/tls-1-3-approved\/\">published as RFC 8446<\/a>. This represents the most recent, most secure version of the TLS protocol. SSL 2.0, 3.0 and TLS 1.0 should never be used. TLS 1.1 is ill-advised, too.<\/li>\n<li>Pretty soon the industry will have to decide whether continuing to use RSA for asymmetric encryption is still more efficient than using <a href=\"https:\/\/www.thesslstore.com\/blog\/understanding-ecc-5-minutes\/\">Elliptic Curve Cryptography<\/a>.<\/li>\n<\/ul>\n<h2>Choosing the wrong Key Sizes<\/h2>\n<p>Keys are critical in PKI\u2014it\u2019s even in the name. Keys are used to both encrypt and decrypt data, and they need to be sufficiently robust so that nobody can guess their value, copy them or decipher your encryption. PKI specifically refers to asymmetric encryption (though symmetric encryption also plays a role, too).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-7383\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195032344-300x300.jpg\" alt=\"pki certificate management mistakes\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195032344-300x300.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195032344-768x768.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195032344-1024x1024.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195032344.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>How robust a key is, or its hardness, <a href=\"https:\/\/www.thesslstore.com\/blog\/what-is-256-bit-encryption\/\">is determined by its length<\/a>. The longer a key is, the more secure it is. For instance, a standard RSA private key is <a href=\"https:\/\/www.thesslstore.com\/blog\/generate-2048-bit-csr\/\">2,048<\/a> bits long. Back in 2002, 1024-bit keys were sufficient, today they\u2019re not. In another ten years, 2048-bit keys will likely be obsolete, too. Where it starts to get tricky, and this hearkens back to our previous point, is that as asymmetric keys get larger the processing power required to use them increases at a much greater rate than the actual key strength does. Eventually, we\u2019ll have to switch algorithms because RSA will become unwieldy.<\/p>\n<p>That\u2019s something to consider.\u00a0Like, really consider.<\/p>\n<p>Ultimately you&#8217;ll have to weigh your security needs against the performance costs and also factor in any regulatory or compliance requirements before making a final decision.<\/p>\n<h2>Not anticipating the extra traffic PKI adds to your network<\/h2>\n<p>Regardless of how you configure your PKI, it\u2019s going to add traffic to your network load. One of the easiest PKI certificate management mistakes to make is forgetting to factor in the effect PKI will have on your organization&#8217;s network. Exactly how much of an effect depends on your architectural choices. Again, this is something you want to figure out at the outset\u2014not as you go.<\/p>\n<p>Here\u2019s a breakdown of where you can expect some extra traffic from:<\/p>\n<p><strong>Certificate Issuance<\/strong><\/p>\n<p><em>You\u2019re going to have to account for directory or database requests when querying for user details and responses, plus bandwidth for any certificate requests being made to the CA. Obviously, this traffic is going to peak around your initial rollout and anytime you have to do renewals or mass re-issues.<\/em><\/p>\n<p><strong>Email Usage<\/strong><\/p>\n<p><em>One of the additional applications of PKI is for email and document signing. If you decide to deploy your PKI with this capability, you can count on additional traffic when sending signed or <a href=\"https:\/\/www.thesslstore.com\/blog\/how-to-send-encrypted-email-on-3-major-email-platforms\/\">encrypted emails<\/a>. Not only do those emails cost more bandwidth to send, they each require a directory lookup, too.<\/em><\/p>\n<p><strong>Certificate Revocation Lists<\/strong><\/p>\n<p><em>As we covered earlier: if you\u2019ve spun up your own CA you\u2019re going to need to maintain your own CRLs. And the bigger your PKI, the faster your CRLs grow. If every user has to download the entire CRL on a regular basis not only is it going to add traffic it\u2019s also going to increase the time verification takes. Granted, this can be mitigated somewhat by using <a href=\"https:\/\/www.thesslstore.com\/blog\/ocsp-stapling-best-method-checking-certificate-validity\/\">OCSPs<\/a>.<\/em><\/p>\n<p><strong>Directory Replication <\/strong><\/p>\n<p><em>Depending on how you\u2019re storing certificates, you may be looking at some additional traffic here, too. If you\u2019re using LDAP (Lightweight Directory Access Protocol) directories, in larger implementations those directories are going to be replicated across the network. And while LDAP is designed and optimized for fast, inexpensive lookups and replication, configuring this correctly \u2013 and getting it to play nicely with the rest of your existing network security policies \u2013 is a challenging task.<\/em><\/p>\n<h2>Not Storing Certificate and Keys Securely<\/h2>\n<p>While we\u2019re on the topic of certificate storage, let\u2019s talk about another genre of common PKI certificate management mistakes: improper storage of keys and certificates. We talk all the time about <a href=\"https:\/\/www.thesslstore.com\/blog\/public-key-cryptography-key-exchange\/\">how important key security is<\/a>, and that\u2019s for good reason. <a href=\"https:\/\/www.thesslstore.com\/blog\/heres-what-happens-when-your-private-key-gets-compromised\/\">Key compromise can cripple an organization<\/a>.<\/p>\n<p>Bruce Schneier, a universally respected American cryptographer and security researcher, <a href=\"https:\/\/www.schneier.com\/academic\/paperfiles\/paper-pki.pdf\">writes about key security<\/a> with so much severity that you can&#8217;t help but feel a little guilty at everything you&#8217;re not doing:<\/p>\n<blockquote><p>One of the biggest risks in any CA-based system is with your own private signing key. How do you protect it? You almost certainly don\u2019t own a secure computing system with physical access controls, TEMPEST shielding, \u201cair wall\u201d network security, and other protections; you store your private key on a conventional computer. There, it\u2019s subject to attack by viruses and other malicious programs. Even if your private key is safe on your computer, is your computer in a locked room, with video surveillance, so that you know no one but you ever uses it? If it\u2019s protected by a password, how hard is it to guess that password? If your key is stored on a smartcard, how attack-resistant is the card? [Most arevery weak.] If it is stored in a truly attack-resistant device, can an infected driving computer get the trustworthy device to sign something you didn\u2019t intend to sign?<\/p><\/blockquote>\n<p>While that may be taking things to their extreme, if you\u2019re saving key-strings in a spreadsheet, on a thumb drive, on a normal hard drive or even somewhere online that is remotely accessible\u2014you are making a mistake. Frankly, you probably should be using an HSM.<\/p>\n<p>But, failing that, at least make sure that you have adequately locked down the database or directory you\u2019re using. It\u2019s also a good idea to limit who has access to the keystore to just a select few high-level individuals.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7376\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-216922033.jpg\" alt=\"pki certificate management mistakes\" width=\"1600\" height=\"481\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-216922033.jpg 1600w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-216922033-300x90.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-216922033-768x231.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-216922033-1024x308.jpg 1024w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/p>\n<span style=\"--tl-form-height-m:937.938px;--tl-form-height-t:1002.97px;--tl-form-height-d:1002.97px;\" class=\"tl-placeholder-f-type-shortcode_16294 tl-preload-form\"><span><\/span><\/span>\n<h2>Bad Certificate Life-cycle Choices<\/h2>\n<p>This is more than just determining when your <a href=\"https:\/\/www.thesslstore.com\/blog\/what-happens-when-your-ssl-certificate-expires\/\">certificates will expire<\/a>\u2014though that is a big part of it. If you\u2019re using your own private CA on your own network you can issue certificates for however long or short you\u2019d like.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-7253\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-180724507-300x300.jpg\" alt=\"what happens when your SSL certificate expires\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-180724507-300x300.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-180724507-768x768.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-180724507-1024x1024.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-180724507.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>Longer certificates need to be replaced less frequently but can eventually become outmoded as <a href=\"https:\/\/www.thesslstore.com\/blog\/what-are-nist-encryption-standards\/\">new algorithms and ciphers come into favor<\/a>.<\/p>\n<p><a href=\"https:\/\/www.thesslstore.com\/blog\/ssl-certificates-expire\/\">Shorter certificates need to be replaced more often<\/a>, which isn\u2019t a problem if you have automation, but as we\u2019ll discuss in a moment, quicker key rotation is a good security choice.<\/p>\n<p>Figuring out what\u2019s best for your organization and its PKI is a calculus you\u2019ll need to work through on your own, but you\u2019ll need to come up with an entire plan \u2013 an issuance process \u2013 that covers not just the initial roll out but the entire certificate life-cycle.<\/p>\n<p>It\u2019s probably also a good idea to figure out how you\u2019re going to handle revocations, key archival, key recovery and all other contingencies.<\/p>\n<h2>Infrequent Key and PKI Certificate rotation<\/h2>\n<p>As we just mentioned, rotating certificates and keys regularly is a good call. Just how regularly goes back to your organization\u2019s own issuance and life-cycle policies, but it\u2019s best if it occurs at regular intervals \u2013 <a href=\"https:\/\/www.thesslstore.com\/blog\/gdpr-encryption-best-practices-wp29\/\">every six months or less is considered best practice<\/a>. If your PKI includes your own Private CA, issuing these certificates isn\u2019t going to cost you anything but bandwidth.<\/p>\n<p>As security researcher Scott Helme suggests, <a href=\"https:\/\/scotthelme.co.uk\/why-we-need-to-do-more-to-reduce-certificate-lifetimes\/\"> don&#8217;t wait until expiry to rotate keys<\/a>:<\/p>\n<blockquote><p>With a 39 month, or even an 825 day certificate, we&#8217;re realistically going to see keys rotated at most at those intervals and not before. This is bad hygiene and the longer a given cryptographic key is in use the more likely it is to face compromise, I&#8217;d much rather see a push towards ephemeral keys than static keys wherever possible.<\/p><\/blockquote>\n<p>Ephemeral is a fancy way of saying &#8220;<a href=\"https:\/\/www.thesslstore.com\/blog\/what-is-256-bit-encryption\/\">session<\/a>&#8221; key. Anyway, by swapping out certificates and keys with a regular cadence, you\u2019re minimizing risk. Even if there were some sort of compromise, the certificate and key would be obsolete within a few weeks anyway.<\/p>\n<h2>Misusing self-signed certificates<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-7396\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195615934-300x300.jpg\" alt=\"pki certificate management mistakes\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195615934-300x300.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195615934-768x768.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195615934-1024x1024.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-195615934.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>For large enterprises with their <a href=\"https:\/\/www.thesslstore.com\/blog\/enterprise-public-key-infrastructure-pki\/\">own private CAs and large PKIs<\/a>, the use of self-signed certificates is commonplace. And within your own network, where you can manually add the right roots to your organization\u2019s trust stores, these self-signed certificates function just fine (they\u2019re also good for test environments).<\/p>\n<p>But one of the most common PKI certificate management mistakes we see is organizations trying to use a self-signed certificate on a public facing domain or IP. This doesn\u2019t work. Anyone outside of your organization that tries to access the site, server, application \u2013 whatever \u2013 is going to get a connection error. That\u2019s going to send the wrong signals about your organization.<\/p>\n<p>At least for public facing properties, use a trusted CA.<\/p>\n<h2>Lack of Automation<\/h2>\n<p>Automation is almost a necessity once you get to a certain size, but even if you don\u2019t think you\u2019re big enough it\u2019s still an option that might be worth exploring. As with any form of automation, automating aspects of your PKI improves efficiency and reduces the <a href=\"https:\/\/www.thesslstore.com\/blog\/report-biggest-cyber-security-threat-employees\/\">potential for human mistakes<\/a>. Automation helps with the renewal of certificates and keys. It can also track and store data related to your certificates and keys, things like:<\/p>\n<ul>\n<li>How many certificates have been issued?<\/li>\n<li>What are those certificates for?<\/li>\n<li>How many keys are we currently in possession of?<\/li>\n<li>Who requested these?<\/li>\n<li>Who has access to them?<\/li>\n<\/ul>\n<p>You know, things that would be good to keep track of. Without automation, you\u2019re left trying to keep information organized across spread sheets that are maintained by humans and <a href=\"https:\/\/www.thesslstore.com\/blog\/report-70-us-employees-lack-strong-knowledge-privacy-security-best-practices\/\">there are a litany of problems that can come from that<\/a>.<\/p>\n<h2>Lack of Visibility<\/h2>\n<p>The last of the PKI certificate management mistakes we&#8217;ll cover is also one of the most dangerous: a lack of visibility over your PKI. Specifically, your leaf certificates. You need to be able to see all of the certificates you have issued, who they were issued by, when they expire\u2014you need a complete inventory accounting.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-7378\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Network-Icon-Isolated-On-White-228222082-300x300.jpg\" alt=\"pki certificate management mistakes\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Network-Icon-Isolated-On-White-228222082-300x300.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Network-Icon-Isolated-On-White-228222082-768x768.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Network-Icon-Isolated-On-White-228222082-1024x1024.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Network-Icon-Isolated-On-White-228222082.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>This is really the only way you can guard against rogue certificates\u2014valid certificates that have been compromised. If the certificate has the name of one of your domains in it, an attacker could impersonate your organization and do all kinds of harm. The point isn\u2019t to get into the weeds about rogue certificates, it\u2019s to undergird our point about the need to have visibility over your entire PKI. This is a function of proper certificate management.<\/p>\n<p>Fortunately, there are a number of great tools that can help you with certificate management both from Certificate Authorities like <a href=\"https:\/\/www.thesslstore.com\/partner\/comodo-certificate-management.aspx\">Comodo<\/a> and <a href=\"https:\/\/www.thesslstore.com\/partner\/symantec-complete-website-security.aspx\">DigiCert<\/a>, and also from world class third-party security companies like <a href=\"https:\/\/www.thesslstore.com\/partner\/certificate-authority-driver-venafi.aspx\">Venafi<\/a>. What works best for you and your organization comes down to your own unique circumstances, but there is a certain size where you would be remiss not to have some kind of management apparatus \u2013 <a href=\"https:\/\/www.thesslstore.com\/pdf\/enterprise-mgmt-solutions.pdf\">even if you build it yourself<\/a> \u2013 that can give you visibility and control over your entire PKI.<\/p>\n<h2>Avoiding the most common PKI certificate management mistakes<\/h2>\n<p>As we\u2019ve discussed, there is not shortage of potential PKI certificate management mistakes to make when setting up your organization\u2019s PKI, but if I may, perhaps the best piece of advice that supersedes all of this is just two words:<\/p>\n<p><span style=\"color: #ff6600;\"><strong>Don\u2019t rush.<\/strong><\/span><\/p>\n<p>Take your time when you\u2019re implementing PKI for your organization. Do the requisite research on setting the right policies and choosing the correct configurations. Make sure to consult with anyone who is going to be a stakeholder, try to anticipate where this could conflict with other network security policies.<\/p>\n<p>Just take your time.<\/p>\n<p>And don\u2019t be afraid to ask for help. This is complicated. <a href=\"https:\/\/www.thesslstore.com\/partner\/enterprise-solutions.aspx\">Sometimes even the experts need experts<\/a>. It\u2019s better to find the right people to put the right implementation in place \u2013 one that scales and maintains long-term viability \u2013 than to try to do it all in-house and muck it up. That will only end up costing you more in the long run.<\/p>\n<p><em>As always, leave any comments or questions below\u2026<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7276\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568.jpg\" alt=\"Hashed Out by The SSL Store is the voice of record in the SSL\/TLS industry.\" width=\"1559\" height=\"407\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568.jpg 1559w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568-300x78.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568-768x200.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568-1024x267.jpg 1024w\" sizes=\"auto, (max-width: 1559px) 100vw, 1559px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a lot of moving parts with Public Key Infrastructure, which means there\u2019s plenty of room for PKI certificate management mistakes Public Key Infrastructure is the backbone of most&#8230;<\/p>\n","protected":false},"author":6,"featured_media":7397,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":"","tve_updated_post":"","tve_custom_css":"","tve_user_custom_css":"","tve_globals":{},"tcb2_ready":0,"tcb_editor_enabled":0,"tve_landing_page":"","_tve_header":"","_tve_footer":""},"categories":[130],"tags":[228],"class_list":["post-7371","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-everything-encryption","tag-pki","post-with-tags"],"views":33796,"jetpack_featured_media_url":"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/09\/bigstock-Network-Security-116151761.jpg","_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/7371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/comments?post=7371"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/7371\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media\/7397"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media?parent=7371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/categories?post=7371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/tags?post=7371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}