New-SqlCngColumnMasterKeySettings
CNG API를 지원하는 키 저장소에 저장된 비대칭 키를 설명하는 SqlColumnMasterKeySettings 개체를 만듭니다.
구문
Default (기본값)
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 공급자의 이름을 지정합니다.
매개 변수 속성
| 형식: | String |
| Default value: | None |
| 와일드카드 지원: | False |
| DontShow: | False |
매개 변수 집합
(All)
| Position: | 0 |
| 필수: | True |
| 파이프라인의 값: | False |
| 속성 이름별 파이프라인의 값: | False |
| 나머지 인수의 값: | False |
-KeyName
키 저장소에 있는 키의 이름을 지정합니다.
매개 변수 속성
| 형식: | String |
| Default value: | None |
| 와일드카드 지원: | False |
| DontShow: | False |
매개 변수 집합
(All)
| Position: | 1 |
| 필수: | True |
| 파이프라인의 값: | False |
| 속성 이름별 파이프라인의 값: | False |
| 나머지 인수의 값: | False |
CommonParameters
이 cmdlet은 일반적인 매개 변수인 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction 및 -WarningVariable 매개 변수를 지원합니다. 자세한 내용은 about_CommonParameters를 참조하세요.