Blog

Roles in cryptography

Roles Involved

In previous sections, we distinguished between a key's purpose, its classification, authorization for its use, and the various stages of its lifecycle. Another question is who is responsible for specific activities. Key material management is not merely a technical discipline; it encompasses decisions regarding the key's purpose and usage, KMS or HSM administration, renewal, response to compromise, and independent oversight. If all these activities are concentrated in a single identity, the compromise of that account could bypass a significant portion of security controls. Therefore, it is advisable to distinguish between organizational roles and their respective responsibilities. However, this does not mean that every role must be assigned to a different person in every organization; what matters is the resulting model of authorizations and checks and balances.

Basic Roles

For a basic model, three main responsibilities can be distinguished:

  • Key Owner – determines the key's intended use, classification, and required level of protection, and is responsible for ensuring the key is used in accordance with its defined purpose;
  • Key User / Key Holder – an entity authorized to use the key for defined cryptographic operations. In the case of a personal signing key, this is typically a specific individual;
  • Administrator / Operator – ensures the technical operation of the KMS, HSM, PKI, and related infrastructure within the scope of their assigned privileges.

These roles may overlap in smaller environments. For sensitive keys, however, it is advisable to further separate the associated responsibilities. The reason is not merely to prevent intentional misuse. It is equally important to limit the impact of a privileged account compromise, an administrator error, or a misconfiguration. The goal is to ensure that the compromise of a single identity does not allow for the independent execution of a critical operation or the acquisition of excessive control over key material.

Separation of Duties and the Four-Eyes Principle

A fundamental principle is the Separation of Duties (SoD). For instance, the person deciding on the use of a key should not simultaneously hold administrative privileges that would allow them to bypass that decision. For critical operations, this principle can be supplemented by the Four-Eyes Principle. A critical operation then requires the participation or approval of at least two independent individuals. Examples include:

  • creation or activation of a CA key,
  • export or recovery of key material, if such an operation is permitted,
  • modification of cryptographic policy,
  • modification of permissions for a highly sensitive key,
  • deactivation or destruction of a key,
  • key recovery following a disaster,
  • modification of HSM or KMS configuration with security implications.

For the most sensitive operations, even simple approval by two individuals may not be sufficient. The M-of-N principle—such as 2-of-3 or 3-of-5—can be employed. Under this approach, an operation can proceed only if the specified minimum number of authorized individuals participate in it. It is crucial to distinguish between approving an operation and technically executing it. If a single person approves and executes an operation while also having the ability to delete or alter the audit log, the separation of duties is merely nominal.

Roles are not universal

The names of specific roles vary among manufacturers of KMS/HSM and PKI products, as well as across security methodologies. Therefore, one should not assume that roles such as Cryptographic Officer or Key Custodian carry the same privileges in every context. More important than the role name itself is the specific set of:

  • permissions,
  • responsibilities,
  • limitations,
  • approval mechanisms,
  • and audit capabilities.

In practice, the following model can be used, for example:

RolePrimary Responsibility
Key OwnerDetermines the purpose, classification, and lifecycle requirements for a specific key.
Cryptographic Asset OwnerResponsible for a specific cryptographic asset or group of assets from the organization's perspective.
Key User / Cryptographic UserUses the key only within the scope of assigned permissions and the defined purpose.
Key CustodianEnsures controlled handling of key material during sensitive procedures, such as key ceremonies or recovery.
Key Recovery OfficerPerforms or coordinates the authorized recovery of key material.
KMS AdministratorTechnically manages the KMS, including its configuration, lifecycle, policies, and integrations.
HSM AdministratorTechnically manages the HSM, including its configuration, partitions, devices, and related infrastructure.
Cryptographic OfficerPerforms authorized security-cryptographic operations within the KMS/HSM according to the assigned role.
Cryptographic OperatorEnsures the operational execution of defined cryptographic operations and procedures.
PKI AdministratorManages PKI, CA, RA, and related revocation and validation services.
CA Officer / CA Key CustodianPerforms critical operations related to the CA and the protection of CA private keys, often under a multi-person control regime.
Registration Authority (RA)Verifies the identity and authorization of an entity prior to the issuance of a certificate or other cryptographic asset.
Key / Certificate IssuerEnsures the authorized issuance of a key, certificate, or related cryptographic object.
Cryptographic Policy OwnerDefines cryptographic policies, permitted algorithms, parameters, and usage rules.
Security AuthorityDetermines security requirements and decides on their application to the cryptographic infrastructure.
Cryptographic Architecture OwnerDesigns the target architecture of the cryptographic environment and its trust boundaries.
Cryptographic AdministratorPerforms technical administration of the broader cryptographic infrastructure within the scope of assigned privileges.
Cryptographic AuditorIndependently reviews configuration, privileges, processes, audit logs, and adherence to established rules.
Cryptographic Compliance OfficerMonitors the cryptographic environment's compliance with internal policies, standards, and regulatory requirements.
Data OwnerIs responsible for protected data and determines protection requirements, rather than for the technical aspects themselves. key management.
Key Management AuthorityCentrally coordinates key management rules and processes; may also act as the authority for key issuance and lifecycle management.
Compromise Officer / Incident RoleCoordinates the response to suspected compromises of keys, certificates, or cryptographic infrastructure.
Relying PartyA party that relies on the result of a cryptographic operation, such as the validity of a certificate or signature.
Verifier / ValidatorVerifies a cryptographic result, such as a digital signature, certificate chain, or MAC.

This is not a universal catalog that must be implemented in full by every organization. Some roles may be combined, depending on the organization's size and risk profile. Conversely, for critical infrastructure, it is advisable to further segregate responsibilities.

Key Owner vs. Key Custodian

The distinction between a Key Owner and a Key Custodian warrants special attention. Ownership does not imply physical or technical possession of the key. For instance, a Key Owner might be an organizational unit responsible for using the key for a specific application or business process. The key itself may be stored in an HSM to which the Key Owner has no administrative access. Conversely, the Key Custodian does not necessarily determine the key's purpose; their role is to ensure that key material is handled in accordance with approved procedures. This may include, for example, participation in a key ceremony, key renewal, or working with a secret-sharing mechanism.
This separation is particularly important for highly sensitive keys. A person with the technical ability to manipulate the key should not automatically decide how that key will be used.

CA and PKI

A clear separation of roles is typical for a Certificate Authority (CA). A CA's private key can be one of an organization's most critical cryptographic assets; depending on the CA's position in the hierarchy, its compromise could allow for the unauthorized issuance of certificates trusted within the given PKI. Therefore, critical CAs employ a combination of HSMs, role separation, and controlled procedures known as key ceremonies. Generating, activating, backing up, renewing, or destroying a CA key may require the presence of multiple authorized individuals.
A CA Officer need not be an HSM Administrator. An HSM Administrator might manage the HSM's technical configuration, while a CA Officer is authorized to perform specific operations involving the CA key. This separation reduces the risk that the compromise of a single administrator account could lead directly to the compromise of the CA.

KMS and HSM

A similar separation can be applied to KMS and HSM systems. A KMS Administrator should be able to manage the KMS configuration, key lifecycles, and access policies, but should not automatically gain the ability to export or directly access HSM-protected key material.
Conversely, an HSM Administrator may possess extensive privileges regarding the technical configuration of the HSM but should not automatically own all the keys stored within it.
It is important to recognize that while an HSM protects key material, it does not in itself resolve the entire issue of authorization. For instance, if a KMS Administrator has the authority to instruct the KMS to perform a cryptographic operation using a specific key, they may not need know the key itself. Nevertheless, they may be able to influence its use. Therefore, it is necessary to control not only the possibility of obtaining key material but also the possibility of unauthorized initiation of a cryptographic operation.

Audit and Independent Review

The Cryptographic Auditor plays a distinct role. An audit should not merely verify whether roles are correctly configured within the system. The auditor should be able to verify, for example:

  • who can create the key,
  • who can activate it,
  • who can use it,
  • who can modify its policy,
  • who can deactivate or destroy it,
  • who can change permissions,
  • who can perform recovery,
  • whether critical operations are performed under a four-eyes or M-of-N regime,
  • whether operations are recorded in audit logs,
  • whether logs are protected against unauthorized modification,
  • whether the actual configuration complies with the security policy.

At the same time, the auditor should not be able to modify the system configuration they are auditing during their routine work. Audit independence is therefore another practical application of the principle of Separation of Duties.

The Role of Applications and AI Agents

In modern environments, it is no longer possible to model all users solely as physical persons. A significant portion of cryptographic operations is performed by applications, services, and other workloads; in some environments AI agents as well.
An application should have its own technical identity and its own set of permissions. It should not use a personal administrator account or an account shared among multiple services. Similarly, from the perspective of the KMS, an AI agent should be treated as a distinct workload identity. The agent's permissions must be restricted based on its specific purpose. For example, it might be granted permission to perform a decryption operation with a specific key, but lack the permission to export the key, modify its policy, or destroy it. Furthermore, for sensitive operations, additional human authorization may be required. This is particularly important in situations where the autonomous execution of an operation could have a significant impact on data or infrastructure.

Roles versus technical permissions

It is advisable to distinguish between an organizational role and a technical role within a specific system. A person might be the organizational "Key Owner" for a particular application but hold no administrative permissions within the KMS. Conversely, a KMS Administrator might possess the technical permissions necessary to operate the system without owning a single key within the KMS. Likewise, a single person need not correspond to only one role; in a small environment, multiple roles might be consolidated into one person. However, such consolidation must be explicitly assessed for risk and, in the case of critical operations, mitigated by additional control mechanisms.
Thus, the result of a properly designed system is not necessarily the greatest possible number of roles. The goal is to distribute responsibilities such that no single person, account, or service possesses more privileges than strictly necessary, and so that the compromise of a single identity does not allow the entire security model to be bypassed. For critical cryptographic operations, it is advisable to combine the separation of duties, the principle of least privilege, multi-factor authentication, "four-eyes" or M-of-N authorization, and independent auditing. In this context, KMS and HSM solutions serve not merely as technical means for key storage, but as components of a broader system of organizational and technical controls.

Conclusion

Roles in key material management are not merely an arbitrary organizational scheme. They exist to ensure that decision-making, technical implementation, key usage, and independent oversight are not concentrated in a way that creates undue risk through their combination. At the same time, there is no need to create dozens of roles simply for the sake of formal separation; what matters is the specific privileges a role actually holds and how the exercise of those privileges can be controlled.
This is also important for subsequent parts of the series. Roles determine who can intervene in the key lifecycle, who can alter its state, and who can perform specific cryptographic operations. Conversely, the technical implementation within a KMS or HSM determines how these rules are actually enforced. Thus, key management is shifting from a question of "where do we store the key" to a question of who can do what, under what conditions, and how that can be proven after the fact.

The next part of the series can therefore focus on cryptography—specifically, key material and its lifecycle within the context of European and national regulations.

References:

  1. FIPS 140-3, roles, services and authentication in cryptographic modules.
    Source: https://csrc.nist.gov/pubs/fips/140-3/final
  2. ISO/IEC 19790:2025, roles, services, authentication and lifecycle assurance.
    Source: https://www.iso.org/standard/82423.html
  3. NIST SP 800-57 Part 1 Rev. 5, key-management functions and responsibilities.
    Source: https://csrc.nist.gov/pubs/sp/800/57/pt1/r5/final
  4. OASIS KMIP 2.1, management operations and managed-object attributes.
    Source: https://docs.oasis-open.org/kmip/kmip-spec/v2.1/os/kmip-spec-v2.1-os.html

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.