Scanning SSL-encrypted traffic

Web Monitor enables your product to scan HTTP traffic encrypted using SSL protocol.

Depending on the version of SSL protocol, the following protection is provided.

To scan HTTPS traffic KAV SDK uses a digital certificate. This certificate is issued by Kaspersky Lab. KAV SDK automatically places this certificate to the computer storage during initialization even if scanning HTTPS traffic is turned off.

Turning scanning of SSL v.3 traffic on or off

Manging the state of scanning encrypted traffic depends on the target browser or application that establishes SSL connections.

Microsoft Internet Explorer® and Google Chrome™ browsers support using computer storage, which is used system wide. Once certificate is added to the storage, these browsers keep using it until you remove the certificate from the storage.

Browsers Mozilla™ Firefox™ and Opera use their custom storage for storing certificates. KAV SDK automatically installs its digital certificate to these custom storages when you start Firefox or Opera. Make sure to close any running instance of these browsers before run KAV SDK for the first time. Otherwise, if you attempt to start KAV SDK when there is a running instance of Firefox or Opera browser, this instance needs to be restarted to use the installed certificate.

You may need to manually install Kaspersky certificate in the following cases:

To turn scanning of HTTPS traffic for Web Monitor on or off,

Invoke kaveEnableSSLDecode with bEnable parameter set to 1 to turn on scanning of HTTPS/SSL v.3 traffic and objects transferred via this protocol. Or, set bEnable to 0 to turn off scanning of HTTPS connections.

To verify if scanning of HTTPS traffic is turned on or off,

Invoke kaveIsEnabledSSLDecode.

To manually install digital certificate,

Invoke kaveReinstallSSLCertificate.

If an error occurs in the middle of a scanning operation, KAV SDK closes the established SSL connection.

Turning blocking of SSL v.2 connections on or off

By default, Web Monitor blocks connections established via HTTPS/SSL v.2 and does not scan objects within such traffic. This protocol has been deprecated and is globally considered insecure.

You may manage blocking of HTTPS/SSL v.2 traffic by changing its default ON state to OFF through the kaveEnableSSLv2Blocking API.

To turn blocking of HTTPS/SSL v.2 connections for Web Monitor on or off,

Invoke kaveEnableSSLv2Blocking with bEnable parameter set to 1 to turn on blocking of HTTPS/SSL v.2 connections. Or, set bEnable to 0 to turn off blocking of HTTPS connections established over SSL v.2.

To verify if blocking of HTTPS/SSL v.2 connections is turned on or off,

Invoke kaveIsEnabledSSLv2Blocking.

By default, blocking is turned on, and this function returns TRUE.

Handling SSL v3 connections to a host with expired or not-yet-valid certificate

To inform your application about issues with the certificate of the remote host, KAV SDK uses your main callback function built based on the prototype.

For example, if the application monitored by Web Monitor connects to a remote host with an expired or not-yet-valid certificate, KAV SDK invokes your callback handler with the EVENT_SSL_BAD_CERTIFICATE code in dwEvent. In this handler the SDK requests your application to response with one of the following return codes:

Invoked callback contains the following data for its respective parameters:

See also

kaveEnableSSLDecode

kaveIsEnabledSSLDecode

kaveEnableSSLv2Blocking

kaveIsEnabledSSLv2Blocking

kaveReinstallSSLCertificate

KAV_CERTIFICATE_INFO

Page top