---
title: "pkcs_C_Login: Error = 0x00000005"
slug: "aa-01338"
description: "This is a generic error passed back to BIND by the PKCS#11 code as a result of an error on an HSM."
updated: 2018-10-29T20:45:28Z
published: 2018-10-29T20:45:28Z
canonical: "kb.isc.org/aa-01338"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://kb.isc.org/llms.txt
> Use this file to discover all available pages before exploring further.

# pkcs_C_Login: Error = 0x00000005 - what does it mean?

### Question:

Using BIND with DNSSEC and keys managed within an HSM (Hardware Security Module), the following error is occasionally encountered (using BIND 9.10):

```
2015 Jun 25 12:52:08 dns-server pk11.c:648: fatal error: 
2015 Jun 25 12:52:08 dns-server pkcs_C_Login: Error = 0x00000005 
2015 Jun 25 12:52:08 dns-server exiting (due to fatal error in library)
```

What does this mean, why is it happening, and what can be done to fix this?

### Answer:

Error code 5 is CKR_GENERAL_ERROR.

It is a generic error being passed back to BIND by the PKCS#11 code, usually as a result of an error condition being returned by the HSM device. You should refer to your HSM provider for more help with troubleshooting the problem.
