The invention discloses a
key management method and device for a distributed block storage
system, and the method is applied to a
client, and comprises the steps: building first block equipment according to a first building instruction carrying an
encryption attribute and an
encryption algorithm identification; if the
encryption attribute indicates that the first block device is an encryption device, sending a first key creation request containing the encryption and decryption
algorithm identifier to a
server; and receiving a first key ID fed back by the
server according to the first key creation request, wherein the first key ID is fed back by the
server after the server confirms that the identity of the
client user is legal. According to the secret
key management method for the distributed block storage
system, when the block device is created, for the block device with the encryption attribute being the encryption device, the secret key is automatically created, the secret key is created after the server confirms that the identity of the
client is legal, and the secret key ID stored in association with the secret key is fed back, so that the safety management of the secret keyis ensured, the storage safety of the block device data is improved, and a basis is provided for the subsequent safety management of the secret key of the block device.