A container for TLS configuration and certificates.
More...
A container for TLS configuration and certificates.
◆ TLSConfiguration()
| IEC61850.TLS.TLSConfiguration.TLSConfiguration |
( |
| ) |
|
◆ AddAllowedCertificate() [1/2]
| void IEC61850.TLS.TLSConfiguration.AddAllowedCertificate |
( |
string | filename | ) |
|
◆ AddAllowedCertificate() [2/2]
| void IEC61850.TLS.TLSConfiguration.AddAllowedCertificate |
( |
X509Certificate2 | cert | ) |
|
◆ AddCACertificate() [1/2]
| void IEC61850.TLS.TLSConfiguration.AddCACertificate |
( |
string | filename | ) |
|
◆ AddCACertificate() [2/2]
| void IEC61850.TLS.TLSConfiguration.AddCACertificate |
( |
X509Certificate2 | cert | ) |
|
◆ AddCipherSuite()
| void IEC61850.TLS.TLSConfiguration.AddCipherSuite |
( |
int | ciphersuite | ) |
|
Add an allowed ciphersuite to the list of allowed ciphersuites.
Version for .NET framework that does not support TlsCipherSuite enum
- Parameters
-
◆ AddCRL()
| void IEC61850.TLS.TLSConfiguration.AddCRL |
( |
string | filename | ) |
|
Add a CRL from a X509 CRL file.
- Parameters
-
| filename | the name of the CRL file |
◆ ClearCipherSuiteList()
| void IEC61850.TLS.TLSConfiguration.ClearCipherSuiteList |
( |
| ) |
|
Clears list of allowed ciphersuites.
- Returns
◆ Dispose()
| void IEC61850.TLS.TLSConfiguration.Dispose |
( |
| ) |
|
◆ ResetCRL()
| void IEC61850.TLS.TLSConfiguration.ResetCRL |
( |
| ) |
|
Removes any CRL (certificate revocation list) currently in use.
◆ SetClientMode()
| void IEC61850.TLS.TLSConfiguration.SetClientMode |
( |
| ) |
|
◆ SetEventHandler()
| void IEC61850.TLS.TLSConfiguration.SetEventHandler |
( |
TLSEventHandler | handler, |
|
|
object | parameter ) |
◆ SetMaxTlsVersion()
Set highest allowed TLS version to use.
- Parameters
-
| version | highest allowed TLS version |
◆ SetMinTlsVersion()
Set minimal allowed TLS version to use.
- Parameters
-
| version | lowest allowed TLS version |
◆ SetOwnCertificate() [1/2]
| void IEC61850.TLS.TLSConfiguration.SetOwnCertificate |
( |
string | filename | ) |
|
◆ SetOwnCertificate() [2/2]
| void IEC61850.TLS.TLSConfiguration.SetOwnCertificate |
( |
X509Certificate2 | cert | ) |
|
◆ SetOwnKey() [1/2]
| void IEC61850.TLS.TLSConfiguration.SetOwnKey |
( |
string | filename, |
|
|
string | password = null ) |
Set own private key from file.
- Parameters
-
| filename | Filename of a DER or PEM private key file |
| password | Password in case the private key is password protected |
- Exceptions
-
◆ SetOwnKey() [2/2]
| void IEC61850.TLS.TLSConfiguration.SetOwnKey |
( |
X509Certificate2 | key, |
|
|
string | password ) |
◆ SetRenegotiationTime()
| void IEC61850.TLS.TLSConfiguration.SetRenegotiationTime |
( |
int | timeInMs | ) |
|
Set the TLS session renegotiation timeout.
- Parameters
-
| timeInMs | session renegotiation timeout in milliseconds |
◆ AllowOnlyKnownCertificates
| bool IEC61850.TLS.TLSConfiguration.AllowOnlyKnownCertificates |
|
getset |
◆ ChainValidation
| bool IEC61850.TLS.TLSConfiguration.ChainValidation |
|
getset |
◆ SessionResumption
| bool IEC61850.TLS.TLSConfiguration.SessionResumption |
|
getset |
Enable or disable session resumption (enabled by default)
◆ SessionResumptionInterval
| int IEC61850.TLS.TLSConfiguration.SessionResumptionInterval |
|
getset |
Get or set the session resumption interval in seconds.
◆ TimeValidation
| bool IEC61850.TLS.TLSConfiguration.TimeValidation |
|
getset |
Verify validity of times in certificates and CRLs (default: true)
The documentation for this class was generated from the following file:
- C:/Users/MaxsonRamonDosAnjosM/workspace/libraries/libiec61850/dotnet/IEC61850forCSharp/TLS.cs