New-SqlCspColumnMasterKeySettings
CAPI をサポートする CSP を使用してキー ストアに格納されている非対称キーを記述する SqlColumnMasterKeySettings オブジェクトを作成します。
構文
New-SqlCspColumnMasterKeySettings
[-CspProviderName] <String>
[-KeyName] <String>
[<CommonParameters>]
説明
New-SqlCspColumnMasterKeySettings コマンドレットは、SqlColumnMasterKeySettings オブジェクトを作成します。 SqlColumnMasterKeySettings オブジェクトは、Microsoft Crypto API (CAPI) をサポートする暗号化サービス プロバイダー (CSP) を使用してキー ストアに格納されているキーを参照します。 SqlColumnMasterKeySettings オブジェクトには、KeyStoreProviderName と KeyPath の 2 つのプロパティがあります。 このコマンドレットは、CSP/CAPI を使用して列マスター キー ストア プロバイダーの名前を格納するように KeyStoreProviderName プロパティを設定し、指定したキーを参照する KeyPath プロパティの値を生成して設定します。
例
例 1: SqlColumnMasterKeySettings オブジェクトを作成する
PS C:\> $CmkSettings = New-SqlCspColumnMasterKeySettings -CspProviderName "Microsoft Software Key Storage Provider" -KeyName "AlwaysEncryptedKey"
このコマンドは、Microsoft Software Key Storage Provider という CSP プロバイダーによってカプセル化されたキー ストア内のキーを参照する SqlColumnMasterKeySettings オブジェクトを作成します。
パラメーター
-CspProviderName
キー ストアの CSP プロバイダーの名前を指定します。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-KeyName
キー ストア内のキーの名前を指定します。
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
出力
SqlColumnMasterKeySettings