Share via


Certificate.Create 메서드 (String, CertificateSourceType, String, String)

Creates a certificate on the database that has the specified certificate source type.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Sub Create ( _
    certificateSource As String, _
    sourceType As CertificateSourceType, _
    privateKeyPath As String, _
    privateKeyDecryptionPassword As String _
)
‘사용 방법
Dim instance As Certificate 
Dim certificateSource As String 
Dim sourceType As CertificateSourceType 
Dim privateKeyPath As String 
Dim privateKeyDecryptionPassword As String

instance.Create(certificateSource, sourceType, _
    privateKeyPath, privateKeyDecryptionPassword)
public void Create(
    string certificateSource,
    CertificateSourceType sourceType,
    string privateKeyPath,
    string privateKeyDecryptionPassword
)
public:
void Create(
    String^ certificateSource, 
    CertificateSourceType sourceType, 
    String^ privateKeyPath, 
    String^ privateKeyDecryptionPassword
)
member Create : 
        certificateSource:string * 
        sourceType:CertificateSourceType * 
        privateKeyPath:string * 
        privateKeyDecryptionPassword:string -> unit
public function Create(
    certificateSource : String, 
    sourceType : CertificateSourceType, 
    privateKeyPath : String, 
    privateKeyDecryptionPassword : String
)

매개 변수

  • certificateSource
    유형: System.String
    A String value that specifies the source of the certificate.
  • privateKeyPath
    유형: System.String
    A String value that specifies the system path for the private key.
  • privateKeyDecryptionPassword
    유형: System.String
    A String value that specifies the password used for decryption of the private key.

암호화 사용

참고 항목

참조

Certificate 클래스

Create 오버로드

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

암호화 계층

CREATE CERTIFICATE(Transact-SQL)