STKXSSLCertificateErrorEventArgs#

class ansys.stk.core.stkx.STKXSSLCertificateErrorEventArgs#

Provide information about an SSL certificate that is expired or invalid.

Overview#

set_ignore_error

Specify True to ignore the certificate error and continue with establishing secure HTTP connection to the remote server.

set_ignore_error_permanently

Specify True to ignore the certificate error and add the certificate to the list of trusted certificates.

is_error_ignored

Return whether the invalid certificate error is ignored.

serial_number

Certificate’s serial number.

issuer

The provider who issued the certificate.

subject

Certificate’s subject field.

valid_date

Certificate’s valid date.

expiration_date

Certificate’s expiration date.

is_expired

Whether the certificate is expired.

pem_data

Certificate’s PEM data encoded as base-64.

handled

Indicate whether the event should continue be routed to the listeners. Setting Handled to true will prevent the event from reaching any remaining listeners.

Import detail#

from ansys.stk.core.stkx import STKXSSLCertificateErrorEventArgs

Property detail#

property STKXSSLCertificateErrorEventArgs.is_error_ignored: bool#

Return whether the invalid certificate error is ignored.

property STKXSSLCertificateErrorEventArgs.serial_number: str#

Certificate’s serial number.

property STKXSSLCertificateErrorEventArgs.issuer: str#

The provider who issued the certificate.

property STKXSSLCertificateErrorEventArgs.subject: str#

Certificate’s subject field.

property STKXSSLCertificateErrorEventArgs.valid_date: datetime#

Certificate’s valid date.

property STKXSSLCertificateErrorEventArgs.expiration_date: datetime#

Certificate’s expiration date.

property STKXSSLCertificateErrorEventArgs.is_expired: bool#

Whether the certificate is expired.

property STKXSSLCertificateErrorEventArgs.pem_data: str#

Certificate’s PEM data encoded as base-64.

property STKXSSLCertificateErrorEventArgs.handled: bool#

Indicate whether the event should continue be routed to the listeners. Setting Handled to true will prevent the event from reaching any remaining listeners.

Method detail#

STKXSSLCertificateErrorEventArgs.set_ignore_error(self, ignore_error: bool) None#

Specify True to ignore the certificate error and continue with establishing secure HTTP connection to the remote server.

Parameters:

ignore_error : bool

Returns:

None

STKXSSLCertificateErrorEventArgs.set_ignore_error_permanently(self, ignore_error_permanently: bool) None#

Specify True to ignore the certificate error and add the certificate to the list of trusted certificates.

Parameters:

ignore_error_permanently : bool

Returns:

None