I may be missing something very simple, but I'm not able to find any guides or walkthroughs for configuring an HSM (SafeNet Luna SA) as a pksc11 seal in Windows.
I have the Luna SA client installed and configured:
c:\Program Files\SafeNet\LunaClient>VTL.exe verify
The following Luna SA Slots/Partitions were found:
Slot Serial # Label
==== ======== =====
1 487904032 Test1
c:\Program Files\SafeNet\LunaClient>
I have Vault set up under C:\vault
I have the following in a configuration file:
seal "pkcs11" {
lib = "C:\\Program Files\\SafeNet\\LunaClient\\cryptoki.dll"
slot = "1"
pin = "<<PIN HERE>>"
key_label = "vault-hsm-key"
hmac_key_label = "vault-hsm-hmac-key"
generate_key = "true"
}
storage "file" {
path = "C:\\vault"
}
I start vault with this command:
c:\vault>vault server -config VaultConfig.txt
WARNING! mlock is not supported on this system! An mlockall(2)-like syscall to
prevent memory from being swapped to disk is not supported on this system. For
better security, only run Vault on systems where this call is supported. If
you are running Vault in a Docker container, provide the IPC_LOCK cap to the
container.
==> Vault server configuration:
Cgo: disabled
Listener 1: tcp (addr: "
127.0.0.1:8200", cluster address: "127.0.0
.1:8201", tls: "disabled")
Log Level: info
Mlock: supported: false, enabled: false
Storage: file
Version: Vault v0.10.1
Version Sha: 756fdc4587350daf1c65b93647b2cc31a6f119cd
==> Vault server started! Log data will stream in below:
But checking status I see:
c:\vault>vault status
Key Value
--- -----
Seal Type shamir
Sealed true
Total Shares 5
Threshold 3
Unseal Progress 0/3
Unseal Nonce n/a
Version 0.10.1
HA Enabled true
c:\vault>
It's using shamir for seal type, and no keys are created on the HSM.
Any ideas what I'm missing? I've gone through vault init - and vault uneal - everything looks to be working except that it's not using the HSM.
Thanks,
Rob