HTTP.IsValidCertificate |
|
|
|
HTTP.IsValidCertificate |
|
|
|
|
||
OverviewExamples
bValid = HTTP.IsValidCertificate("https://www.mydomain.com");
Checks if the SSL certificate on the web URL https:://www.mydonain.com is not self-signed, expired, etc.
-- Check if it appears to be safe to download data from remote server
local bValid = HTTP.IsValidCertificate("mydomain.com");
if not bValid then
local nError = Application.GetLastError();
Dialog.Message("Alert", "Remote server SSL certificate cannot be trusted.\r\nError " .. nError);
Application.Exit(EXIT_REASON_USER_ABORTED);
else
-- Download and run the server script
if (Screen.Show("Connect to Server") == SR_SUCCESS) then
TrueUpdate.RunScript("Server Script");
end
end
Checks the server's SSL certificate before downloading any new files and proceeding with the application update process.
See also: Related Actions
Learn More: Indigo Rose Software - TrueUpdate - Buy Now - Contact Us