CertificationRequest Class
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9119)
PKCS #10 certification request. This is the standard certificate format. It is used (for example) by Internet Explorer's XEnroll control, but non-IE browsers generally use SignedPublicKeyAndChallenge instead.
Syntax
public class CertificationRequest
Inherited Members
Constructors
Name | Description |
---|---|
CertificationRequest(DistinguishedName, PublicKeyInfo) | Creates a new PKCS #10 request for the specified subject and public key. |
CertificationRequest(Byte[]) | Parses a PKCS #10 request from an ASN.1 block. |
Properties
Name | Description |
---|---|
Attributes | Gets the PKCS #10 request's attributes. |
CertificateExtensions | Gets the PKCS #10 request's certificate extension collection (represented by 1.2.840.113549.1.9.14 attribute in Attributes collection). |
PublicKey | Gets the PKCS #10 request's public key info. This includes the key itself. |
Subject | Gets the PKCS #10 request's subject. |
Methods
Name | Description |
---|---|
Encode() | Gets ASN.1 encoded form of this CertificationRequest object. |
GetAlternativeHostnames() | Gets list of alternative hostnames. |
Save(Stream) | Saves the certification request to the supplied stream. |
Save(String) | Saves the certification request to the supplied file. |
Sign(AsymmetricKeyAlgorithm, SignatureHashAlgorithm) | Signs the certification request using a private key corresponding to the request's public key. |
Sign(PrivateKeyInfo, SignatureHashAlgorithm) | Signs the certification request using a private key corresponding to the request's public key. |
Sign(AsymmetricAlgorithm, SignatureHashAlgorithm) | Signs the certification request using a private key corresponding to the request's public key. |
Validate() | Validates the PKCS #10 request's signature. |
Validate(DistinguishedName) | Validates the PKCS #10 request's signature. |