Windows KSP ja PKCS#11 koos PKI Proxyga¶
This document explains the usage of PKI Proxy with HSM 2. PKI Proxy enables the usage of HSM 2 through the native Microsoft Windows APIs. For this purpose, PKI Proxy includes a KSP (Key Storage Provider) that enables its use via the CNG (Cryptography API: Next Generation) interface. Additionally it provides PKCS#11 access to the HSM 2, but this should only be used if your setup requires it for example if you need the additional authentication features of PKI Proxy, or if you need to access it from a remote machine running an application that only supports PKCS#11. In all other cases use the PKCS#11 driver from the OpenSC project directly.
The deployment of HSM 2 with PKI Proxy looks like this.
The HSM 2 is connected via its USB interface to the PKI Proxy server. PKI Proxy uses the OpenSC PKCS#11 driver to connect to the HSM 2 and access its keys and certificates. Clients to the PKI Proxy use the REST API of the PKI Proxy server to access the keys and certificates. Applications on the client can either use the native Windows API or a PKCS#11 driver. PKI Proxy server and client can be executed on the same computer.
Selle seadistuse võimalikud kasutusjuhud on järgmised:
Code signing
Document signing
Nõuanne
Lisateavet leiate ka ametlikust PKI Proxy dokumentatsioonist.
Eeltingimused¶
HSM 2
Initialized
Provisioned with keys and certificates
Windows machine
OpenSC PKCS#11 driver installed (only required on the PKI Proxy Server).
PKI Proxy - Server¶
The PKI Proxy server shares the keys and certificates from a HSM 2 for different users.
Paigaldamine¶
Download the PKI Proxy 2024 installer from the /n software website.
Avage paigaldusprogramm ja järgige paigaldusviisardi juhiseid.
Avage PKI Proxy menüüst Start. Kui installite selle vaikimisi asukohta, saate seda käivitada ka järgmise käsuga dialoogist Run või PowerShellist.
C:\Program Files\PKI Proxy 2024\PKIProxy.exeMärkus
PKI Proxy minimeerub süsteemisalve, isegi kui põhiaken on suletud.
Service Configuration¶
Allpool toodud juhised konfigureerivad PKI Proxy.
Open the PKI Proxy main window.
Change to the Settings tab.
Make sure the checkbox Enable TLS is checked and an appropriate certificate is used.
Change to the Users tab.
Looge uus kasutaja, klõpsates nupul New…. Valige autentimistüüp, mida toetavad kõik kliendid.
PKI Proxy teenuse käivitamiseks klõpsake peamise akna menüüribal nupul Start.
Publish Certificates from the HSM 2¶
In the following we configure which certificates from the HSM 2 are made available through PKI Proxy.
Veenduge, et PKI Proxy põhiaken on avatud.
Change to the Certificates tab.
Klõpsake nupul New…. See avab akna Share Certificate.
Klõpsake akna sertifikaadi raamistikus nupul Select Certificate or Key…. See avab akna Select a Private Key.
Vahetage vahekaart Turvalisusvõti.
Click the Browse… button and select the OpenSC PKCS#11 driver library file. The text field PKCS#11 Library now shows the path to the library file.
From the dropdown menu Security Key (PKCS#11) choose the slot which contains the certificate. The listed slots depend on your configuration of the HSM 2.
Sisestage tekstiväljale „ PIN “ oma HSM 2 PIN-kood.
Click the Open button.
The text list below Certificates now shows a list of the available certificates and generic keys on the HSM 2. Select the certificate or generic key you want to share with PKI Proxy.
Valiku kinnitamiseks klõpsake nuppu OK. See toob teid tagasi aknasse Share Certificate. Aknas kuvatakse nüüd valitud sertifikaadi üksikasjad.
Klõpsake akna Access and Permissions raamistikus nupule Add…. See avab akna Select user.
Valige rippmenüüst olemasolev kasutaja või looge uus kasutaja, valides Create New User…. Valiku kinnitamiseks klõpsake nuppu OK. Kui valite uue kasutaja loomise, kuvatakse seejärel aken New User.
Tagasi aknas Share Certificate veenduge ka, et lubate ainult sertifikaadi või üldvõtme jaoks vajalikke toiminguid. Seda saab muuta raami Access and Permissions allosas olevate märkeruutudega.
Sertifikaadi avaldamiseks klõpsake nuppu OK. See toob teid tagasi PKI Proxy põhiaknasse.
Tekstiloendil Certificate Management on nüüd avaldatud sertifikaat.
PKI Proxy - klient¶
PKI Proxy klienditööriistad pakuvad erinevaid võimalusi PKI Proxy serveri jagatud võtmetele ja sertifikaatidele juurdepääsuks.
Nõuanne
PKI Proxy server sisaldab klienditööriistu. Seega võib masin, millel server töötab, olla ka iseendale kliendiks.
Paigaldamine¶
Lae alla PKI Proxy 2024 - Client Tools tarkvara veebilehelt /n.
Avage paigaldusprogramm ja järgige paigaldusviisardi juhiseid.
KSP (Key Storage Provider)¶
PKI Proxy pakub KSP-d PKI Proxy serveriga liidestamiseks. KSP võimaldab CNG (Cryptography API: Next Generation) liidese kaudu kasutada Windowsi algupäraseid APIsid koos rakendustega. Lisateavet leiate PKI Proxy dokumentatsioonist.
PKCS#11¶
PKI Proxy pakub PKCS#11 moodulit PKI Proxy serveriga liidestamiseks. Lisateavet leiate PKI Proxy dokumentatsioonist.