New-SqlCspColumnMasterKeySettings
CAPI를 지원하는 CSP를 사용하여 키 저장소에 저장된 비대칭 키를 설명하는 SqlColumnMasterKeySettings 개체를 만듭니다.
Syntax
New-SqlCspColumnMasterKeySettings
[-CspProviderName] <String>
[-KeyName] <String>
[<CommonParameters>]
Description
New-SqlCspColumnMasterKeySettings cmdlet은 SqlColumnMasterKeySettings 개체를 만듭니다. SqlColumnMasterKeySettings 개체는 CAPI(Microsoft Crypto API)를 지원하는 CSP(암호화 서비스 공급자)를 사용하여 키 저장소에 저장된 키를 참조합니다. SqlColumnMasterKeySettings 개체에는 KeyStoreProviderName 및 KeyPath의 두 가지 속성이 있습니다. 이 cmdlet은 CSP/CAPI를 사용하여 열 마스터 키 저장소 공급자의 이름을 포함하도록 KeyStoreProviderName 속성을 설정한 다음, 지정된 키를 참조할 KeyPath 속성의 값을 생성하고 설정합니다.
예제
예제 1: SqlColumnMasterKeySettings 개체 만들기
PS C:\> $CmkSettings = New-SqlCspColumnMasterKeySettings -CspProviderName "Microsoft Software Key Storage Provider" -KeyName "AlwaysEncryptedKey"
이 명령은 Microsoft 소프트웨어 키 스토리지 공급자라는 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