|
CertificateMakerGenerateSelfSignedCertificate Method
|
Creates a certificate authority certificate.
Namespace: GSF.Security.Cryptography.X509Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.246-beta+ff392465a0262ee2737937d4127fc3c2f08c6dcd
Syntaxpublic static X509Certificate2 GenerateSelfSignedCertificate(
CertificateSigningMode mode,
string subjectName,
DateTime startDate = default,
DateTime endDate = default
)
Public Shared Function GenerateSelfSignedCertificate (
mode As CertificateSigningMode,
subjectName As String,
Optional startDate As DateTime = Nothing,
Optional endDate As DateTime = Nothing
) As X509Certificate2
public:
static X509Certificate2^ GenerateSelfSignedCertificate(
CertificateSigningMode mode,
String^ subjectName,
DateTime startDate = DateTime(),
DateTime endDate = DateTime()
)
static member GenerateSelfSignedCertificate :
mode : CertificateSigningMode *
subjectName : string *
?startDate : DateTime *
?endDate : DateTime
(* Defaults:
let _startDate = defaultArg startDate new DateTime()
let _endDate = defaultArg endDate new DateTime()
*)
-> X509Certificate2
GSF.Security.Cryptography.X509.CertificateMaker.GenerateSelfSignedCertificate = function(mode, subjectName, startDate, endDate);
View SourceParameters
- mode CertificateSigningMode
-
- subjectName String
-
- startDate DateTime (Optional)
-
- endDate DateTime (Optional)
-
Return Value
X509Certificate2
See Also