# Nitrokey HSM with ADCS

**URL:** <https://support.nitrokey.com/t/nitrokey-hsm-with-adcs/891>\
**Category:** Nitrokeys\
**Created:** [January 24, 2018, 8:22pm UTC](https://support.nitrokey.com/t/nitrokey-hsm-with-adcs/891 "2018-01-24T20:22:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MisterEnterprise](https://support.nitrokey.com/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@MisterEnterprise](https://support.nitrokey.com/u/MisterEnterprise)\
**Post date:** [January 24, 2018, 8:22pm UTC](https://support.nitrokey.com/t/nitrokey-hsm-with-adcs/891/1 "2018-01-24T20:22:52Z")

</div>

I was wondering if anybody has used Nitrokey HSM with Active Directory Certificate Services (ADCS). I am trying to install a Standalone Root CA on Windows Server 2016 using the HSM. I have installed the OpenSC software and initialized the HSM.

When I go through the ADCS Certificate Authority installation, I am able to select OpenSC CSP as the cryptographic provider for the new key. After the final step, I get prompted for the Pin, and then the install fails with the message

> An error occurred when creating the new key container “XXX CA”. You do not have write access permission to the key container. Please use a different CA name.  
> Object already exists. 0x8009000f (-2146893809): Object already exists. 0x8009000f (-2146893809 NTE\_EXISTS)

It is very similar to this error

> **[Windows 2008 CA fails install ( ADCS ) : Object already exists. 0x8009000f](https://learn.microsoft.com/en-us/archive/blogs/spatdsg/windows-2008-ca-fails-install-adcs-object-already-exists-0x8009000f)**

I do have the AllowAdministratorInteraction option set, which appears to be the new name of the needed setting in Windows 2016
