Source: https://patents.google.com/patent/US10116440B1/en
Timestamp: 2020-08-10 17:01:08
Document Index: 62868949

Matched Legal Cases: ['Application No. 62', 'Application No. 2012315674', 'Application No. 2012315674', 'Application No. 12835045', 'Application No. 2017', 'Application No. 2017135822', 'Application No. 10201608067']

US10116440B1 - Cryptographic key management for imported cryptographic keys - Google Patents
Cryptographic key management for imported cryptographic keys Download PDF
US10116440B1
US10116440B1 US15/239,725 US201615239725A US10116440B1 US 10116440 B1 US10116440 B1 US 10116440B1 US 201615239725 A US201615239725 A US 201615239725A US 10116440 B1 US10116440 B1 US 10116440B1
US15/239,725
Aleksandrs J. Rudzitis
Alexis Lynn Carlough
2016-08-09 Priority to US201662372686P priority Critical
2016-08-17 Application filed by Amazon Technologies Inc filed Critical Amazon Technologies Inc
2016-08-17 Priority to US15/239,725 priority patent/US10116440B1/en
2016-08-17 Assigned to AMAZON TECHNOLOGIES, INC. reassignment AMAZON TECHNOLOGIES, INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CARLOUGH, ALEXIS LYNN, RUBIN, GREGORY ALAN, Campagna, Matthew John, RUDZITIS, ALEKSANDRS J.
2018-10-30 Publication of US10116440B1 publication Critical patent/US10116440B1/en
A cryptographic key management service receives a request to import a first cryptographic key. In response to the request, the service creates a public cryptographic key and a private cryptographic key. The private cryptographic key is encrypted using a second cryptographic key to create an import key token. The import key token and the public cryptographic key are provided in response to the request. The service receives an encrypted first cryptographic key, which the service decrypts using the private cryptographic key to obtain the first cryptographic key. The service stores the first cryptographic key and enables its use for the performance of cryptographic operations.
This application claims benefit of U.S. Patent Application No. 62/372,686, filed Aug. 9, 2016, entitled “CRYPTOGRAPHIC KEY MANAGEMENT FOR IMPORTED CRYPTOGRAPHIC KEYS,” which is incorporated by reference for all purposes. This application further incorporates by reference for all purposes the full disclosure of U.S. Pat. No. 9,178,701, entitled “PARAMETER BASED KEY DERIVATION.”
Customers of a computing resource service provider or other service providers often store sensitive information using a variety of services provided by these service providers. To ensure the security of this sensitive information, the customers of these service providers often use cryptographic keys to encrypt the sensitive information. The cryptographic keys may be managed by these service providers, which may control access to the cryptographic keys and enable authorized users to access these cryptographic keys. However, some customers of these service providers may want to import their own cryptographic keys, which can be used to ensure the security of their sensitive information. Enabling customers to provide their own cryptographic keys is complex and may require extensive use of resources to manage while ensuring the security of these provided cryptographic keys.
FIG. 2 shows an illustrative example of an environment in which a cryptographic key management service generates an import key token to be used for importing a customer cryptographic key in accordance with at least one embodiment;
FIG. 3 shows an illustrative example of an environment in which a cryptographic key management service obtains a customer cryptographic key to be used for cryptographic operations in accordance with at least one embodiment;
FIG. 4 shows an illustrative example of an environment in which a security module of a cryptographic key management service stores imported customer cryptographic keys for use in cryptographic operations in accordance with at least one embodiment;
FIG. 5 shows an illustrative example of a workflow diagram for processing a request to import a customer cryptographic key in accordance with at least one embodiment;
FIG. 6 shows an illustrative example of a process for generating an import key token in response to a request to import a customer cryptographic key in accordance with at least one embodiment;
FIG. 7 shows an illustrative example of a process for implementing an imported customer cryptographic key in accordance with at least one embodiment;
FIG. 8 shows an illustrative example of a process for performing a cryptographic operation using an imported cryptographic key in accordance with at least one embodiment; and
This disclosure relates to enabling customers of a cryptographic key management service to import cryptographic keys that can be used to encrypt data and to decrypt data that is protected using these imported cryptographic keys. In an example, a customer of the cryptographic key management service transmits a request to the cryptographic key management service to enable the customer to import a new cryptographic key. In the request, the customer may provide metadata associated with the cryptographic key that is to be imported. For instance, the customer may specify a variety of access policies for the cryptographic key, which may be used by the cryptographic key management service to control access to the cryptographic key that is to be imported by the customer. Additionally, the metadata associated with the cryptographic key may specify the description of the cryptographic key that is to be imported, an alias for the cryptographic key, and the like. The metadata for the cryptographic key may be used to identify the cryptographic key once it has been imported to the cryptographic key management service.
In response to the request from the customer to import a new cryptographic key, the cryptographic key management service may generate a cryptographic key pair that can be used by the customer to import its new cryptographic key pair. In an example, the cryptographic key management service uses a domain cryptographic key maintained by the service to encrypt the private cryptographic key of the newly generated cryptographic key pair to create an import key token that may be provided to the customer. The cryptographic key management service may serialize the import key token with an expiration date in order to limit the amount of time available to the customer to provide its cryptographic key for import. The cryptographic key management service may provide this import key token, along with the public cryptographic key of the cryptographic key pair, to the customer to enable the customer to import its cryptographic key. In response to receiving the public cryptographic key and the import key token from the cryptographic key management service, the customer may use the public cryptographic key to encrypt the cryptographic key that is to be imported. The customer may provide the encrypted cryptographic key and the import key token to the cryptographic key management service to import the customer's cryptographic key.
In some examples, the cryptographic key management service, in response to receiving the encrypted cryptographic key and the import key token from the customer, will determine if the import key token has expired. If the import key token has expired, the cryptographic key management service may reject the encrypted cryptographic key provided by the customer. However, if the import key token has not expired, the cryptographic key management service may use its domain cryptographic key to decrypt the import key token to obtain the private cryptographic key generated by the service. The cryptographic key management service may use the private cryptographic key to decrypt the imported cryptographic key from the customer. Using information specified by the customer in its request, the cryptographic key management service may set the expiration date for the imported cryptographic key. Further, the cryptographic key management service may encrypt the imported cryptographic key using the domain cryptographic key of the service to produce an encrypted key token. This encrypted key token is associated with the metadata provided by the customer in its request. Additionally, the cryptographic key management service may store the expiration date for the encrypted key token to the metadata or to the encrypted key token itself.
Users of the imported cryptographic key may submit requests to the cryptographic key management service to perform a cryptographic operation using the imported cryptographic key. The requests may include an identifier of the imported cryptographic key, which may be provided to the customer as a result of the importation of the cryptographic key and which the cryptographic key management service may use to identify the imported cryptographic key. The cryptographic key management service may determine whether the imported cryptographic key has expired. If the imported cryptographic key has expired, the cryptographic key management service may deny the request. Alternatively, if the imported cryptographic key is still active, the cryptographic key management service may enable use of the imported cryptographic key for the requested cryptographic operation, subject to any policies or grants that may be applicable to the request and to the user that submitted the request.
In this manner, a customer of a cryptographic key management service can securely import a cryptographic key for use in cryptographic operations. In addition, the techniques described and suggested in this disclosure enable additional technical advantages. For instance, because the private cryptographic key is encrypted using the cryptographic key management service's domain cryptographic key, the private cryptographic key is made inaccessible to the customer and to any other entity that obtains the import key token from the cryptographic key management service. Thus, as a result of the customer encrypting the cryptographic key that is to be imported into the service, no entity other than the cryptographic key management service may be able to obtain the customer's cryptographic key as the cryptographic key management service is the only entity that has the domain cryptographic key necessary to obtain the private cryptographic key from the import key token that can be used to decrypt the customer's cryptographic key.
FIG. 1 shows an illustrative example of an environment 100 in which various embodiments can be implemented. In the environment 100, a customer, through a client device 102, may transmit a request to a cryptographic key management service 104 to import a customer cryptographic key 110 that can be used by the customer and other users for various cryptographic operations. The cryptographic operations may include use of the customer cryptographic key 110 to decrypt data stored within one or more services 112 of a computing resource service provider. The cryptographic key management service 104 may include one or more computer systems that are used to create, manage, and control cryptographic keys that can be used to encrypt and decrypt data maintained by other computing resource services 112. For instance, a customer of a computing resource service provider may transmit a request to the cryptographic key management service 104 to utilize an imported customer cryptographic key 110 to encrypt the customer's data stored within various computing resource services 112 provided by a computing resource service provider. Alternatively, the customer may transmit a request to the cryptographic key management service 104 to decrypt the customer's data through use of the customer cryptographic key 110 imported by the customer.
In an embodiment, the request to import a customer cryptographic key 110 includes master key metadata 106 for a customer master key. The customer master key is a logical construct that may be used to protect any cryptographic keys associated with the customer master key. The customer master key may initially have no associated cryptographic key and may not be used for any operations if a customer cryptographic key 110 has not been imported and an encrypted key token created based at least in part on the customer cryptographic key 110. The master key metadata 106 for the customer master key may specify an alias for the customer master key, any access control policies or grants for the customer master key, and the like. For instance, the master key metadata 106 may specify one or more grants that can be used to regulate access to the customer cryptographic keys imported to the cryptographic key management service 104. A grant may specify an entity that is the principal of the grant, such as an identifier of a user, a group of users, a role that may be assumed by users, and the like that may have permission to utilize a customer cryptographic key 110. The grant may further specify identifiers for principals that may have permission to retire the grant. Additionally, the grant may identify the customer cryptographic key to which the grant applies. The cryptographic key management service 104 may generate, in response to receiving the master key metadata 106 from the customer, a customer master key. The cryptographic key management service 104 may store the customer master key for the customer in an account profile datastore, where the customer master key may be associated with the customer's account profile.
If the customer has provided the master key metadata 106 for a customer master key to the cryptographic key management service 104, the customer may submit a request to the cryptographic key management service 104 to import a customer cryptographic key 110 into the customer master key. The request may specify the cryptographic algorithm used for the customer cryptographic key 110, such as the Advanced Encryption Standard (AES) or any of the Secure Hash Algorithm (SHA) cryptographic algorithms (e.g., SHA-1, SHA-2, SHA-3, etc.). Additionally, the customer may specify the key size for the customer cryptographic key 110 (e.g., 128-bit, 256-bit, etc.) subject to the selected cryptographic algorithm. In response to the customer request to import the customer cryptographic key 110, the cryptographic key management service 104 may generate a cryptographic key pair using one or more public cryptographic key cryptosystems, such as a Rivest-Shamir-Adleman (RSA) algorithm. In some embodiments, the customer can specify the one or more public cryptographic key cryptosystems (e.g., RSA, elliptic curve algorithms, Diffie-Hellman algorithms, etc.) that the cryptographic key management service 104 can use to generate the cryptographic key pair. While public cryptographic key cryptosystems are used extensively throughout the present disclosure for the purpose of illustration, other cryptographic algorithms may be used by the cryptographic key management service 104 to generate the cryptographic key pair, such as elliptic curve cryptography. It should be noted that the request to import the customer cryptographic key 110 may also include instructions for generating the customer master key, to which the customer cryptographic key 110 is to be added.
The cryptographic key management service 104 may serialize the private cryptographic key of the newly generated cryptographic key pair with an expiration date based at least in part on the validity period for the cryptographic key pair. If the private cryptographic key is serialized with the expiration date successfully, the cryptographic key management service 104 may utilize a domain cryptographic key to encrypt the serialized private cryptographic key, resulting in an import key token for the customer cryptographic key 110 that is to be imported to the cryptographic key management service 104. The cryptographic key management service 104 may transmit, in response to the customer request, the import key token and the public cryptographic key to the customer client device 102 to enable the customer to import its customer cryptographic key 110.
In some examples, “serializing” may refer to the use of additional authenticated data (AAD) in the encryption process for the private cryptographic key. For instance, the import key token may include the encrypted private cryptographic key, a message authentication code (MAC), and the AAD. In some instances, the expiration date for the private cryptographic key may be placed on encryption contexts, where encrypted data can be cryptographically bound to aspects of the encryption contexts. As an illustrative example, the AAD can be used to cryptographically bind the expiration date on the private cryptographic key. The AAD may be used to ensure that entities cannot change the expiration date for the private cryptographic key without affecting the MAC that results from the encryption process. The AAD may be cryptographically bound to the import key token by way of the MAC resulting from an authenticated encryption mode of a cipher, such as AES-GCM.
In some embodiments, the customer maintains one or more security modules 108 that may be used to generate and maintain the customer's cryptographic keys. A security module 108 is a physical computing device or other computing device of the customer that is used to manage cryptographic keys on behalf of the customer of the computing resource service provider. For instance, the customer may use the security module 108 to provision a new cryptographic key for encrypting the customer's data, which may be imported to the cryptographic key management service 104. The security module 108 can be a hardware security module (HSM), which can include a plug-in device for a customer client device 102 or an external device that attaches to the client device 102. The HSM may utilize various mechanisms to provide tampering resistance and may provide notifications to the customer if an attempt to tamper with a cryptographic key is detected. Other security appliances that are not classified as hardware security modules may be used as the security module 108 to protect the cryptographic keys stored therein.
In response to receiving the import key token and the public cryptographic key from the cryptographic key management service 104, the customer may utilize the public cryptographic key to encrypt the customer cryptographic key 110 that is to be imported to the cryptographic key management service 104. If the customer maintains a security module 108 that is used to generate and manage the customer cryptographic key 110, the customer may provide the received import key token and the public cryptographic key to the security module 108 for its use. This may cause the security module 108 to use the public cryptographic key to encrypt the customer cryptographic key maintained on behalf of the customer. The customer may also identify an expiration date for the customer cryptographic key 110, which may be used by the cryptographic key management service 104 to determine a time at which the customer cryptographic key 110 is no longer usable for cryptographic operations.
The customer, either through the client device 102 or the security module 108, may transmit the encrypted customer cryptographic key and the import key token to the cryptographic key management service 104 to implement the customer cryptographic key 110. In response to receiving the encrypted customer cryptographic key and the import key token, the cryptographic key management service 104 may evaluate the import key token to determine whether it has expired. As described above, the cryptographic key management service 104 may serialize the private cryptographic key with an expiration date that is based at least in part on the validity period for the private cryptographic key. If the import key token has expired, the cryptographic key management service 104 may reject the encrypted customer cryptographic key. However, if the import key token has not expired, the cryptographic key management service 104 may utilize the domain cryptographic key to decrypt the import key token to obtain the private cryptographic key. This private cryptographic key may be used by the cryptographic key management service 104 to decrypt the encrypted customer cryptographic key provided by the customer.
The cryptographic key management service 104 may utilize the customer cryptographic key 110 to produce an encrypted key token that may be associated with the customer master key. For instance, the cryptographic key management service 104 may set the expiration date for the customer cryptographic key 110 based at least in part on the expiration date provided by the customer in its request to import a cryptographic key. The cryptographic key management service 104 may use the domain cryptographic key to encrypt the customer cryptographic key 110 to produce the encrypted key token. This encrypted key token may be persisted in a token datastore of the cryptographic key management service 104 for use in response to requests to perform cryptographic operations using the customer cryptographic key 110. The expiration date for the customer cryptographic key 110 may be stored within the metadata for the customer master key. Thus, the cryptographic key management service 104 may associate the customer master key with the imported customer cryptographic key 110. The cryptographic key management service 104 may transmit a notification to the customer indicating that the association between the customer cryptographic key and the customer master key has been made.
The customer and other authorized users may submit requests to the cryptographic key management service 104 to perform cryptographic operations using the customer cryptographic key 110. For instance, a customer or other authorized user may submit a request to the cryptographic key management service 104 that includes an identifier for the customer master key to enable performance of a cryptographic operation using the customer cryptographic key 110 associated with the customer master key. In response to such a request, the cryptographic key management service 104 may determine whether the customer cryptographic key 110 has expired. For instance, in response to a request to utilize the customer cryptographic key 110 to perform a cryptographic operation, the cryptographic key management service 104 may derive, from the customer cryptographic key 110, one or more cryptographic keys for the purpose of performing the requested cryptographic operation. If the customer cryptographic key 110 has expired, use of the customer cryptographic key 110 is blocked resulting in the rejection of the request. The customer master key with associated metadata may still be available, which may allow customers to reimport the customer cryptographic key 110 under the same customer master key identifier to restore functionality for the customer master key.
In an embodiment, if a customer cryptographic key 110 has expired, the cryptographic key management service 104 transmits a notification to the customer. The cryptographic key management service 104, through a computing resource monitoring service, may generate metrics based at least in part on usage and characteristics of the imported cryptographic keys. Customers may access the computing resource monitoring service to set custom thresholds for alarms and publish alarm notifications. Thus, as a customer cryptographic key 110 approaches an expiration date for the key, the customer may be notified of the approaching expiration date and take appropriate action (e.g., extend the expiration date for the customer cryptographic key 110, etc.).
If the customer cryptographic key 110 has not expired, use of the customer cryptographic key 110 may be permitted subject to any applicable grants and policies. For instance, the cryptographic key management service 104 may obtain the customer cryptographic key 110 and use the customer cryptographic key 110 to perform the cryptographic operation specified by the customer or other authorized user to fulfill the request. For example, the cryptographic key management service 104 may access the one or more other services 112 on behalf of the customer or other authorized user and utilize the customer cryptographic key 110 to decrypt data from the one or more other services 112 as specified in the request from the customer or other authorized user. The cryptographic key management service 104 may provide the decrypted data to the customer or other authorized user to fulfill the request.
As noted above, a customer of a computing resource service provider may transmit a request to a cryptographic key management service to import a customer cryptographic key that may be used to perform various cryptographic operations. To ensure that the customer cryptographic key is imported securely, the cryptographic key management service may provide an import key token and a public cryptographic key of a cryptographic key pair to enable the customer to encrypt the customer cryptographic key and to provide the encrypted customer cryptographic key to the cryptographic key management service. Accordingly, FIG. 2 shows an illustrative example of an environment 200 in which a cryptographic key management service 204 generates an import key token 216 to be used for importing a customer cryptographic key in accordance with at least one embodiment.
In the environment 200, a customer, through a client device 202, transmits a request to a cryptographic key management service 204 to import a customer cryptographic key that is to be associated with a particular customer master key. The customer cryptographic key may be used to perform cryptographic operations, which may include use of the customer cryptographic key to decrypt data stored within one or more services 218 of a computing resource service provider or to encrypt data stored within these one or more services 218. In the request, the customer may provide metadata 208 for the customer master key, which may be used to regulate use of the customer master key and to establish the association with the customer cryptographic key that is to be imported. For example, the metadata 208 provided by the customer may include policies and grants that may be used to control access to the customer cryptographic key associated with the customer master key. Additionally, the metadata 208 may specify one or more identifiers or aliases for the customer master key and the customer cryptographic key that is to be imported to the cryptographic key management service 204.
In an embodiment, the cryptographic key management service 204 includes a cryptographic key provisioning engine 206, which may process the incoming metadata 208 from the customer, as well as the request to import a customer cryptographic key. The cryptographic key provisioning engine 206 may include one or more computer systems of the cryptographic key management service 204 or an application installed on a computer system of the cryptographic key management service 204 that processes incoming requests to utilize cryptographic keys and enables use of the cryptographic keys for performance of cryptographic operations. The cryptographic key provisioning engine 206 may also process incoming requests to import customer cryptographic keys and to manage any of these customer cryptographic keys on behalf of a customer or other authorized users.
In response to receiving the metadata 208 from the customer client device 202 for the customer master key, the cryptographic key provisioning engine 206 may access the account profile datastore 214 to modify the customer's account profile and store the obtained metadata 208. Through the customer's account profile, the cryptographic key provisioning engine 206 may update information regarding the customer master key, such as the expiration date for the customer master key, policies or grants applicable to the customer master key or the customer cryptographic key that is to be imported, and the like.
In addition to accessing the customer's account profile to update the account profile based at least in part on the provided metadata 208, the cryptographic key provisioning engine 206 may transmit a request to a security module 210 of the cryptographic key management service 204 to generate a cryptographic key pair that may be used for the importation of the customer cryptographic key. Similar to the security module 108 described above in connection with FIG. 1, the security module 210 is a physical computing device or other computing device of the cryptographic key management service 204 that is used to manage cryptographic keys on behalf of customers of the computing resource service provider. For instance, in response to a request from a customer to provision a new cryptographic key for encrypting the customer's data, the cryptographic key management service 204 may generate the cryptographic key and store the cryptographic key within the security module 210. The security module 210 can be an HSM, which can include a plug-in device for a cryptographic key management service 204 computer system or an external device that attaches to the computer system. The HSM may utilize various mechanisms to provide tampering resistance and may provide notifications to the cryptographic key management service 204 if an attempt to tamper with a cryptographic key is detected. Other security appliances that are not classified as hardware security modules may be used as the security module 210 to protect the cryptographic keys stored therein. Any cryptographic keys stored in the security module 210 are not accessible by the customer or any other users of the cryptographic key management service 204.
In response to the request from the cryptographic key provisioning engine 206, the security module 210 may generate a cryptographic key pair that can be used to encrypt the customer cryptographic key that is to be imported by the customer. The cryptographic key pair may be created using one or more public cryptographic key cryptosystems, such as RSA or any other asymmetric cryptographic key algorithm (e.g., elliptic curve cryptography, etc.). The cryptographic key pair may be generated in order to facilitate importation of the customer cryptographic key into the identified customer master key, as specified in the provided metadata 208. The private cryptographic key of the cryptographic key pair may be serialized with an expiration date determined based at least in part on the validity period for the cryptographic key pair.
The security module 210 may use a domain cryptographic key maintained by the cryptographic key management service 204 to encrypt the private cryptographic key and the expiration date, resulting in an import key token 216. In an embodiment, the security module 210 stores the import key token 216 in a token container 212 of the cryptographic key management service 204. The security module 210 may retrieve the import key token 216 from the token container 212 in response to receiving the encrypted customer cryptographic key from the customer, as will be described in greater detail below. The security module 210 may transmit the import key token 216 and the public cryptographic key of the cryptographic key pair to the cryptographic key provisioning engine 206. In response to receiving the import key token 216 and the public cryptographic key from the security module 210, the cryptographic key provisioning engine 206 may transmit the import key token 216 and the public cryptographic key to the customer, through its client device 202.
FIG. 3 shows an illustrative example of an environment 300 in which a cryptographic key management service 304 obtains a customer cryptographic key 316 to be used for cryptographic operations in accordance with at least one embodiment. In the environment 300, the customer, through its client device 302, may receive the import key token and the public cryptographic key generated by the security module 310, as described above in connection with FIG. 2. In response to receiving the import key token and the public cryptographic key from the cryptographic key provisioning engine 306, the customer, through its client device 302, may utilize the public cryptographic key to encrypt the customer cryptographic key 316 that is to be imported to the cryptographic key management service 304, resulting in an encrypted customer cryptographic key 320.
In some embodiments, the customer maintains a security module 308 that is used to generate and maintain the customer cryptographic keys used by the customer. If the customer maintains a security module 308 for its customer cryptographic keys, the customer may transmit the received import key token and the public cryptographic key to the security module 308 for encryption of the desired customer cryptographic key 316. The security module 308 may use the public cryptographic key to encrypt the desired customer cryptographic key 316 and provide the encrypted customer cryptographic key 320 to the customer. Alternatively, the security module 308 may provide the desired customer cryptographic key 316 to the customer. The customer, through its client device 302 may use the public cryptographic key to encrypt the customer cryptographic key 316 to create the encrypted customer cryptographic key 320.
The customer, through its client device 302, may transmit the encrypted customer cryptographic key 320 and the import key token to the cryptographic key management service 304. In response to receiving the encrypted customer cryptographic key 320 and the import key token, the cryptographic key provisioning engine 306 may transmit the encrypted customer cryptographic key 320 and the import key token to the security module 310 for processing. In some embodiments, the security module 310 uses an identifier of the import security token to determine an expiration date for the private cryptographic key included in the import security token. For instance, the security module 310 may maintain a table comprising key-value pairs for any created import key tokens. The security module 310 may use the identifier of the import key token to find a corresponding value in the table that can be used to determine the expiration date for the private cryptographic key. In an alternative embodiment, the security module 310 uses the domain cryptographic key to decrypt the import key token and obtain the expiration date for the private cryptographic key.
In some embodiments, the security module 310 encodes one or more restrictions, including an expiration date for the private cryptographic key into the ciphertext of the import key token. For instance, the security module 310 may encode certain restrictions, such as limitations on geographic regions from which the import key token may be received, limitations on the computing resource services for which the import key token may be used, and the like. If the customer provides the import key token along with the encrypted customer cryptographic key 320, the security module 310 may hash the import key token with one or more reference variables to determine whether the import key token satisfies the one or more restrictions imposed by the security module 310. If the one or more restrictions are met, the import key token may be deemed valid. Otherwise, the import key token may be deemed invalid and rejected. A more detailed description of these techniques is described in U.S. Pat. No. 9,178,701, entitled “Parameter Based Key Derivation,” which is hereby incorporated in its entirety by reference.
In an embodiment, the security module 310 hashes the provided customer cryptographic key and uses the resulting hash to determine whether the customer cryptographic key satisfies one or more restrictions imposed by the security module 310 and the customer. For instance, a customer master key may be associated with a single customer cryptographic key. If the customer cryptographic key expires, the customer may submit a request to re-import the customer cryptographic key for the customer master key. The security module 310 may retain a hash of the expired customer cryptographic key, which it may compare to the resulting hash of the provided customer cryptographic key to determine whether there is a match. If there is a match, the customer cryptographic key may be associated with the customer master key, as will be described in greater detail below. However, if the hashes do not match, the provided customer cryptographic key may be different from the expired customer cryptographic key. As a result, the security module 310 may reject the provided customer cryptographic key as it may not be used with the specified customer master key. If the customer is providing a customer cryptographic key for the first time, the security module 310 may retain the hash of the provided customer cryptographic key in association with the customer master key for reference.
If the import key token has expired (e.g., the expiration date has passed for the private cryptographic key), the security module 310 may reject the encrypted customer cryptographic key 320. Further, the security module 310 may transmit a notification to the cryptographic key provisioning engine 306 to indicate that the encrypted customer cryptographic key 320 has been rejected. The cryptographic key provisioning engine 306 may notify the customer that its request to import a customer cryptographic key has been denied. In some instances, if the import key token has expired, the security module 310 may generate a new cryptographic key pair and utilize the new private cryptographic key of this pair to generate a new import key token. This import key token and the newly generated public cryptographic key may be provided to the customer to enable the customer to provide the customer cryptographic key, encrypted using the new public cryptographic key.
If the import key token has not expired, the security module 310 may use the domain cryptographic key to decrypt the import key token and obtain the private cryptographic key of the cryptographic key pair. If the import key token was originally stored within the token container 312, the security module 310 may retrieve import key token from the token container 312. The security module 310 may utilize the private cryptographic key from the import key token to decrypt the encrypted customer cryptographic key 320 to obtain the customer cryptographic key 316. The security module 310 may encrypt the customer cryptographic key 316 using the domain cryptographic key to produce an encrypted key token 322. The encrypted key token 322 may be provided with an expiration date based at least in part on an expiration date provided by the customer in its request to import the customer cryptographic key 316.
The security module 310 may transmit the encrypted key token 322 to the token container 312. Additionally, the security module 310 may update the metadata for the customer master key to indicate the expiration date of the encrypted key token 322. The security module 310 may further cause the cryptographic key provisioning engine 306 to access the customer account profile in the account profile datastore 314 to indicate the expiration date of the encrypted key token 322. Thus, based on the customer's account profile settings, the cryptographic key provisioning engine 306 may notify the customer if the encrypted key token 322 is about to expire or has expired.
If the cryptographic key management service 304 receives a request to utilize a customer cryptographic key to perform a cryptographic operation, the cryptographic key management service 304 may determine whether the encrypted key token 322 that includes the customer cryptographic key has expired. If the encrypted key token 322 has expired, the cryptographic key management service 304 may deny the request to perform the cryptographic operation. However, if the encrypted key token 322 has not expired, the cryptographic key management service 304 may use the security module 310 to obtain the encrypted key token 322, use the domain cryptographic key to decrypt the encrypted key token 322 to obtain the customer cryptographic key, and use the customer cryptographic key to perform the requested cryptographic operation, which may include encryption or decryption of data provided by other computing resource services 318.
In an embodiment, if the encrypted key token 322 expires, the encrypted key token 322 is removed from the token container 312 and is blocked by the security module 310 such that any requests to utilize the encrypted key token 322 are denied. However, the customer master key and the associated metadata may remain and may be unaffected by the expiration of the encrypted key token 322. This may allow the customer to reimport its customer cryptographic key 316 under the same customer master key identifier to restore functionality for the customer master key. For instance, if customer data was previous encrypted using the customer cryptographic key 316 but the associated encrypted key token 322 has expired, the customer may import the customer cryptographic key 316 to the cryptographic key management service 304 to generate a new encrypted key token 322 that is associated with the customer master key. Thus, the customer may submit a request to perform a cryptographic operation using the customer cryptographic key that may be fulfilled.
As noted above, the cryptographic key management service may use a security module to generate a cryptographic key pair that can be used to enable a customer to import its customer cryptographic key. Further, the security module may use the customer cryptographic key, along with a domain cryptographic key, to generate an encrypted key token that is available for performance of cryptographic operations. Accordingly, FIG. 4 shows an illustrative example of an environment 400 in which a security module 404 of a cryptographic key management service stores imported customer cryptographic keys for use in cryptographic operations in accordance with at least one embodiment. In the environment 400, a cryptographic key provisioning engine 402 of the cryptographic key management service may transmit, in response to a customer request to import a customer cryptographic key, a notification to the security module 404 indicating that the request to import the customer cryptographic key has been received.
The security module 404 may include a key import processing engine 406, which may be an application installed on a computer system of the security module 404 that processes incoming requests from customers to import cryptographic keys and to generate encrypted key tokens based at least in part on the imported cryptographic keys. In response to the indication from the cryptographic key provisioning engine 402 regarding a customer request to import a customer cryptographic key, the key import processing engine 406 may create a cryptographic key pair that can be used to facilitate import of the customer cryptographic key. The cryptographic key pair may be created using one or more public cryptographic key cryptosystems, such as RSA or any other asymmetric cryptographic key algorithm (e.g., elliptic curve cryptography, etc.).
The private cryptographic key generated by the key import processing engine 406 may be serialized with an expiration date that is based at least in part on the validity period for the cryptographic key pair. This validity period may be encoded into the key import processing engine 406, may be set by an administrator of the cryptographic key management service, or by the computing resource service provider. The key import processing engine 406 may access a domain cryptographic key datastore 410 to obtain the active domain cryptographic key for the cryptographic key management service and utilize the domain cryptographic key to encrypt the private cryptographic key, creating an import key token for the customer. The key import processing engine 406 may store the import key token in the token container 412. Additionally, or alternatively, the key import processing engine 406 may provide the import key token to the cryptographic key provisioning engine 402, which may provide the import key token to the customer in response to its request. The key import processing engine 406 may also provide the public cryptographic key of the newly generated cryptographic key pair to the cryptographic key provisioning engine 402, which may provide the public cryptographic key to the customer.
As described above, a customer may use the public cryptographic key provided by the cryptographic key provisioning engine 402 to encrypt its customer cryptographic key that is to be imported. The customer may transmit this encrypted customer cryptographic key, as well as the import key token, to the cryptographic key provisioning engine 402. The customer may also specify a desired expiration date for the customer cryptographic key in its response to the cryptographic key provisioning engine 402. The cryptographic key provisioning engine 402 may provide the encrypted customer cryptographic key and the import key token to the key import processing engine 406 of the security module 404 for processing.
The key import processing engine 406 may evaluate the received import key token to determine whether the import key token has expired. For instance, the key import processing engine 406 may use the domain cryptographic key from the domain cryptographic key datastore 410 to decrypt the import key token and obtain the expiration date for the private cryptographic key. Alternatively, the key import processing engine 406 may evaluate a database or table comprising key-value entries for each import key token identifier. Using the database or table of key-value entries for import key tokens, the key import processing engine 406 may use the import key token identifier to identify an entry corresponding to the import key token. This entry may specify the expiration date for the import key token.
If the import key token has expired, the key import processing engine 406 may transmit a notification to the cryptographic key provisioning engine 402 indicating that the request to import the customer cryptographic key is to be denied. This may cause the cryptographic key provisioning engine 402 to deny the customer's request to import its customer cryptographic key. However, if the import key token has not expired, the key import processing engine 406 may use the domain cryptographic key to decrypt the import key token to obtain the private cryptographic key. The key import processing engine 406 may use the private cryptographic key to decrypt the encrypted customer cryptographic key. The key import processing engine 406 may store the customer cryptographic key within the imported cryptographic key datastore 408. Additionally, the key import processing engine 406 may use the domain cryptographic key to encrypt the customer cryptographic key, resulting in the creation of the encrypted key token 414. The encrypted key token 414 may be encoded with an expiration date for the encrypted key token 414 as specified by the customer in its request to import the customer cryptographic key. The key import processing engine 406 may store the newly created encrypted key token 414 in a token container 412 to make the encrypted key token 414 available for cryptographic operations. Further, the key import processing engine 406 may update the metadata of the customer's customer master key to store the expiration date of the encrypted key token 414.
FIG. 5 shows an illustrative example of a workflow diagram 500 for processing a request to import a customer cryptographic key in accordance with at least one embodiment. A customer of a computing resource service provider, through a client device 502 or other client, may transmit a request to the cryptographic key management service to import a customer cryptographic key to the service. In the request or at any time prior to the request, the customer, through the client device 502 may access the cryptographic key management service to create a customer master key. The customer master key may include metadata, provided by the customer, which may specify any access policies that are applicable to the customer master key and any customer cryptographic keys that are associated with the customer master key. Additionally, the customer may define, through the metadata, one or more aliases for the customer master key that may be used to identify the customer master key for requests to perform cryptographic operations. The metadata may further specify the cryptographic algorithms (e.g., Rivest-Shamir-Adleman (RSA), elliptic curve cryptography, etc.) that can be used for encryption of the customer cryptographic keys.
In response to the customer request to import a customer cryptographic key, the cryptographic key provisioning engine 504 of the cryptographic key management service may transmit a request to a security module 506 of the service to create a new cryptographic key pair that can be used to facilitate importation of the customer cryptographic key. Based at least in part on the customer preferences for cryptographic algorithms, the security module 506 may use the customer's preferred cryptographic algorithm to generate the new cryptographic key pair. The security module 506 may serialize the private cryptographic key of the cryptographic key pair with an expiration date based at least in part on the validity period for the cryptographic key pair. This validity period may be determined by an administrator of the cryptographic key management service or the computing resource service provider which provides the cryptographic key management service to its customers. The security module may use the domain cryptographic key of the cryptographic key management service to encrypt the private cryptographic key, producing an import key token. In some embodiments, the security module 506 may maintain a database of import key tokens, which may include entries for each import key token generated. Each of these entries may specify an identifier of an import key token and a corresponding expiration date for the token.
The security module 506 may transmit the newly created import key token 510 and the public cryptographic key of the cryptographic key pair to the cryptographic key provisioning engine 504 which may provide the import key token 510 and the public cryptographic key to the customer's client device 502. The customer, through its client device 502, may use the public cryptographic key provided by the cryptographic key provisioning engine 504 to encrypt its customer cryptographic key to produce the encrypted customer cryptographic key 512. In an embodiment, if the customer utilizes its own security module to generate and maintain its customer cryptographic keys, the customer may provide the import key token 510 and the public cryptographic key to this security module. The customer's security module may thus instead utilize the public cryptographic key to encrypt the customer cryptographic key that is to be imported. The customer's security module may provide the encrypted customer cryptographic key 512 and the import key token to the customer's client device 502.
The customer, through the client device 502, may transmit the encrypted customer cryptographic key 512 and the import key token to the cryptographic key provisioning engine 504. The cryptographic key provisioning engine 504 may provide the received encrypted customer cryptographic key 512 and the import key token to the security module 506 for processing. The security module 506 may evaluate the received import key token to determine whether it has expired. For instance, the security module 506 may access the import key token database and use an identifier of the received import key token to identify an entry corresponding to the import key token. Using the entry, the security module 506 may determine whether the import key token has expired. In an alternative embodiment, the security module 506 can use the domain cryptographic key to decrypt the import key token and evaluate the expiration date serialized therein to determine whether the import key token has expired. If the import key token has expired, the security module 506 may transmit a notification to the cryptographic key provisioning engine 504 to indicate that the request to import the customer cryptographic key should be denied.
In some embodiments, the security module 506 stores the import key token 510 in the token container 508 and provides an identifier of the import key token 510 to the cryptographic key provisioning engine 504, which provides the identifier to the client device 502. The security module 506 may maintain a mapping of import key token identifiers to the import key tokens stored in the token container 508. The client device 502 may provide the encrypted customer cryptographic key 512 and the import key token identifier to the cryptographic key provisioning engine 504, which provides the encrypted customer cryptographic key token 512 and the identifier to the security module 506. The security module 506 may use the identifier provided by the client device 502 to identify the corresponding import key token, which the security module 506 may evaluate as described above.
If the import key token has not expired, the security module 506 may use its domain cryptographic key to decrypt the import key token to obtain the private cryptographic key of the cryptographic key pair. The security module 506 may use the private cryptographic key from the import key token to decrypt the provided encrypted customer cryptographic key 512. As described above, a customer may specify a desired expiration date for its customer cryptographic key. As a result, the security module 506 may set the expiration date for the customer cryptographic key and use the domain cryptographic key to encrypt the customer cryptographic key, resulting in an encrypted key token 514. The security module 506 may provide the encrypted key token 514 to the cryptographic key provisioning engine 504.
The cryptographic key provisioning engine 504 may store the generated encrypted key token 514 in a token container 508 of the cryptographic key management service, thereby making the encrypted key token 514 available for use in cryptographic operations. The token container 508 may transmit an acknowledgment to the cryptographic key provisioning engine 504 to indicate that the encrypted key token 514 has been stored and cataloged successfully. This may cause the cryptographic key provisioning engine 504 to transmit a notification to the customer's client device 502 or to the customer itself indicating that the customer cryptographic key has been successfully imported into the cryptographic key management service and is available for performance of cryptographic operations. For instance, the cryptographic key management service may use the customer cryptographic key to derive one or more cryptographic keys for the purpose of performing the cryptographic operations.
As noted above, a customer may submit a request to the cryptographic key management service to import a customer cryptographic key for use in performing cryptographic operations. The request may specify an identifier of a customer master key, for which the customer may provide metadata specifying policies and grants that may be used to control access to the customer cryptographic key that is to be associated with the customer master key. Additionally, the metadata may specify one or more identifiers or aliases for the customer master key and the customer cryptographic key that is to be imported to the cryptographic key management service. In response to the request, the cryptographic key management service may generate a cryptographic key pair and an import key token, both of which may be used to facilitate the importation of the customer cryptographic key. Accordingly, FIG. 6 shows an illustrative example of a process 600 for generating an import key token in response to a request to import a customer cryptographic key in accordance with at least one embodiment. The process 600 may be performed by the aforementioned cryptographic key management service, which may include one or more security modules for the creation of cryptographic keys that may be used to facilitate the importation of customer cryptographic keys to the service.
In an embodiment, a customer of the computing resource service provider submits a request to the cryptographic key management service to create a logical imported customer master key. The customer master key may have no associated customer cryptographic keys and may not be usable for any cryptographic operations. The customer, in its request, may provide metadata for the customer master key, which may specify one or more access policies for the customer master key, one or more aliases for the customer master key, an expiration date for the customer master key, and the like. If the customer master key is created successfully, the customer may submit a request to the cryptographic key management service to import a customer cryptographic key to the customer master key for use in cryptographic operations. The cryptographic key management service may receive 602 the request to import the customer cryptographic key. The request may specify an identifier of the customer master key, a proposed identifier for the customer cryptographic key, an expiration date for the customer cryptographic key, and the like.
In response to the request, the cryptographic key management service may determine 604 whether the customer can be authenticated and is authorized to import a customer cryptographic key into the customer master key. For instance, if the request includes a unique user identifier for the customer and a corresponding set of credentials or proof of access to the credentials, the cryptographic key management service may transmit the unique user identifier and the provided credentials or proof of access to the credentials to an authentication service of the computing resource service provider. The authentication service may evaluate the provided information to determine whether the customer can be authenticated. For instance, the authentication service may access a user profile for the customer to obtain information that can be used to verify the provided information. If the authentication service determines that the information provided is valid and corresponds to the customer, the authentication service may authenticate the customer and transmit a notification to the cryptographic key management service to indicate that the client has been successfully authenticated.
If the customer cannot be authenticated or is not authorized to import a customer cryptographic key to the customer master key, the cryptographic key management service may deny 606 the request. However, if the customer has been successfully authenticated and is authorized to import a customer cryptographic key to the specified customer master key, the cryptographic key management service may create 608 a cryptographic key pair that can be used to facilitate the importation of the customer cryptographic key. For instance, the cryptographic key management service may use a security module to generate a cryptographic key pair. The cryptographic key pair may be created using one or more public cryptographic key cryptosystems, such as RSA or any other asymmetric cryptographic key algorithm (e.g., elliptic curve cryptography, etc.). In an embodiment, if the customer, in its request, specifies a specific cryptographic algorithm that is to be used for the cryptographic key pair, the cryptographic key management service will cause the security module to use the identified cryptographic algorithm to generate the cryptographic key pair.
The cryptographic key management service, through the security module, may serialize the private cryptographic key of the generated cryptographic key pair with an expiration date. The expiration date may be based at least in part on a validity period for cryptographic keys generated by the security module. This validity period may be defined through the configuration of the security module or the cryptographic key management service, established by an administrator of the cryptographic key management service through a policy or other encoding. The cryptographic key management service use a domain cryptographic key to encrypt the private cryptographic key to create 610 an import key token. The import key token may be stored within a token container of the cryptographic key management service and may be assigned an identifier. An entry corresponding to this identifier may be added to a database of import key tokens. The entry may specify the expiration date of the private cryptographic key and, hence, of the import key token.
The cryptographic key management service may obtain the import key token and the public cryptographic key of the cryptographic key pair from the security module. In response to obtaining the import key token and the public cryptographic key, the cryptographic key management service may provide 612 the import key token and the public cryptographic key to the customer or other requestor that may have submitted the request to import the customer cryptographic key. The customer or requestor is not provided with the domain cryptographic key used to create the import key token in order to prevent the customer or requestor from accessing the private cryptographic key encrypted therein. In some embodiments, the customer or requestor is not provided with the import key token, as the import key token may be stored in the token container. Thus, the customer or requestor may be provided with an identifier of the import key token, which may be provided with the customer cryptographic key during importation of the customer cryptographic key.
As noted above, a customer or other requestor that receives the import key token and the public cryptographic key from the cryptographic key management service may use the public cryptographic key to encrypt its customer cryptographic key. The customer or requestor may transmit the import key token and the encrypted customer cryptographic key to the cryptographic key management service to enable the service to associate the customer cryptographic key with the customer master key identified in the original request to import a customer cryptographic key. The cryptographic key management service may decrypt the encrypted customer cryptographic key and use the customer cryptographic key to generate an encrypted key token, which the cryptographic key management service may associate with the specified customer master key. Accordingly, FIG. 7 shows an illustrative example of a process 700 for implementing an imported customer cryptographic key in accordance with at least one embodiment. The process 700 may be performed by the aforementioned cryptographic key management service in conjunction with a security module implemented by the service.
A customer or other requestor that has received an import key token and a public cryptographic key from the cryptographic key management service may utilize the public cryptographic key to encrypt its customer cryptographic key. In some embodiments, if the customer or other requestor maintains its own security module for the generation and management of customer cryptographic keys, the customer or other requestor provides the import key token and the public cryptographic key to the security module. This security module may utilize the public cryptographic key to encrypt the customer cryptographic key that is to be imported. The customer or other requestor may provide the encrypted customer cryptographic key and the import key token to the cryptographic key management service for importation. Thus, the cryptographic key management service may receive 702 the encrypted customer cryptographic key and the import key token from the customer or other requestor.
In response to receiving the encrypted customer cryptographic key and the import key token from the customer or other requestor, the cryptographic key management service may determine 704 whether the customer or other requestor can be successfully authenticated and is authorized to import the customer cryptographic key. If the customer or other requestor cannot be successfully authenticated or, based at least in part on the policies applicable to the request, the customer or other requestor is not authorized to import the customer cryptographic key token, the cryptographic key management service may reject 706 the customer cryptographic key. In some embodiments, the cryptographic key management service determines that the customer or other requestor is authorized to import the cryptographic key token based at least in part on the evaluation performed in response to the original request, as described above in connection with FIG. 6. Thus, the customer or requestor need not be subject to an additional authentication or authorization evaluation for the importation of the customer cryptographic key.
The cryptographic key management service may evaluate the received import key token to identify 708 the expiration date for the import key token. For instance, the cryptographic key management service may access the database of import key tokens to identify an entry corresponding to the identifier of the received import key token. The entry may specify the expiration date for the import key token. Alternatively, the cryptographic key management service, through a security module, may use the domain cryptographic key to decrypt the import key token to obtain the serialized expiration date encoded therein. Based at least in part on the expiration date identified for the import key token, the cryptographic key management service may determine 710 whether the import key token is expired. If the import key token is expired, the cryptographic key management service may reject 706 the customer cryptographic key provided by the customer or requestor.
If the import key token is not expired, the cryptographic key management service, through use of the security module, may use the domain cryptographic key to decrypt the import key token. Alternatively, if the import key token was decrypted in order to determine whether the import key token was expired, the cryptographic key management service may obtain 712 the private cryptographic key from the import key token. The security module may use 714 the private cryptographic key to decrypt the encrypted customer cryptographic key provided by the customer or other requestor. In some embodiments, if the import key token is not expired and the import key token is maintained within the token database, the security module will obtain the import key token from the token container and decrypt the import key token using the domain cryptographic key.
The security module may obtain, from the metadata for the customer master key or from the customer or other requestor itself, the expiration date for the customer cryptographic key. The security module may serialize the customer cryptographic key with this expiration date and utilize the domain cryptographic key to encrypt the customer cryptographic key. The encryption of the customer cryptographic key may result in the security module generating 716 an encrypted key token that includes the customer cryptographic key. The encrypted key token may be stored in the token datastore to enable 718 use of the encrypted key token for cryptographic operations. Additionally, the security module may store the expiration date for the encrypted key token in the metadata for the customer master key. Thus, if a user submits a request to perform a cryptographic operation using the customer master key, the cryptographic key management service may identify the encrypted key token and use the encrypted key token to perform the cryptographic operation.
As noted above, the cryptographic key management service, in response to a request from a customer or other user to utilize a customer cryptographic key to perform one or more cryptographic operations, may evaluate the customer cryptographic key specified in the request to determine whether customer cryptographic key has expired and to determine whether the customer or user is authorized to enable use of the customer cryptographic key for the requested cryptographic operations. Accordingly, FIG. 8 shows an illustrative example of a process 800 for performing a cryptographic operation using an imported cryptographic key in accordance with at least one embodiment. The process 800 may be performed by the cryptographic key management service, which may process incoming requests from customers and other users of the computing resource service provider to utilize customer cryptographic keys to perform cryptographic operations.
At any time, the cryptographic key management service may receive 802 a request to utilize a customer cryptographic key to perform one or more cryptographic operations. For instance, a customer or other user may submit a request to the service to cause the service to use a customer cryptographic key to decrypt data maintained by another computing resource service provided by the computing resource service provider. The request may specify a unique principal identifier, an identifier for the customer cryptographic key or customer master key, and the like. Additionally, the request may include one or more credentials or information that may be used to determine that the customer or other user has access to the one or more credentials of the customer or other user.
In response to the request, the cryptographic key management service may determine 804 whether the customer or other user can be authenticated and is authorized to enable use of the customer cryptographic key for performance of the one or more cryptographic operations. The cryptographic key management service may transmit the unique user identifier and the provided credentials or proof of access to the credentials to an authentication service of the computing resource service provider. The authentication service may evaluate the provided information to determine whether the customer or other user can be authenticated. For instance, the authentication service may access a user profile for the customer or other user to obtain information that can be used to verify the provided information. If the authentication service determines that the information provided is valid and corresponds to the customer or other user, the authentication service may authenticate the customer or other user and transmit a notification to the cryptographic key management service to indicate that the customer or other user has been successfully authenticated.
If the customer or other user cannot be authenticated or is not authorized to enable use of the cryptographic key, the cryptographic key management service may deny 806 the customer's or other user's request. However, if the cryptographic key management service determines that the customer or other user has been successfully authenticated and that it is authorized to enable use of the customer cryptographic key, the cryptographic key management service may determine 808 whether the specified customer cryptographic key is expired. For instance, the cryptographic key management service may access the customer master key specified in the request and evaluate the metadata for the customer master key to identify the expiration date for the customer cryptographic key encrypted in the encrypted key token. If the expiration date has passed or the service is unable to retrieve the encrypted key token specified in the customer master key metadata (e.g., the encrypted key token has been deleted), the cryptographic key management service may determine that the customer cryptographic key has expired. In some embodiments, if the customer cryptographic key is expired, the cryptographic key management service will disassociate the customer cryptographic key from the customer master key and remove the customer cryptographic key (e.g., the customer cryptographic key is deleted from the security module of the cryptographic key management service such that the customer cryptographic key is no longer available for use). If the customer cryptographic key has expired, the cryptographic key management service may deny 806 the request.
If the customer cryptographic key has not expired, the cryptographic key management service may enable 810 use of the customer cryptographic key to perform the one or more cryptographic operations. For instance, the cryptographic key management service may use the domain cryptographic key to decrypt the encrypted key token that contains the customer cryptographic key. The cryptographic key management service may use the newly available customer cryptographic key, on behalf of the customer or other user, to decrypt the requested data and may provide the data to the customer or other user for its use. Alternatively, the cryptographic key management service may use the customer cryptographic key, on behalf of the customer or other user, to encrypt data specified in the request and may store the encrypted data on behalf of the customer or other user.
FIG. 9 illustrates aspects of an example environment 900 for implementing aspects in accordance with various embodiments. As will be appreciated, although a web-based environment is used for purposes of explanation, different environments may be used, as appropriate, to implement various embodiments. The environment includes an electronic client device 902, which can include any appropriate device operable to send and/or receive requests, messages, or information over an appropriate network 904, and, in some embodiments, convey information back to a user of the device. Examples of such client devices include personal computers, cell phones, handheld messaging devices, laptop computers, tablet computers, set-top boxes, personal data assistants, embedded computer systems, electronic book readers, and the like. The network can include any appropriate network, including an intranet, the Internet, a cellular network, a local area network, a satellite network, or any other such network, and/or combination thereof. Components used for such a system can depend at least in part upon the type of network and/or environment selected. Many protocols and components for communicating via such a network are well known and will not be discussed herein in detail. Communication over the network can be enabled by wired or wireless connections and combinations thereof. In this example, the network includes the Internet and/or other publicly-addressable communications network, as the environment includes a web server 906 for receiving requests and serving content in response thereto, although for other networks an alternative device serving a similar purpose could be used as would be apparent to one of ordinary skill in the art.
The illustrative environment includes at least one application server 908 and a data store 910. It should be understood that there can be several application servers, layers, or other elements, processes, or components, which may be chained or otherwise configured, which can interact to perform tasks such as obtaining data from an appropriate data store. Servers, as used herein, may be implemented in various ways, such as hardware devices or virtual computer systems. In some contexts, servers may refer to a programming module being executed on a computer system. As used herein, unless otherwise stated or clear from context, the term “data store” refers to any device or combination of devices capable of storing, accessing, and retrieving data, which may include any combination and number of data servers, databases, data storage devices, and data storage media, in any standard, distributed, virtual, or clustered environment. The application server can include any appropriate hardware, software, and firmware for integrating with the data store as needed to execute aspects of one or more applications for the client device, handling some or all of the data access and business logic for an application. The application server may provide access control services in cooperation with the data store and is able to generate content including, but not limited to, text, graphics, audio, video, and/or other content usable to be provided to the user, which may be served to the user by the web server in the form of HyperText Markup Language (“HTML”), Extensible Markup Language (“XML”), JavaScript, Cascading Style Sheets (“CSS”), JavaScript Object Notation (JSON), and/or another appropriate client-side structured language. Content transferred to a client device may be processed by the client device to provide the content in one or more forms including, but not limited to, forms that are perceptible to the user audibly, visually, and/or through other senses. The handling of all requests and responses, as well as the delivery of content between the client device 902 and the application server 908, can be handled by the web server using PHP: Hypertext Preprocessor (“PHP”), Python, Ruby, Perl, Java, HTML, XML, JSON, and/or another appropriate server-side structured language in this example. Further, operations described herein as being performed by a single device may, unless otherwise clear from context, be performed collectively by multiple devices, which may form a distributed and/or virtual system.
The data store 910 can include several separate data tables, databases, data documents, dynamic data storage schemes, and/or other data storage mechanisms and media for storing data relating to a particular aspect of the present disclosure. For example, the data store illustrated may include mechanisms for storing production data 912 and user information 916, which can be used to serve content for the production side. The data store also is shown to include a mechanism for storing log data 914, which can be used for reporting, analysis, or other such purposes. It should be understood that there can be many other aspects that may need to be stored in the data store, such as page image information and access rights information, which can be stored in any of the above listed mechanisms as appropriate or in additional mechanisms in the data store 910. The data store 910 is operable, through logic associated therewith, to receive instructions from the application server 908 and obtain, update or otherwise process data in response thereto. The application server 908 may provide static, dynamic, or a combination of static and dynamic data in response to the received instructions. Dynamic data, such as data used in web logs (blogs), shopping applications, news services, and other such applications may be generated by server-side structured languages as described herein or may be provided by a content management system (“CMS”) operating on, or under the control of, the application server. In one example, a user, through a device operated by the user, might submit a search request for a certain type of item. In this case, the data store might access the user information to verify the identity of the user and can access the catalog detail information to obtain information about items of that type. The information then can be returned to the user, such as in a results listing on a web page that the user is able to view via a browser on the user device 902. Information for a particular item of interest can be viewed in a dedicated page or window of the browser. It should be noted, however, that embodiments of the present disclosure are not necessarily limited to the context of web pages, but may be more generally applicable to processing requests in general, where the requests are not necessarily requests for content.
The various embodiments further can be implemented in a wide variety of operating environments, which in some cases can include one or more user computers, computing devices, or processing devices which can be used to operate any of a number of applications. User or client devices can include any of a number of computers, such as desktop, laptop, or tablet computers running a standard operating system, as well as cellular, wireless, and handheld devices running mobile software and capable of supporting a number of networking and messaging protocols. Such a system also can include a number of workstations running any of a variety of commercially available operating systems and other known applications for purposes such as development and database management. These devices also can include other electronic devices, such as dummy terminals, thin-clients, gaming systems, and other devices capable of communicating via a network. These devices also can include virtual devices such as virtual machines, hypervisors and other virtual devices capable of communicating via a network.
In embodiments utilizing a web server, the web server can run any of a variety of server or mid-tier applications, including Hypertext Transfer Protocol (“HTTP”) servers, FTP servers, Common Gateway Interface (“CGI”) servers, data servers, Java servers, Apache servers, and business application servers. The server(s) also may be capable of executing programs or scripts in response to requests from user devices, such as by executing one or more web applications that may be implemented as one or more scripts or programs written in any programming language, such as Java®, C, C#, or C++, or any scripting language, such as Ruby, PHP, Perl, Python, or TCL, as well as combinations thereof. The server(s) may also include database servers, including without limitation those commercially available from Oracle®, Microsoft®, Sybase®, and IBM®, as well as open-source servers such as MySQL, Postgres, SQLite, MongoDB, and any other server capable of storing, retrieving, and accessing structured or unstructured data. Database servers may include table-based servers, document-based servers, unstructured servers, relational servers, non-relational servers, or combinations of these, and/or other database servers.
Storage media and computer readable media for containing code, or portions of code, can include any appropriate media known or used in the art, including storage media and communication media, such as, but not limited to, volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storage and/or transmission of information such as computer readable instructions, data structures, program modules, or other data, including RAM, ROM, Electrically Erasable Programmable Read-Only Memory (“EEPROM”), flash memory or other memory technology, Compact Disc Read-Only Memory (“CD-ROM”), digital versatile disk (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage, or other magnetic storage devices or any other medium which can be used to store the desired information and which can be accessed by the system device. Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways and/or methods to implement the various embodiments.
under the control of one or more computer systems of a cryptographic key management service provided by a computing resource service provider, the one or more computer systems configured with executable instructions:
receiving, from a client device, a request to import a customer cryptographic key from the client device;
generating a cryptographic key pair, the cryptographic key pair comprising a public cryptographic key and a private cryptographic key;
utilizing a domain cryptographic key to encrypt the private cryptographic key, resulting in an import key token;
providing the import key token and the public cryptographic key to the client device;
receiving, from the client device, the import key token and an encrypted customer cryptographic key, the encrypted customer cryptographic key being the customer cryptographic key encrypted using the public cryptographic key;
using the domain cryptographic key to decrypt the import key token to obtain the private cryptographic key;
decrypting, using the private cryptographic key, the encrypted customer cryptographic key to obtain the customer cryptographic key;
encrypting, using the domain cryptographic key, the customer cryptographic key to generate an encrypted key token; and
causing one or more cryptographic operations to be performed using the encrypted key token.
receiving, from the client device, a second request to import a second customer cryptographic key from the client device;
receiving, from the client device, the import key token and a second encrypted customer cryptographic key, the second encrypted customer cryptographic key being the second customer cryptographic key encrypted using the public cryptographic key;
determining that the import key token has expired; and
the request to import the customer cryptographic key from the client device specifies an expiration date for the customer cryptographic key; and
the method further comprises removing the encrypted key token as a result of the expiration date for the customer cryptographic key having passed.
receiving, from the client device, a request to create a customer master key for establishing access controls to the customer cryptographic key, the request specifying at least one or more access control policies defining the access controls to the customer cryptographic key; and
associating the encrypted key token with the customer master key; and
causing the one or more cryptographic operations to be performed occurs as a result of a request to use the customer master key for performance of the one or more cryptographic operations.
one or more processors of a cryptographic key management service; and
memory including instructions that, as a result of being executed by the one or more processors of the cryptographic key management service, cause the system to:
receive, from a client device, a request to import a first cryptographic key from the client device;
create a cryptographic key pair comprising a public cryptographic key and a private cryptographic key;
utilize a domain cryptographic key to encrypt the private cryptographic key to generate an import key token;
provide the import key token and the public cryptographic key to the client device;
receive, from the client device, the import key token and an encrypted first cryptographic key, the encrypted first cryptographic key being the first cryptographic key encrypted using the public cryptographic key;
utilize the domain cryptographic key to decrypt the import key token and utilize the import key token to derive information for decrypting the encrypted first cryptographic key, the information for decrypting the encrypted first cryptographic key comprising the private cryptographic key;
decrypt, using the private cryptographic key, the encrypted first cryptographic key to obtain the first cryptographic key;
encrypt, using the domain cryptographic key, the first cryptographic key to generate an encrypted key token; and
cause one or more cryptographic operations to be performed using the first cryptographic key.
the request to import the first cryptographic key specifies a public cryptographic key cryptosystem utilized by the client device that is providing the first cryptographic key; and
the instructions further cause the system to use the public cryptographic key cryptosystem specified in the request to generate the cryptographic key pair.
determine that the import key token has expired; and
reject the encrypted first cryptographic key.
the request to import the first cryptographic key specifies an expiration date for the first cryptographic key; and
the instructions further cause the system to delete the first cryptographic key if the expiration date has passed.
associate the first cryptographic key with a customer master key, the customer master key specifying one or more access control policies for controlling access to the first cryptographic key;
receive a request to perform a cryptographic operation, the request specifying an identifier of the customer master key; and
use the first cryptographic key to perform the cryptographic operation.
determine that the first cryptographic key has expired;
disassociate the first cryptographic key from the customer master key; and
delete the first cryptographic key.
11. The system of claim 5, wherein the instructions further cause the system to obtain, by decrypting the import key token using the domain cryptographic key, the private cryptographic key usable to decrypt the encrypted first cryptographic key.
12. A non-transitory computer-readable storage medium having stored thereon executable instructions that, as a result of being executed by one or more processors of a computer system of a cryptographic key management service, cause the computer system to at least:
generate, in response to a request from a client device to import a customer key from the client device, first cryptographic information and second cryptographic information, the first cryptographic information comprising a private cryptographic key and the second cryptographic information comprising a public cryptographic key;
generate, based at least in part on the first cryptographic information and a domain cryptographic key, an import key token by utilizing the domain cryptographic key to encrypt the first cryptographic information;
provide the import key token and the second cryptographic information to the client device in response to the request;
obtain, from the client device, an encrypted customer key and the import key token, the encrypted customer key being the customer key encrypted using the second cryptographic information;
derive, from the import key token, the first cryptographic information to obtain at least the private cryptographic key by using the domain cryptographic key to decrypt the import key token;
use the first cryptographic information to decrypt the encrypted customer key to obtain the customer key;
use the domain cryptographic key to obtain an encrypted key token by encrypting the customer key with the domain cryptographic key; and
store the encrypted key token for performance of cryptographic operations using the customer key.
receive a request to utilize the customer key to perform one or more cryptographic operations;
deny the request on a condition that the customer key has expired; and
perform the one or more cryptographic operations on a condition that the customer key has not expired.
14. The non-transitory computer-readable storage medium of claim 12, wherein the instructions further cause the computer system to use a Rivest-Shamir-Adleman algorithm to generate the first cryptographic information and the second cryptographic information.
15. The non-transitory computer-readable storage medium of claim 12, wherein the instructions further cause the computer system to, based at least in part on a determination that the import key token has expired, reject the encrypted customer key.
16. The non-transitory computer-readable storage medium of claim 12, wherein the instructions that cause the system to store the encrypted key token further cause the system to:
obtain the domain cryptographic key; and
use the domain cryptographic key to encrypt the customer key to generate the encrypted key token.
the request to import the customer key specifies an expiration date for the customer key; and
the instructions further cause the computer system to delete the customer key as a result of the expiration date having passed.
18. The non-transitory computer-readable storage medium of claim 12, wherein the instructions further cause the computer system to:
associate the customer key with a customer master key;
receive a request to perform a cryptographic operation, the request specifying an identifier of the customer master key;
determine, depending at least in part on one or more policies of the customer master key, that the request can be fulfilled; and
use the customer key to fulfill the request based at least in part on the one or more policies.
19. The non-transitory computer-readable storage medium of claim 18, wherein the instructions further cause the computer system to disassociate the customer key from the customer master key if the customer key has expired.
20. The method of claim 1, wherein the domain cryptographic key is under control of the computing resource service provider.
US15/239,725 2016-08-09 2016-08-17 Cryptographic key management for imported cryptographic keys Active 2037-04-05 US10116440B1 (en)
US201662372686P true 2016-08-09 2016-08-09
US15/239,725 US10116440B1 (en) 2016-08-09 2016-08-17 Cryptographic key management for imported cryptographic keys
US16/174,033 US20190068363A1 (en) 2016-08-09 2018-10-29 Cryptographic key management for imported cryptographic keys
US16/174,033 Continuation US20190068363A1 (en) 2016-08-09 2018-10-29 Cryptographic key management for imported cryptographic keys
US10116440B1 true US10116440B1 (en) 2018-10-30
ID=63895005
US15/239,725 Active 2037-04-05 US10116440B1 (en) 2016-08-09 2016-08-17 Cryptographic key management for imported cryptographic keys
US16/174,033 Pending US20190068363A1 (en) 2016-08-09 2018-10-29 Cryptographic key management for imported cryptographic keys
US (2) US10116440B1 (en)
CN1254464A (en) 1997-12-31 2000-05-24 皇家菲利浦电子有限公司 Transmitting revisions with digital signatures
JP2003022253A (en) 2001-06-26 2003-01-24 Internatl Business Mach Corp <Ibm> Server, information processor, its access control system and method
US20030145223A1 (en) 2002-01-28 2003-07-31 Intel Corporation Controlled access to credential information of delegators in delegation relationships
JP2007505542A (en) 2003-09-09 2007-03-08 アクサルト・エス・アー Authentication method in data communication and smart card for implementing the authentication method
JP2007149010A (en) 2005-11-30 2007-06-14 Nec Corp Authority management server, authority management system, token verification method, and token verification program
JP2007206961A (en) 2006-02-01 2007-08-16 Kddi Corp Authentication system and authentication information transfer method in the same system and security device
RU2308755C2 (en) 2002-03-18 2007-10-20 Теленор Аса System and method for providing access to protected services with one-time inputting of password
JP2008172728A (en) 2007-01-15 2008-07-24 Megachips System Solutions Inc Security system
JP2011066703A (en) 2009-09-17 2011-03-31 Oki Electric Industry Co Ltd Communication data novelty check system and communication terminal
2016-08-17 US US15/239,725 patent/US10116440B1/en active Active
2018-10-29 US US16/174,033 patent/US20190068363A1/en active Pending
Australian Examination Report No. 2, dated Mar. 26, 2018, for Patent Application No. 2012315674, 3 pages.
Australian Notice of Acceptance dated Apr. 5, 2018, for Patent Application No. 2012315674, filed Sep. 28, 2012, 3 pages.
European Communication under Rule 71(3) EPC for Application No. 12835045.1, Intention to Grant, dated Apr. 25, 2018, 80 pages.
Google, "Encrypting Disks with Customer-Supplied Encryption Keys," last updated Jun. 21, 2017, retrieved from internet on Jun. 30, 2017, from https://cloud.google.com/compute/docs/disks/customer-supplied-encryption, 15 pages.
Japanese Official Notice of Final Rejection, dated Dec. 5, 2017, for Patent Application No. 2017-007876, 10 pages.
Russian Decision on Grant dated Aug. 15, 2018. for Patent Application No. 2017135822, 23 pages.
Singapore Search Report and Written Opinion dated Apr. 30, 2018, for Patent Application No. 10201608067Q filed Sep. 28, 2012, 8 pages.
U.S. Appl. No. 13/248,953, filed Sep. 29, 2011.
U.S. Appl. No. 13/248,962, filed Sep. 29, 2011.
U.S. Appl. No. 13/248,973, filed Sep. 29, 2011.
US20190068363A1 (en) 2019-02-28
US9904788B2 (en) 2018-02-27 Redundant key management
US10382200B2 (en) 2019-08-13 Probabilistic key rotation
EP3069463B1 (en) 2019-01-09 Single set of credentials for accessing multiple computing resource services
US10154013B1 (en) 2018-12-11 Updating encrypted cryptographic key
US20180270251A1 (en) 2018-09-20 Management of secrets using stochastic processes
US10084794B2 (en) 2018-09-25 Centralized access management of web-based or native applications
US10574686B2 (en) 2020-02-25 Security verification by message interception and modification
US10587405B2 (en) 2020-03-10 Supporting a fixed transaction rate with a variably-backed logical cryptographic key
US9819491B2 (en) 2017-11-14 System and method for secure release of secret information over a network