New-SqlCngColumnMasterKeySettings
CNG API를 지원하는 키 저장소에 저장된 비대칭 키를 설명하는 SqlColumnMasterKeySettings 개체를 만듭니다.
Syntax
New-SqlCngColumnMasterKeySettings
[-CngProviderName] <String>
[-KeyName] <String>
[<CommonParameters>]
Description
New-SqlCngColumnMasterKeySettings cmdlet은 SqlColumnMasterKeySettings 개체를 만듭니다. SqlColumnMasterKeySettings 개체는 CNG(Cryptography Next Generation) API를 지원하는 키 저장소에 저장된 키를 참조합니다. SqlColumnMasterKeySettings 개체에는 KeyStoreProviderName 및 KeyPath의 두 가지 속성이 있습니다. 이 cmdlet은 CNG에 대한 열 마스터 키 저장소 공급자의 이름을 포함하도록 KeyStoreProviderName 속성을 설정한 다음, 지정된 키를 참조할 KeyPath 속성의 값을 생성하고 설정합니다.
예제
예제 1: SqlColumnMasterKeySettings 개체 만들기
PS C:\> $CMKSettings = New-SqlCngColumnMasterKeySettings -CngProviderName "Microsoft Software Key Storage Provider" -KeyName "AlwaysEncryptedKey"
이 명령은 Microsoft Software Key Storage Provider라는 CNG 공급자가 캡슐화한 키 저장소의 키를 참조하는 SqlColumnMasterKeySettings 개체를 만듭니다. 그런 다음 이 명령은 작업 결과를 $CMKSettings 변수에 저장합니다.
매개 변수
-CngProviderName
키 저장소에 대한 CNG 공급자의 이름을 지정합니다.
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