.NET Based OPC UA Client/Server SDK
3.0.0.439
|
Provides helper functions used to create and revoke certificates. More...
Public Member Functions | |
CertificateFactory (ISecurityProvider provider) | |
void | Dispose () |
ICertificate | CreateCertificate (string storePath, CreateCertificateSettings settings) |
Creates a new certificate. More... | |
byte[] | CreateCertificateRequest (CertificateKeyPair requestor, CreateRequestSettings settings) |
Creates a certificate signing request. More... | |
ICertificate | UpdateCertificate (ICertificate certificateWithPrivateKey, ICertificate newCertificate) |
Static Public Member Functions | |
static ICertificate | Create (ISecurityProvider provider, string storePath, CreateCertificateSettings settings) |
Creates a new certificate. More... | |
static void | Revoke (ISecurityProvider securityProvider, string storePath, string thumbprint, string password, ICertificate certificate) |
Revokes the certificate. More... | |
static CertificateKeyPair | Convert (CertificateKeyPair input, string newPassword, string newKeyFormat) |
Converts a certificate from one format to another. More... | |
static ICertificate | Replace (ICertificate newCertificate, ICertificate existingCertificate) |
Replaces the certificate in a PFX file. More... | |
static ICertificate | Sign (byte[] certificateRequest, CertificateKeyPair issuer, SignCertificateSettings settings) |
Signs an existing certificate by the CA. More... | |
static byte[] | CreateRequest (CertificateKeyPair requestor, CreateRequestSettings settings) |
Creates a certificate signing request. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Properties | |
ISecurityProvider | SecurityProvider [get] |
static string | CertificateGeneratorPath [get, set] |
Gets or sets the path to the certificate generator. More... | |
static string | TempFileFolder [get, set] |
Gets or sets the path to store files used to pass arguments to the certificate generator. More... | |
Provides helper functions used to create and revoke certificates.
|
inlinestatic |
Converts a certificate from one format to another.
input | The input certificate. |
newPassword | The password on the output certificate. |
newKeyFormat | The new key format. |
|
inlinestatic |
Creates a new certificate.
provider | |
storePath | The store path. |
settings | Specified the contents of the certificate. |
|
inline |
Creates a new certificate.
storePath | The store path. |
settings | Specified the contents of the certificate. |
|
inline |
Creates a certificate signing request.
requestor | The requestor. |
settings | The settings. |
|
inlinestatic |
Creates a certificate signing request.
requestor | The requestor. |
settings | The settings. |
|
inlinestatic |
Replaces the certificate in a PFX file.
newCertificate | The new certificate. |
existingCertificate | The existing certificate with a private key. |
|
inlinestatic |
Revokes the certificate.
securityProvider | |
storePath | The store path. |
thumbprint | The thumbprint. |
password | The password. |
certificate | The certificate. |
|
inlinestatic |
Signs an existing certificate by the CA.
certificateRequest | The certificate request. |
issuer | The issuer. |
settings | The settings. |
|
staticgetset |
Gets or sets the path to the certificate generator.
The path to the certificate generator.
If this value is not set then the default location is same directory as the UaBase assembly.
|
staticgetset |
Gets or sets the path to store files used to pass arguments to the certificate generator.
The path to store files used to pass arguments to the certificate generator.
If this value is not set then then the user's temp folder is used.
Note that these file will contain secrets like passwords and private and should be created in a safe location with appropriate file permissions set. The SemaphoreFileLock is used to synchronize access to the single file.