Interface ICertificateAuthorityService
Defines the contract for X.509 Certificate Authority service generating custom certificates.
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public interface ICertificateAuthorityService
Methods
CreateCertificate(String)
Create new X.509 certificate issued by Repository Certificate Authority.
Declaration
CertificateInfo CreateCertificate(string subjectName)
Parameters
Type | Name | Description |
---|---|---|
String | subjectName | New certificate's subject distinguished name. |
Returns
Type | Description |
---|---|
CertificateInfo | Created X.509 certificate with its basic information. |
CreateCertificate(String, Int32, String)
Create new X.509 certificate issued by Repository Certificate Authority.
Declaration
CertificateInfo CreateCertificate(string subjectName, int validDays, string password)
Parameters
Type | Name | Description |
---|---|---|
String | subjectName | New certificate's subject distinguished name. |
Int32 | validDays | Requested number of days after which the certificate expires. This value can be automatically limited by Repository expirationMonths configuration value. |
String | password | Password for the resulting PFX file. |
Returns
Type | Description |
---|---|
CertificateInfo | Created X.509 certificate with its basic information and password protected PFX data in its RawData property. |
GetCertificateAuthorities()
Returns X.509 certificates belonging to Certificate Authorities that have to be trusted by service providers and consumers.
Declaration
Collection<CertificateInfo> GetCertificateAuthorities()
Returns
Type | Description |
---|---|
Collection<CertificateInfo> | X.509 certificates belonging to Certificate Authorities. |
SignCertificateRequest(String)
Signs provided X.509 certificate signing request (CSR) using Repository Certificate Authority certificate.
Declaration
string SignCertificateRequest(string request)
Parameters
Type | Name | Description |
---|---|---|
String | request | Base64-encoded certificate's signing request that needs to be signed. |
Returns
Type | Description |
---|---|
String | Base64-encoded signed request that needs to be merged with the requestor's private key. |