Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

X509MBS.Open(Data as MemoryBlock) as X509MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Encryption and Hash MBS Encryption Plugin 17.0 Yes Yes Yes Yes No
Function: Opens a X509 PEM file.
Notes: Line endings must be LF, not CR.

See also:

Feedback, Comments & Corrections

X509MBS.Open(Data as String) as X509MBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Encryption and Hash MBS Encryption Plugin 17.0 Yes Yes Yes Yes No
Function: Opens a X509 PEM file.
Notes:
Please read file via binarystream and pass here as string.
Line endings must be LF, not CR.

See also:

Feedback, Comments & Corrections

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 Console & Web iOS
shared method Encryption and Hash MBS Encryption Plugin 17.0 Yes Yes Yes Yes No
Function: Reads certificate and private key from a PKCS12 file.
Example:
dim f as FolderItem = FindFile("test.p12")
dim b as BinaryStream = BinaryStream.Open(f)
dim s as string = b.Read(b.Length)
dim c as X509MBS
dim p as PKeyMBS
dim others() as X509MBS

if X509MBS.ReadFromPkcs12(s, "HelloWorld", p, c, others) then
MsgBox c.Name
end if
Notes:
Data is the content of the PKCS12 file.
Returns true on success or false on failure.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Encryption Plugin.




Links
MBS FileMaker blog