CertificateError

Description

Occurs when failed to validate the server certificate.

Event ID

Event ID

Objects

None

WebBrowser controls


Arguments

Argument

Description

errorText

The error description.

requestUrl

The URL of the server currently being requested.

certificateInfo

The certificate information which includes certificate issuer, certificate subject, certificate expiration time, and certificate PEM encoding.


Return Values

0 -- to continue browsing the current page.

1 -- to cancel the browsing of the current page.

Examples

Integer CertificateError(string errorText, string requestUrl, string certificateInfo)
{
strMessage = "[CERTIFICATE_ERROR_TEXT]: " + "~r~n"
strMessage += "ErrorText : "   + errortext + "~r~n"
strMessage += "RequestUrl :  " + requesturl + "~r~n"
strMessage += "Certificate : "   + certificateInfo + "~r~n"
strMessage += "Yes :to continue browsing the web page. No : to concel browsing the web page ~r~n"

if MessageBox('server certificate error', strMessage, Question!, YesNo! ) = 1 then
    // Continue browsing the web page    
    Ln_Result = 0
else
    // Cancel browsing the web page    
    Ln_Result = 1
end if

return Ln_Result
}

See also

AddressChanged

DownloadingStart

DownloadingStateChanged

NavigationError

NavigationProgressIndex

NavigationStateChanged

PdfPrintFinished

ResourceRedirect

TitleTextChanged