<PackageReference Include="Relativity.Server.Utility.SDK" Version="14.2.7" />

CertificateGenerator

public sealed class CertificateGenerator
Provides access to static members for creating and storing self-signed certificates in the 'My' certificate store.

public static X509Certificate2 CreateSelfSignCertificate(X500DistinguishedName distinguishedName, DateTime startDate, DateTime endDate)

Generates a self-signed certificate with the provided subject and range of validity. The certificate will be stored in the local machine store.

public static X509Certificate2 CreateSelfSignCertificate(X500DistinguishedName distinguishedName, DateTime startDate, DateTime endDate, StoreLocation certificateStore)

Generates a self-signed certificate with the provided subject and range of validity. The certificate will be stored in the specified location.

public static string GenerateSelfSignedSubjectName()