CertificateRequest.Create 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| Create(X500DistinguishedName, X509SignatureGenerator, DateTimeOffset, DateTimeOffset, ReadOnlySpan<Byte>) |
현재 인증서 요청에 서명하여 체인 서명 또는 자체 서명된 인증서를 만듭니다. |
| Create(X500DistinguishedName, X509SignatureGenerator, DateTimeOffset, DateTimeOffset, Byte[]) |
현재 인증서 요청에 서명하여 체인 서명 또는 자체 서명된 인증서를 만듭니다. |
| Create(X509Certificate2, DateTimeOffset, DateTimeOffset, ReadOnlySpan<Byte>) |
제공된 인증서를 발급자로 사용하여 설정된 주체, 키 및 선택적 확장을 사용하여 인증서를 만듭니다. |
| Create(X509Certificate2, DateTimeOffset, DateTimeOffset, Byte[]) |
지정된 인증서를 발급자로 사용하여 설정된 주체, 키 및 선택적 확장을 사용하여 인증서를 만듭니다. |
Create(X500DistinguishedName, X509SignatureGenerator, DateTimeOffset, DateTimeOffset, ReadOnlySpan<Byte>)
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
현재 인증서 요청에 서명하여 체인 서명 또는 자체 서명된 인증서를 만듭니다.
public:
System::Security::Cryptography::X509Certificates::X509Certificate2 ^ Create(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ issuerName, System::Security::Cryptography::X509Certificates::X509SignatureGenerator ^ generator, DateTimeOffset notBefore, DateTimeOffset notAfter, ReadOnlySpan<System::Byte> serialNumber);
public System.Security.Cryptography.X509Certificates.X509Certificate2 Create(System.Security.Cryptography.X509Certificates.X500DistinguishedName issuerName, System.Security.Cryptography.X509Certificates.X509SignatureGenerator generator, DateTimeOffset notBefore, DateTimeOffset notAfter, ReadOnlySpan<byte> serialNumber);
member this.Create : System.Security.Cryptography.X509Certificates.X500DistinguishedName * System.Security.Cryptography.X509Certificates.X509SignatureGenerator * DateTimeOffset * DateTimeOffset * ReadOnlySpan<byte> -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Function Create (issuerName As X500DistinguishedName, generator As X509SignatureGenerator, notBefore As DateTimeOffset, notAfter As DateTimeOffset, serialNumber As ReadOnlySpan(Of Byte)) As X509Certificate2
매개 변수
- issuerName
- X500DistinguishedName
발급자의 고유 이름입니다.
- generator
- X509SignatureGenerator
발급 인증 기관입니다.
- notBefore
- DateTimeOffset
이 인증서가 유효한 것으로 간주되는 가장 오래된 날짜 및 시간입니다. 일반적으로 UtcNow몇 초를 더하거나 뺀 값입니다.
- notAfter
- DateTimeOffset
이 인증서가 더 이상 유효한 것으로 간주되지 않는 날짜 및 시간입니다.
- serialNumber
- ReadOnlySpan<Byte>
새 인증서에 사용할 일련 번호입니다. 이 값은 발급자별로 고유해야 합니다. 값은 big endian 바이트 순서에서 부호 없는(큰) 정수로 해석됩니다.
반품
지정된 값이 있는 인증서입니다. 반환된 개체는 어설션 HasPrivateKey되지 않습니다.
예외
issuerName 또는 generator .입니다 null.
서명 작업 중에 오류가 발생했습니다.
서명 생성기에는 기본값이 아닌 값 HashAlgorithm이 필요하지만 이 개체는 제공되지 않고 만들어졌습니다.
적용 대상
Create(X500DistinguishedName, X509SignatureGenerator, DateTimeOffset, DateTimeOffset, Byte[])
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
현재 인증서 요청에 서명하여 체인 서명 또는 자체 서명된 인증서를 만듭니다.
public:
System::Security::Cryptography::X509Certificates::X509Certificate2 ^ Create(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ issuerName, System::Security::Cryptography::X509Certificates::X509SignatureGenerator ^ generator, DateTimeOffset notBefore, DateTimeOffset notAfter, cli::array <System::Byte> ^ serialNumber);
public System.Security.Cryptography.X509Certificates.X509Certificate2 Create(System.Security.Cryptography.X509Certificates.X500DistinguishedName issuerName, System.Security.Cryptography.X509Certificates.X509SignatureGenerator generator, DateTimeOffset notBefore, DateTimeOffset notAfter, byte[] serialNumber);
member this.Create : System.Security.Cryptography.X509Certificates.X500DistinguishedName * System.Security.Cryptography.X509Certificates.X509SignatureGenerator * DateTimeOffset * DateTimeOffset * byte[] -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Function Create (issuerName As X500DistinguishedName, generator As X509SignatureGenerator, notBefore As DateTimeOffset, notAfter As DateTimeOffset, serialNumber As Byte()) As X509Certificate2
매개 변수
- issuerName
- X500DistinguishedName
발급자의 경우입니다 X500DistinguishedName .
- generator
- X509SignatureGenerator
X509SignatureGenerator 발급 인증 기관을 나타내는 개체입니다.
- notBefore
- DateTimeOffset
이 인증서가 유효한 것으로 간주되는 가장 오래된 날짜 및 시간입니다. 일반적으로 UtcNow몇 초를 더하거나 뺀 값입니다.
- notAfter
- DateTimeOffset
이 인증서가 더 이상 유효한 것으로 간주되지 않는 날짜 및 시간입니다.
- serialNumber
- Byte[]
새 인증서에 사용할 일련 번호입니다. 이 값은 발급자별로 고유해야 합니다. 값은 big-endian 바이트 순서에서 임의의 크기의 부호 없는 정수로 해석됩니다. RFC 3280 은 20바이트 이하로 제한하는 것이 좋습니다.
반품
X509Certificate2 지정된 값을 가진 개체입니다. 반환된 개체는 어설션 HasPrivateKey되지 않습니다.
예외
서명 작업 중에 오류가 발생합니다.
서명 생성기에는 기본값이 아닌 값 HashAlgorithm이 필요하지만 이 개체는 제공되지 않고 만들어졌습니다.
적용 대상
Create(X509Certificate2, DateTimeOffset, DateTimeOffset, ReadOnlySpan<Byte>)
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
제공된 인증서를 발급자로 사용하여 설정된 주체, 키 및 선택적 확장을 사용하여 인증서를 만듭니다.
public:
System::Security::Cryptography::X509Certificates::X509Certificate2 ^ Create(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ issuerCertificate, DateTimeOffset notBefore, DateTimeOffset notAfter, ReadOnlySpan<System::Byte> serialNumber);
public System.Security.Cryptography.X509Certificates.X509Certificate2 Create(System.Security.Cryptography.X509Certificates.X509Certificate2 issuerCertificate, DateTimeOffset notBefore, DateTimeOffset notAfter, ReadOnlySpan<byte> serialNumber);
member this.Create : System.Security.Cryptography.X509Certificates.X509Certificate2 * DateTimeOffset * DateTimeOffset * ReadOnlySpan<byte> -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Function Create (issuerCertificate As X509Certificate2, notBefore As DateTimeOffset, notAfter As DateTimeOffset, serialNumber As ReadOnlySpan(Of Byte)) As X509Certificate2
매개 변수
- issuerCertificate
- X509Certificate2
발급 CA(인증 기관)를 나타내는 X509Certificate2 인스턴스입니다.
- notBefore
- DateTimeOffset
이 인증서가 유효한 것으로 간주되는 가장 오래된 날짜 및 시간입니다. 일반적으로 UtcNow몇 초를 더하거나 뺀 값입니다.
- notAfter
- DateTimeOffset
이 인증서가 더 이상 유효한 것으로 간주되지 않는 날짜 및 시간입니다.
- serialNumber
- ReadOnlySpan<Byte>
새 인증서에 사용할 일련 번호입니다. 이 값은 발급자별로 고유해야 합니다. 값은 big endian 바이트 순서에서 부호 없는(큰) 정수로 해석됩니다.
반품
지정된 값이 있는 인증서입니다. 반환된 개체는 어설션 HasPrivateKey되지 않습니다.
예외
issuerCertificate은 null입니다.
값 HasPrivateKey 은 issuerCertificate .입니다false.
나타내는 서명 키의 형식을 issuerCertificate 확인할 수 없습니다.
notAfter 는 이전 날짜 및 시간을 notBefore나타냅니다.
serialNumber 길이가 0입니다.
issuerCertificate 에는 요청된 인증서와 다른 키 알고리즘이 있습니다.
issuerCertificate 는 RSA 인증서이며 이 개체는 값을 허용하지 RSASignaturePadding 않는 생성자를 통해 만들어졌습니다.
적용 대상
Create(X509Certificate2, DateTimeOffset, DateTimeOffset, Byte[])
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
- Source:
- CertificateRequest.cs
지정된 인증서를 발급자로 사용하여 설정된 주체, 키 및 선택적 확장을 사용하여 인증서를 만듭니다.
public:
System::Security::Cryptography::X509Certificates::X509Certificate2 ^ Create(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ issuerCertificate, DateTimeOffset notBefore, DateTimeOffset notAfter, cli::array <System::Byte> ^ serialNumber);
public System.Security.Cryptography.X509Certificates.X509Certificate2 Create(System.Security.Cryptography.X509Certificates.X509Certificate2 issuerCertificate, DateTimeOffset notBefore, DateTimeOffset notAfter, byte[] serialNumber);
member this.Create : System.Security.Cryptography.X509Certificates.X509Certificate2 * DateTimeOffset * DateTimeOffset * byte[] -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Function Create (issuerCertificate As X509Certificate2, notBefore As DateTimeOffset, notAfter As DateTimeOffset, serialNumber As Byte()) As X509Certificate2
매개 변수
- issuerCertificate
- X509Certificate2
X509Certificate2 발급 CA(인증 기관)를 나타내는 인스턴스입니다.
- notBefore
- DateTimeOffset
이 인증서가 유효한 것으로 간주되는 가장 오래된 날짜 및 시간입니다. 일반적으로 UtcNow몇 초를 더하거나 뺀 값입니다.
- notAfter
- DateTimeOffset
이 인증서가 더 이상 유효한 것으로 간주되지 않는 날짜 및 시간입니다.
- serialNumber
- Byte[]
새 인증서에 사용할 일련 번호입니다. 이 값은 발급자별로 고유해야 합니다. 값은 big-endian 바이트 순서에서 임의의 크기의 부호 없는 정수로 해석됩니다. RFC 3280 은 20바이트 이하로 제한하는 것이 좋습니다.
반품
X509Certificate2 지정된 값을 가진 개체입니다. 반환된 개체는 어설션 HasPrivateKey되지 않습니다.
예외
issuerCertificate은 null입니다.
프라이빗 issuerCertificate 키가 포함되어 있지 않습니다.
-또는-
나타내는 서명 키의 형식을 issuerCertificate 확인할 수 없습니다.
-또는-
notAfter 은 .보다 notBefore일찍 발생하는 날짜 및 시간을 나타냅니다.
-또는-
serialNumber 길이가 0이거나 null.
-또는-
issuerCertificate 에는 요청된 인증서와 다른 키 알고리즘이 있습니다.
-또는-
값 HasPrivateKey 은 issuerCertificate .입니다false.
issuerCertificate 는 RSA 인증서이고 현재 개체는 매개 변수를 허용하지 padding 않는 생성자를 사용하여 만들어졌습니다.
HashAlgorithm 속성 값은 지원되지 않습니다.
설명
이 메서드는 인증서 서명에 대한 해시 알고리즘으로 MD5 또는 SHA-1을 사용할 수 없습니다. MD5 또는 SHA-1 기반 인증서 서명이 필요한 경우 사용자 지정 X509SignatureGenerator 을 구현하고 호출 Create(X500DistinguishedName, X509SignatureGenerator, DateTimeOffset, DateTimeOffset, Byte[])해야 합니다.