A cryptographic key does not simply come into existence once and then merely
"persist." From the moment of its creation until its invalidation or destruction, it passes
through a series of states and operations. Each of these steps can impact the security of
the entire system.
Key material is not intended solely for electronic signatures; it can be used for encryption,
authentication, the protection of communication channels, the derivation of further keys, or other
cryptographic operations. Consequently, the approach to lifecycle management must be based on
the key's specific purpose and the consequences of its compromise. Previous sections addressed
classification, purpose, and authorization. The lifecycle builds directly upon these topics: it
defines what happens to the key over time, who is permitted to make specific changes, and how
the execution of those changes can be documented.
It is useful to view the lifecycle as a managed sequence of states. While specific terminology may vary between systems, typical distinctions include:
Not every key necessarily passes through all the listed states. For example, a public key may
be used over the long term to verify historical signatures, whereas a private signing key can be
revoked and destroyed once it is no longer in use. Conversely, for encryption keys, it may be
necessary to retain the ability to recover or decrypt historical data.
Therefore, the priority is not to create a universal list of states, but rather to define the permitted
transitions between states and the rules for executing them. Any state change should be authorized
and auditable.
Proper record-keeping must be an integral part of lifecycle management. This does not mean that the organization must record the actual content of the private key; in fact, exposing private key material to a standard record-keeping system could pose a security risk. Records should primarily include metadata, such as:
Such records make it possible to determine which keys the organization possesses, their purpose, and their status, without the records themselves needing to contain the actual secret key material.
Generation is one of the most sensitive phases of the lifecycle. The security of the resulting key
depends not only on the size of the key space but also on the quality of the randomness source,
the correct initialization of the generator, and the proper implementation of cryptographic mechanisms.
If the entropy source is predictable or insufficient, the resulting key may be predictable
or may originate from a significantly smaller set of values than the algorithm assumes. The problem,
therefore, may not lie in the cryptographic algorithm itself, but rather in its implementation
or the environment in which it is used.
It is therefore useful to distinguish between two statements:
Consequently, the practical issue is usually not the number of keys created. What matters more
is whether the keys are truly generated in a cryptographically secure manner and whether
repeated or predictable generation occurs.
For sensitive keys, it may be advisable to generate the key directly within a secure environment,
such as an HSM, to avoid the need to subsequently transfer the private key to a standard operating system.
Uniqueness is particularly important for keys whose use must be unequivocally linked
to a specific entity or service. In the case of personal signing keys, the sharing of the same
private key among multiple individuals poses a critical problem. If multiple entities possess
the same key, it is impossible to determine—based solely on the cryptographic signature—which
of them actually performed the operation. This undermines the ability to demonstrate the
specific holder's exclusive control over the key.
The situation may differ for other types of keys. For example, certain system or group
services may intentionally use a single key for a precisely defined technical purpose.
However, this is not merely a matter of technical uniqueness. It is necessary to know who can
use the key and what the consequences of its misuse would be.
Uniqueness
Keys must therefore be understood in the context of their identity, purpose, and authorization,
rather than merely as a requirement that two randomly generated values
do not mathematically match.
A key may not be automatically ready for use upon creation. In some systems,
there is a separate process between generation and activation that verifies
the key's purpose, its association with an identity or service, and the authorization
for its use. This separation is particularly useful when a key is created
automatically but its use requires approval or further review. Activation
should therefore be logged, just like other significant state changes.
During use, it is necessary to monitor not only the number of cryptographic operations
but, above all, who or what can initiate the key's use and whether the key
leaves the secure environment. Millions of operations performed directly within
an HSM may not pose the same type of risk as a single export of a private
key to an insecure environment.
Protection of key material can involve several levels. A simple example is
access control via an ACL (Access Control List), where the key file is accessible
only to a specific user or process. However, this primarily provides protection
at the operating system level. If an attacker gains sufficient system privileges
or compromises the process handling the key, an ACL alone may not suffice.
Another option is to store the key in an encrypted form. This limits the risk associated with a compromise
of the storage itself, but raises another question: where and how is the key decrypted, and how long does
it remain available in system memory?
Specialized tools, such as HSMs or KMSs, can provide a higher level of protection. A key feature of an HSM
is the ability to perform cryptographic operations directly within the device, without needing to export
the private key to the general-purpose operating system. A KMS, meanwhile, provides centralized management
of keys, their lifecycles, and access policies.
However, neither HSMs nor KMSs constitute a complete, standalone key management solution. Issues such as
administrator authentication and authorization, auditing, configuration, backup and recovery,
availability, and lifecycle termination still need to be addressed.
With cloud-based KMS or HSM solutions, it is also necessary to assess the division of responsibilities
between the organization and the provider. Technical key protection is only one aspect of the decision;
auditability, administration capabilities, backup and recovery, service availability, provider
dependency, and service termination procedures are also important.
Backing up key material is not merely a matter of availability. It creates an additional copy of
the secret that must be protected. For encryption keys, a backup may be essential to restore access
to historical data; in such cases, the loss of a single key could mean losing access to a vast amount
of information.
The situation is different for personal signing keys. A copy of a private key can compromise the
requirement for exclusive control by the holder;
therefore, the existence of such a copy must be evaluated based on the key's purpose
and the specific requirements for the given type of signature. Thus, the issue is not
merely a question of "to back up or not to back up," but also:
A key does not necessarily have to be used throughout its entire lifespan. An organization
may establish a maximum period for its active use or define other criteria for its replacement.
A new key then assumes its role, while the old key transitions to a different state.
Reasons for rotation may include, for example, changes in security requirements,
scheduled renewal, system changes, or a response to a compromise. In some systems,
rotation can be performed automatically, whereas in others, a managed process
requiring explicit approval may be necessary.
It is important to distinguish between ceasing the use of a key and destroying the key. For example,
a signing key may cease to be used for new signatures, yet the public key, certificate,
and other information may still be required to verify historical signatures.
Similarly, regarding encryption keys, it may be necessary to retain an old key to decrypt
historical data, even if it is no longer permitted for new encryption operations.
Compromise—or a reasonable suspicion thereof—represents a special situation. If there is a possibility that a private or secret key has fallen into the hands of an unauthorized person, it must be possible to quickly restrict or halt its use. The procedure should include at least:
Regarding signing keys, the situation is unique in that a compromise does not merely pose a problem for future operations. It is also necessary to assess signatures created prior to the discovery of the compromise and to preserve the information required for their verification and evaluation.
Ceasing active use does not necessarily mean the immediate destruction of all material associated
with the key. An organization may need to retain the public key, the certificate, information
regarding its validity, or other evidentiary data. Conversely, the private or secret key itself
should be securely destroyed once the necessary retention period has ended, provided there is no
longer a reason to keep it. The goal is to prevent the old key from remaining usable—undetected—within
a system or backup.
Therefore, disposal must encompass not only the primary storage location but—depending on the
architecture—also backup copies, exports, and any other locations where key material might exist.
For devices that support secure key destruction directly on the hardware, it is advisable to utilize
these built-in mechanisms and log the outcome of the operation.
Key usage frequency is a relevant parameter, yet a key's security level cannot be determined based on this factor alone. A key used a thousand times a day might be securely operated within an HSM, whereas a key used only once a year could be stored in an insecure environment. It is therefore advisable to monitor, in particular:
It is also important to distinguish between the frequency of cryptographic operations and the frequency with which key material is accessed. A service may perform a large number of signing or decryption operations without the private key ever leaving the HSM. Conversely, a single export of the key to an insecure environment can constitute a critical security incident.
The lifecycle of key material is not merely a sequence of technical operations. It is a managed process
that encompasses generation, registration, activation, usage, protection, potential backup and recovery,
rotation, response to compromise, archiving, and finally, revocation or destruction.
Each phase may hold different significance depending on the key type. For a signing key, protecting exclusive
control and maintaining the trustworthiness of historical signatures are paramount. For an encryption key,
on the other hand, long-term availability for data recovery may be the critical factor. For authentication,
sealing, or TSA keys, the scope of consequences varies
depending on the identity or service the key represents.
Therefore, security cannot be assessed based on a single parameter. What matters
is a combination of purpose, authorization, protection method, usage duration,
availability, recovery options, and end-of-lifecycle rules. Once the lifecycle
is defined, another practical question arises: what characteristics must the
system actually using the keys possess to handle their protection without
unduly impacting operations? The next part of the series will therefore focus
on the latency and throughput of cryptographic operations.
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“).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.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.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.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.6. Complaints
6.1. If the participant is grossly dissatisfied with the course, the trainer is informed of this information.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.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.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.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.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.