diff --git a/pkg/vault/pkcs11/vault.go b/pkg/vault/pkcs11/vault.go index 355787a0..fdf2ada6 100644 --- a/pkg/vault/pkcs11/vault.go +++ b/pkg/vault/pkcs11/vault.go @@ -168,7 +168,7 @@ func (v *PKCS11Vault) GetPublicKey(ctx context.Context, id string) (vault.Stored if v.slot == nil { return nil, v.formatError(errors.New("locked")) } - handle, err := strconv.ParseUint(id, 16, 64) + handle, err := strconv.ParseUint(id, 16, 32) if err != nil { return nil, v.formatError(err) }