Blog

Key Management

Key Management and Governance

A cryptographic key is often viewed simply as something an application creates, stores in an HSM or KMS, and subsequently uses. As long as everything works, there seems to be no reason to give it further thought. Problems arise, however, when we need to answer simple questions: Why does this key exist? Who is responsible for it? What is it used for? What happens if it is compromised? Who can replace it? And what will stop working if we invalidate it?
At that point, it is no longer just about cryptography. Security, operations, accountability, asset management, and—in some cases—regulatory requirements all come into play. Consequently, cryptographic key management is not merely a matter of creation and storage; it is about managing security assets throughout their entire lifecycle.
Most of the terms used here were explained in the article "Secrets Without Secrets." Others will be explained as the series progresses. The fundamental terminology regarding electronic signatures, seals, and trust services is based, among other things, on the eIDAS Regulation and its associated implementing acts.

A Key Is Not Just a Key

One of the most common issues in managing cryptographic material is how it is perceived. Organizations routinely track servers, databases, applications, network components, accounts, and licenses as assets. However, a cryptographic key is often viewed merely as a file stored on a server, an object within an HSM, or a record in a KMS. Such a perspective is insufficient.
Like any other asset, a cryptographic key has an owner, a purpose, a value, a classification, dependencies, and a lifecycle. At the same time, it possesses a crucial characteristic: the key materialitself may be so sensitive that the organization must not expose it to a standard asset management system. Consequently, "tracking" does not mean recording the secret itself. Instead, the focus is on information that enables the key to be managed. For instance, an organization should be able to answer questions such as:

  • What key exists, what is its purpose, and which system uses it?
  • Who owns it, who manages it, and who or what can use it?
  • With which algorithm and parameters was it created?
  • Where is it stored, and can it be exported?
  • When was it created and activated, and when does its validity or usage period expire?
  • How will it be replaced, what happens if it is compromised, and how will it be revoked or destroyed?
  • What other objects depend on it?

In its key management methodology, NIST explicitly includes key and certificate inventories, metadata protection, access control, authentication, and other areas related to managing the lifecycle of cryptographic material. This shifts the focus from simple "key storage" to the management of cryptographic assets. It is at this point that cryptographic management begins to resemble traditional asset management. Knowing that a specific object exists is not enough; one must also understand its purpose, the associated responsibilities, its relationships, and its status. As with other methods, standardized inventories are available—specifically, the Cryptography Bill of Materials (CBOM) in the context of cryptography. Unfortunately, their current scope does not yet cover the components that require such inventories.

PKI as a System of Interconnected Assets

The situation is even more complex in a PKI environment. An organization manages more than just private keys; there is a wide range of interconnected objects:

  • private keys, public keys, and certificates,
  • registration and certification authorities, including root and intermediate authorities,
  • trust anchors,
  • validation services,
  • certificate revocation lists (CRLs),
  • certificate repositories,
  • HSMs and KMSs,
  • systems (services) for certificate issuance and renewal,
  • identities and services to which individual keys and certificates are assigned.

These objects cannot be managed in isolation. For instance, the information "Certificate for server XY" is of limited use from an asset management perspective. It is far more important to understand the relationships between the service, the identity, the certificate, the public and private keys, and the mechanism protecting the key. This relationship can be described in simplified terms as follows:
service – identity – certificate – public key – private key – cryptographic module – owner – lifecycle

Such a link makes it possible to determine what happens, for example, when a specific key is compromised or when a certificate expires.

A certificate is not a key

One of the most common misconceptions in the field of PKI is confusing a certificate with a key.
A certificate is not a public key. It contains a public key along with other data and represents a structured statement regarding the link between the public key and an identity or other attributes.

A private key, on the other hand, is secret cryptographic material. Possessing it enables the performance of corresponding cryptographic operations, such as creating digital signatures.

From a record-keeping perspective, therefore, the certificate and the key represent two separate objects linked to one another. This link is practically significant, for instance, during certificate renewal. Renewing a certificate does not necessarily mean generating a new key. In some cases, the existing key can be used, whereas in others, it is advisable—for security or procedural reasons— to generate a new key. It is therefore important to distinguish at least between the following:

  • renew – renewal or issuance of a new certificate according to a specific process,
  • rekey – creation of a new key or key pair,
  • rotation – planned replacement of the key currently in use,
  • revocation – withdrawal of trust in a certificate,
  • expiration – end of validity,
  • destruction – secure destruction of a key or key material,
  • compromise – suspicion or confirmation of key compromise.

This distinction might seem like a matter of semantics. However, in the event of an incident, the difference between “renewing a certificate” and “replacing a key” is certainly not merely academic.

PKI is not a product, but a system of processes and technology

Another common oversimplification is viewing PKI merely as a specific technology or the installation of a certificate authority. In reality, PKI is a combination of technical tools, rules, and processes that enable the creation and maintenance of trusted links between an identity, a public key, and cryptographic operations. A certificate authority is just one component of this system.
Therefore, managing PKI involves more than just configuring individual components. Equally important are the processes that dictate what happens to a key and a certificate throughout their lifecycle. These include, for example:

  • subject registration and identity verification,
  • key generation,
  • key activation and usage,
  • certificate issuance and distribution,
  • certificate renewal,
  • key rotation,
  • attribute modification,
  • revocation,
  • handling compromise,
  • archiving,
  • secure lifecycle termination.

Each such process should have a designated owner. It should also be possible to determine who can initiate the process, who approves it, who executes it, and how its execution is recorded. At this point, PKI begins to closely resemble traditional asset management.

A key owner is not the same as a key administrator

A key may be technically managed by a PKI administrator. However, this does not automatically mean that the administrator is the owner. The owner should be able to determine the key's purpose, be responsible for its use, and decide on its lifecycle. The custodian, on the other hand, ensures the technical execution of the established activities.
This distinction is important, for example, when the system owner changes or when the system is decommissioned.
If a system is being retired, simply removing the server or application is not enough. It is also necessary to identify which cryptographic keys and certificates depend on it and how their lifecycles should be concluded.
Without this link, a situation arises where the organization holds keys known to exist, yet the reason for their continued existence is unclear. This is precisely one of the typical challenges of cryptographic asset management. Therefore, it makes sense to address the detailed division of responsibilities among the owner, custodian, administrator, security role, and audit function separately.

PKI is not the only area of application

Although PKI is a significant area for the use of cryptographic keys, it is certainly not the only one. Keys are used, for example, for:

  • protecting data on disks and in file systems,
  • encrypting databases,
  • protecting backups,
  • TLS and other forms of communication protection,
  • authentication,
  • digital signatures and electronic seals,
  • VPNs,
  • tokenization,
  • API protection,
  • deriving additional keys.

In these cases, a certificate authority or a traditional PKI infrastructure may not exist. However, the need to manage key material remains. An organization still needs to know which key is being used, its purpose, who is responsible for it, where it is stored, who can use it, and what happens if it is compromised or its use is discontinued. That is precisely why it is not advisable to base key management solely on certificate tracking. Certificates represent only one part of the broader cryptographic landscape.

Conclusion

Key management is therefore not merely a technical discipline within PKI. PKI represents a significant and often highly visible part of the issue, as there is a direct link between the key, the certificate, identity, and trustworthiness. In some cases, the legal implications of electronic signatures or seals also come into play.
However, cryptographic keys exist outside of PKI as well. From an asset management perspective, it is therefore appropriate to view a key as a security asset with its own identity, owner, purpose, classification, dependencies, and lifecycle. Simply put:
asset - owner - purpose - key - protection - usage - monitoring - change - rotation - invalidation - disposal

In the context of PKI, this model extends to include additional relationships:
identity - key - certificate - certification authority - trust anchor - service - process

Thus, the purpose of key management is not merely to prevent an attacker from accessing a private key. It is equally important to know why the key exists, who is responsible for it, what depends on it, who may use it, when it should be replaced, and what should happen when its trustworthiness or utility comes to an end. Only by integrating cryptography, PKI, asset management, and organizational processes does a truly managed key material infrastructure emerge.
A cryptographic key is therefore not merely a technical tool. It is an asset whose compromise can have technical, operational, economic, and legal consequences. And just as with other critical assets, knowing of its existence is not enough. An organization must know what it is, who owns it, why it exists, where it is used, who may use it, and when it should cease to exist.

References:

  1. NIST SP 800-57 Part 1 Rev. 5, Recommendation for Key Management: General.
    Source: https://www.nist.gov
  2. NIST SP 800-130, A Framework for Designing Cryptographic Key Management Systems.
    Source: https://www.nist.gov
  3. ISO/IEC 11770-1:2010, Key management, Part 1: Framework.
    Source: https://www.iso.org/
  4. RFC 5280, Internet X.509 PKI Certificate and CRL Profile.
    Source: https://www.rfc-editor.org/
  5. RFC 3647, Internet X.509 PKI Certificate Policy and Certification Practices Framework.
    Source: https://www.rfc-editor.org/

Autor článku:

Jan Dušátko
Jan Dušátko

Jan Dušátko has been working with computers and computer security for almost a quarter of a century. In the field of cryptography, he has cooperated with leading experts such as Vlastimil Klíma or Tomáš Rosa. Currently he works as a security consultant, his main focus is on topics related to cryptography, security, e-mail communication and Linux systems.

1. Introductory Provisions

1.1. These General Terms and Conditions are, unless otherwise agreed in writing in the contract, an integral part of all contracts relating to training organised or provided by the trainer, Jan Dušátko, IČ 434 797 66, DIČ 7208253041, with location Pod Harfou 938/58, Praha 9 (next as a „lector“).
1.2. The contracting parties in the general terms and conditions are meant to be the trainer and the ordering party, where the ordering party may also be the mediator of the contractual relationship.
1.3. Issues that are not regulated by these terms and conditions are dealt with according to the Czech Civil Code, i.e. Act No.89/2012 Coll.
1.4. All potential disputes will be resolved according to the law of the Czech Republic.

2. Creation of a contract by signing up for a course

2.1. Application means unilateral action of the client addressed to the trainer through a data box with identification euxesuf, e-mailu with address register@cryptosession.cz or register@cryptosession.info, internet pages cryptosession.cz, cryptosession.info or contact phone +420 602 427 840.
2.2. By submitting the application, the Client agrees with these General Terms and Conditions and declares that he has become acquainted with them.
2.3. The application is deemed to have been received at the time of confirmation (within 2 working days by default) by the trainer or intermediary. This confirmation is sent to the data box or to the contact e-mail.
2.4. The standard time for registration is no later than 14 working days before the educational event, unless otherwise stated. In the case of a natural non-business person, the order must be at least 28 working days before the educational event.
2.5. More than one participant can be registered for one application.
2.6. If there are more than 10 participants from one Client, it is possible to arrange for training at the place of residence of the intermediary or the Client.
2.7. Applications are received and processed in the order in which they have been received by the Provider. The Provider immediately informs the Client of all facts. These are the filling of capacity, too low number of participants, or any other serious reason, such as a lecturer's illness or force majeure. In this case, the Client will be offered a new term or participation in another educational event. In the event that the ordering party does not agree to move or participate in another educational event offered, the provider will refund the participation fee. The lack of participants is notified to the ordering party at least 14 days before the start of the planned term.
2.8. The contract between the provider and the ordering party arises by sending a confirmation from the provider to the ordering party.
2.9. The contract may be changed or cancelled only if the legal prerequisites are met and only in writing.

3. Termination of the contract by cancellation of the application

3.1. The application may be cancelled by the ordering party via e-mail or via a data mailbox.
3.2. The customer has the right to cancel his or her application for the course 14 days before the course takes place without any fees. If the period is shorter, the subsequent change takes place. In the interval of 7-13 days, an administrative fee of 10% is charged, cancellation of participation in a shorter interval than 7 days then a fee of 25%. In case of cancellation of the application or order by the customer, the possibility of the customer's participation in an alternative period without any additional fee is offered. The right to cancel the application expires with the implementation of the ordered training.
3.3. In case of cancellation of the application by the trainer, the ordering party is entitled to a full refund for the unrealized action.
3.4. The ordering party has the right to request an alternative date or an alternative training. In such case, the ordering party will be informed about all open courses. The alternative date cannot be enforced or enforced, it depends on the current availability of the course. If the alternative training is for a lower price, the ordering party will pay the difference. If the alternative training is for a lower price, the trainer will return the difference in the training prices to the ordering party.

4. Price and payment terms

4.1. By sending the application, the ordering party accepts the contract price (hereinafter referred to as the participation fee) indicated for the course.
4.2. In case of multiple participants registered with one application, a discount is possible.
4.3. The participation fee must be paid into the bank account of the company held with the company Komerční banka č. 78-7768770207/0100, IBAN:CZ5301000000787768770207, BIC:KOMBCZPPXXX. When making the payment, a variable symbol must be provided, which is indicated on the invoice sent to the client by the trainer.
4.4. The participation fee includes the provider's costs, including the training materials. The provider is a VAT payer.
4.5. The client is obliged to pay the participation fee within 14 working days of receipt of the invoice, unless otherwise stated by a separate contract.
4.6. If the person enrolled does not attend the training and no other agreement has been made, his or her absence is considered a cancellation application at an interval of less than 7 days, i.e. the trainer is entitled to a reward of 25% of the course price. The overpayment is returned within 14 days to the sender's payment account from which the funds were sent. Payment to another account number is not possible.
4.7. An invoice will be issued by the trainer no later than 5 working days from the beginning of the training, which will be sent by e-mail or data box as agreed.

5. Training conditions

5.1. The trainer is obliged to inform the client 14 days in advance of the location and time of the training, including the start and end dates of the daily programme.
5.2. If the client is not a student of the course, he is obliged to ensure the distribution of this information to the end participants. The trainer is not responsible for failure to comply with these terms and conditions.
5.2. By default, the training takes place from 9 a.m. to 5 p.m. at a predetermined location.
5.3. The trainer can be available from 8 a.m. to 9 a.m. and then from 17 a.m. to 6 p.m. for questions from the participants, according to the current terms and conditions.
5.4. At the end of the training, the certificate of absorption is handed over to the end users.
5.5. At the end of the training, the end users evaluate the trainer's approach and are asked to comment on the evaluation of his presentation, the manner of presentation and the significance of the information provided.

6. Complaints

6.1. If the participant is grossly dissatisfied with the course, the trainer is informed of this information.
6.2. The reasons for dissatisfaction are recorded in the minutes in two copies on the same day. One is handed over to the client and one is held by the trainer.
6.3. A statement on the complaint will be submitted by e-mail within two weeks. A solution will then be agreed within one week.
6.4. The customer's dissatisfaction may be a reason for discontinuing further cooperation, or financial compensation up to the price of the training, after deduction of costs.

7. Copyright of the provided materials

7.1. The training materials provided by the trainer in the course of the training meet the characteristics of a copyrighted work in accordance with Czech Act No 121/2000 Coll.
7.2. None of the training materials or any part thereof may be further processed, reproduced, distributed or used for further presentations or training in any way without the prior written consent of the trainer.

8. Liability

8.1. The trainer does not assume responsibility for any shortcomings in the services of any third party that he uses in the training.
8.2. The trainer does not assume responsibility for injuries, damages and losses incurred by the participants in the training events or caused by the participants. Such costs, caused by the above circumstances, shall be borne exclusively by the participant in the training event.

9. Validity of the Terms

9.1 These General Terms and Conditions shall be valid and effective from 1 October 2024.

Consent to the collection and processing of personal data

According to Regulation (EU) No 2016/679 of the European Parliament and of the Council on the protection of individuals with regard to the processing of personal data and on the free movement of such data and repealing Directive 95/46/EC (General Data Protection Regulation, hereinafter referred to as "the Regulation"), the processor xxx (hereinafter referred to as "the Controller") processes personal data. Individual personal data that are part of the processing during specific activities at this web presentation and in the course of trade are also broken down.
Although the collection of data is ubiquitous, the operation of this website is based on the right to privacy of each user. For this reason, the collection of information about users takes place to the extent absolutely necessary and only if the user decides to contact the operator. We consider any further collection and processing of data unethical.

Information about the records of access to the web presentation

This website does not collect any cookies. The site does not use any analytical scripts of third parties (social networks, cloud providers). For these reasons, an option is also offered for displaying the map in the form of a link, where the primary source is OpenStreet and alternatives then the frequently used Maps of Seznam, a.s., or Google Maps of Google LLC Inc. The use of any of these sources is entirely at the discretion of the users of this site. The administrator is not responsible for the collection of data carried out by these companies, does not provide them with data about users and does not cooperate on the collection of data.
Logging of access takes place only at the system level, the reason being the identification of any technical or security problems. Other reasons are overview access statistics. No specific data is collected or monitored in this area and all access records are deleted after three months.

Information about contacting the operator of the site

The form for contacting the operator of the site (administrator) contains the following personal data: name, surname, e-mail. These data are intended only for this communication, corresponding to the address of the user and are kept for the time necessary to fulfil the purpose, up to a maximum of one year, unless the user determines otherwise.

Information about the order form

In case of an interest in the order form, the form contains more data, i.e. name, surname, e-mail and contact details for the organisation. These data are intended only for this communication, corresponding to the address of the user and are kept for one year, unless the user determines otherwise. In the event that a business relationship is concluded on the basis of this order, only the information required by Czech law on the basis of business relations (company name and address, bank account number, type of course and its price) will continue to be kept by the administrator.

Information about the course completion document

Within the course, a course completion document is issued by the processor. This document contains the following data: student's name and surname, the name and date of the course completion and the employer's name. The information is subsequently used for the creation of a linear hash tree (non-modifiable record). This database contains only information about the provided names and company names, which may or may not correspond to reality and is maintained by the processor for possible re-issuance or verification of the document's issuance.

Rights of the personal data subject

The customer or visitor of this website has the possibility to request information about the processing of personal data, the right to request access to personal data, or the right to request the correction or deletion of any data held about him. In the case of deletion, this requirement cannot be fulfilled only if it is not data strictly necessary in the course of business. The customer or visitor of this website also has the right to obtain explanations regarding the processing of his personal data if he finds out or believes that the processing is carried out in violation of the protection of his private and personal life or in violation of applicable legislation, and the right to request removal of the resulting situation and to ensure the correction.
Furthermore, the customer/visitor of this website may request restriction of processing or object to the processing of personal data and has the right to withdraw his/her consent to the processing of personal data at any time in writing, without prejudice to the lawfulness of their processing prior to such withdrawal. For this purpose, the contact e-mail address support@cryptosession.cz is used.
The customer/visitor has the right to file a complaint against the processing of personal data with the supervisory authority, which is the Office for Personal Data Protection.