AFGlobalSettings.CertificateMode Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Setting determines the level of strictness required for certificate validation
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static AFGlobalSettingsCertValidationMode CertificateMode { get; set; }
Public Shared Property CertificateMode As AFGlobalSettingsCertValidationMode Get Set Dim value As AFGlobalSettingsCertValidationMode value = AFGlobalSettings.CertificateMode AFGlobalSettings.CertificateMode = value
public: static property AFGlobalSettingsCertValidationMode CertificateMode { AFGlobalSettingsCertValidationMode get (); void set (AFGlobalSettingsCertValidationMode value); }
static member CertificateMode : AFGlobalSettingsCertValidationMode with get, set
Property Value
Type: AFGlobalSettingsCertValidationModeThis setting is used by clients to determine requirements for certificate validation during the connection to the server. This value defaults to AllowExpiredOrRevoked
Remarks
If the option is set to SystemDefault the certificate must be non-expired with a valid certificate chain. If the option is set to AllowExpiredOrRevoked the certificate can be expired or revoked but must have a valid certificate chain. If the option is set to None any certificate will be accepted.