# Error in Auto unsealing with HSM

**URL:** <https://discuss.hashicorp.com/t/error-in-auto-unsealing-with-hsm/26678>\
**Category:** Vault\
**Tags:** vault\
**Created:** [July 13, 2021, 10:11am UTC](https://discuss.hashicorp.com/t/error-in-auto-unsealing-with-hsm/26678 "2021-07-13T10:11:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![faiz-credotian](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@faiz-credotian](https://discuss.hashicorp.com/u/faiz-credotian)\
**Post date:** [July 13, 2021, 10:11am UTC](https://discuss.hashicorp.com/t/error-in-auto-unsealing-with-hsm/26678/1 "2021-07-13T10:11:37Z")

</div>

Previously I have successfully integrated vault with HSM which was password enabled and was up and running.  
I am at remote location connected to network , trying to start Vault Server integrated with Ped enabled HSM device.  
I have added HSM configurations in vault Config file but didn’t know what should I set **pin** inorder to access HSM from Vault server.  
I have tried entering admin pwd, Crypto officer pin and ped device attached to the HSM but still I am unable to start vault.

**error parsing Seal configuration: error fetching session to test HSM key configuration: error logging in to HSM: pkcs11: 0x80000028**  
**2021-07-13T05:39:54.367-0400 [INFO] proxy environment: http\_proxy="" https\_proxy="" no\_proxy=""**

config:  
{  
“pkcs11”: {  
“generate\_key”: “true”,  
“hmac\_key\_label”: “HashiCorp\_hmac”,  
“key\_label”: “HashiCorp”,  
“lib”: “/opt/vault/hsm/libCryptoki2\_64.so”,  
“pin”: “xxxxx”,  
“slot”: “1”  
}  
}  
]

> **[Vault Integration with Thales](https://www.hashicorp.com/integrations/thales/vault)**
>
> Today’s enterprises depend on the cloud, data and software to make decisive decisions. That’s why the most respected brands and largest organizations in the world rely on Thales to...

> **[Vault Deployment Guide | Vault - HashiCorp Learn](https://learn.hashicorp.com/tutorials/vault/deployment-guide)**
>
> This deployment guide covers the steps required to install and
> configure a single HashiCorp Vault cluster as defined in the
> Vault Reference Architecture

> **[HSM Integration - Seal Wrap | Vault - HashiCorp Learn](https://learn.hashicorp.com/tutorials/vault/seal-wrap?in=vault%2Fauto-unseal)**
>
> This tutorial demonstrates how Vault's seal wrap feature works to encrypt your secrets leveraging FIPS 140-2 certified HSM.

---

<div class="post-metadata">

**Author:** ![mikegreen](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/mikegreen/32/3160_2.png) [@mikegreen](https://discuss.hashicorp.com/u/mikegreen)\
**Post date:** [July 13, 2021, 4:25pm UTC](https://discuss.hashicorp.com/t/error-in-auto-unsealing-with-hsm/26678/2 "2021-07-13T16:25:51Z")

</div>

Which version of Vault?

---

<div class="post-metadata">

**Author:** ![faiz-credotian](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@faiz-credotian](https://discuss.hashicorp.com/u/faiz-credotian)\
**Post date:** [July 13, 2021, 4:38pm UTC](https://discuss.hashicorp.com/t/error-in-auto-unsealing-with-hsm/26678/3 "2021-07-13T16:38:22Z")

</div>

1.7.2 ent+hsm version of vault

---

<div class="post-metadata">

**Author:** ![mikegreen](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/mikegreen/32/3160_2.png) [@mikegreen](https://discuss.hashicorp.com/u/mikegreen)\
**Post date:** [July 13, 2021, 11:27pm UTC](https://discuss.hashicorp.com/t/error-in-auto-unsealing-with-hsm/26678/4 "2021-07-13T23:27:46Z")

</div>

Are you sure your Vault can connect to the HSM? based on “remote location connected to network”

Since you’re using Enterprise, I’d recommend asking Vault support.
