.. hsm2-ksp-windows-server-guide.rst .. _hsm2-ksp-windows-server-guide-label: ======================================================= YubiHSM 2 with Key Storage Provider for Windows Server =======================================================   Configure YubiHSM 2 Key Storage Provider (KSP) for Microsoft Windows Server ============================================================================ This guide is intended to help systems administrators deploy YubiHSM 2 for use in a Windows server environment. The expected outcome is that the YubiHSM 2 is installed and configured with authentication keys, audit keys, and wrap keys. This guide also explains how to make backups and restore keys on a YubiHSM 2. These guidelines for deployment cover basic topics, so the instructions should be modified as required for your specific environment. It is assumed that you are familiar with the concepts and processes for working with Microsoft Windows Server. It is also assumed that the installation is performed on a single Microsoft Windows Server, but the concept can be extended to more servers. .. Important:: Before deploying to production, we recommend that you use this guide for installing and testing the setup of the YubiHSM 2 with the Microsoft Windows Server installation in a test or lab environment. About the YubiHSM Software ============================ The following YubiHSM 2 software is used in this guide. These items are included as part of the archive file you download from the :ref:`hsm2-sdk-tools-libraries-label`. **YubiHSM Connector** - Enables communication between the YubiHSM 2 and applications that use it. We recommend that the YubiHSM Connector run on the host operating system if the calling application is deployed to a VM. The Connector must always be running. **YubiHSM Shell** - The administrative command line tool used to interact with and configure the YubiHSM 2 device. If the YubiHSM Shell is installed on a VM, it will connect to the Connector over a networked connection. **YubiHSM Setup** - Helps with setting up a device for specific use cases. Currently supports setting up for use with Microsoft Windows KSP. **YubiHSM Key Storage Provider (KSP)** - Acts like a driver for the YubiHSM 2 device on Windows and enables it to work with applications that leverage Microsoft’s Cryptographic API Next Generation (CNG). Examples of calling applications are Microsoft Certificate Services or Microsoft SQL Server Always Encrypted. Prerequisites and Preparations =============================== The audience of this guide is an experienced systems administrator with a good understanding of Microsoft Windows Server management. In addition, it is helpful to be familiar with the terminology, software, and tools specific to YubiHSM 2. As a primer for these, refer to Glossary. In order to follow the steps provided in this guide, the following prerequisites must be met: * Access to Microsoft Windows Server 2012 SP2 or higher, installed in a secure computer network. The system administrator must have elevated system privileges. * The YubiHSM 2 SDK downloaded from the `Yubico YubiHSM 2 Release page `_ and available on the system to be used. Installation instructions are given in the following. * Two (2) YubiHSM 2 devices, one for deployment and one for backup in hardware. * Key custodians, if your organization policies require them for the YubiHSM 2 deployment. For more information about key custodians and the associated ``M of N`` key shares, see :ref:`hsm2-key-split-custodians-guide-label`. .. Important:: Although it is possible to configure the YubiHSM 2 on a networked machine, to safeguard its integrity, it is recommended that its configuration be performed on a fresh system in an air-gapped environment, i.e., the steps in this guide should be performed on a stand-alone computer with both Windows Server 2012 SP2 or higher and the YubiHSM 2 software installed. And we recommend that you do not store keys - even under wrap - on network-accessible or otherwise compromise-able storage media.