Platforms to show: All Mac Windows Linux Cross-Platform
Back to X509MBS class.
X509MBS.CheckCertificates(rootCertificates() as X509MBS, certificate as X509MBS, intermediates() as X509MBS = nil, Flags as Integer = 0) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Encryption and Hash | MBS Encryption Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if valid or false if not.
This function attempts to discover and validate a certificate chain based on parameters in context. The verification context, is constructed using given root certificates.
Flags: Optional flags for X509_verify_cert. Please check OpenSSL documentation.
See also:
X509MBS.CheckCertificates(rootCertificates() as X509MBS, certificate as X509MBS, intermediates() as X509MBS, Flags as Integer, byref ErrorCode as Integer, byref ErrorMessage as String) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Encryption and Hash | MBS Encryption Plugin | 25.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true if valid or false if not.
This function attempts to discover and validate a certificate chain based on parameters in context. The verification context, is constructed using given root certificates.
Flags: Optional flags for X509_verify_cert. Please check OpenSSL documentation.
ErrorCode and ErrorMessage report back any error from X509_verify_cert function.
See also:
X509MBS.Open(Data as MemoryBlock) as X509MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Encryption and Hash | MBS Encryption Plugin | 17.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Line endings must be LF, not CR.
Version 24.3 accepts binary certificate data, too.
See also:
X509MBS.Open(Data as String) as X509MBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Encryption and Hash | MBS Encryption Plugin | 17.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please read file via binarystream and pass here as string.
Line endings must be LF, not CR.
Version 24.3 accepts binary certificate data, too.
See also:
X509MBS.ReadFromPkcs12(Data as String, Pass as String, byref PKey as PKeyMBS, byref Cert as X509MBS, byref certs() as X509MBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Encryption and Hash | MBS Encryption Plugin | 17.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Data is the content of the PKCS12 file.
Returns true on success or false on failure.
Some examples using this method:
X509MBS.ReadFromPkcs7(Data as String, Pass as String, byref certs() as X509MBS) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Encryption and Hash | MBS Encryption Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success.
Only for PKCS#7 data containing signatures.
X509MBS.WriteToPkcs12(friendlyName as String, Pass as String, PKey as PKeyMBS, Cert as X509MBS, certs() as X509MBS) as String New in 26.4
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| shared method | Encryption and Hash | MBS Encryption Plugin | 26.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns empty string if something fails. Raises out of memory exception in case of allocation failing.
The items on this page are in the following plugins: MBS Encryption Plugin.