New-SqlCngColumnMasterKeySettings
Crea un oggetto SqlColumnMasterKeySettings che descrive una chiave asimmetrica archiviata in un archivio chiavi che supporta l'API CNG.
Sintassi
New-SqlCngColumnMasterKeySettings
[-CngProviderName] <String>
[-KeyName] <String>
[<CommonParameters>]
Descrizione
Il cmdlet New-SqlCngColumnMasterKeySettings crea un oggetto SqlColumnMasterKeySettings . L'oggetto SqlColumnMasterKeySettings fa riferimento a una chiave archiviata in un archivio chiavi che supporta l'API CNG (Cryptography Next Generation). L'oggetto SqlColumnMasterKeySettings ha due proprietà: KeyStoreProviderName e KeyPath. Questo cmdlet imposta la proprietà KeyStoreProviderName per contenere il nome del provider dell'archivio chiavi master della colonna per CNG, quindi genera e imposta il valore della proprietà KeyPath per fare riferimento alla chiave specificata.
Esempio
Esempio 1: Creare un oggetto SqlColumnMasterKeySettings
PS C:\> $CMKSettings = New-SqlCngColumnMasterKeySettings -CngProviderName "Microsoft Software Key Storage Provider" -KeyName "AlwaysEncryptedKey"
Questo comando crea un oggetto SqlColumnMasterKeySettings che fa riferimento a una chiave in un archivio chiavi incapsulato da un provider CNG denominato Provider di archiviazione chiavi Software Microsoft. Il comando archivia quindi il risultato dell'operazione nella variabile denominata $CMKSettings.
Parametri
-CngProviderName
Specifica il nome del provider CNG per l'archivio chiavi.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-KeyName
Specifica il nome della chiave nell'archivio chiavi.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Output
SqlColumnMasterKeySettings