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 |
---|---|---|
System.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 |
---|---|---|
System.String | subjectName | New certificate's subject distinguished name. |
System.Int32 | validDays | Requested number of days after which the certificate expires. This value can be automatically limited by Repository expirationMonths configuration value. |
System.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 |
---|---|
System.Collections.ObjectModel.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 |
---|---|---|
System.String | request | Base64-encoded certificate's signing request that needs to be signed. |
Returns
Type | Description |
---|---|
System.String | Base64-encoded signed request that needs to be merged with the requestor's private key. |