New-SqlCspColumnMasterKeySettings

Crea un oggetto SqlColumnMasterKeySettings che descrive una chiave asimmetrica archiviata in un archivio chiavi con un CSP che supporta CAPI.

Sintassi

New-SqlCspColumnMasterKeySettings
   [-CspProviderName] <String>
   [-KeyName] <String>
   [<CommonParameters>]

Descrizione

Il cmdlet New-SqlCspColumnMasterKeySettings crea un oggetto SqlColumnMasterKeySettings . L'oggetto SqlColumnMasterKeySettings fa riferimento a una chiave archiviata in un archivio chiavi usando un provider di servizi di crittografia (CSP) che supporta l'API Microsoft Crypto (CAPI). 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 usando CSP/CAPI, 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-SqlCspColumnMasterKeySettings -CspProviderName "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 CSP denominato Provider di archiviazione chiavi Software Microsoft.

Parametri

-CspProviderName

Specifica il nome del provider CSP 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