Security Domain
Security
Methods
- Security.disable
- Security.enable
- Security.setIgnoreCertificateErrors
- Security.handleCertificateError Deprecated
- Security.setOverrideCertificateErrors Deprecated
Events
- Security.certificateError Deprecated
- Security.securityStateChanged Deprecated
- Security.visibleSecurityStateChanged Experimental
Types
- Security.CertificateErrorAction
- Security.CertificateId
- Security.MixedContentType
- Security.SecurityState
- Security.SecurityStateExplanation
- Security.InsecureContentStatus Deprecated
- Security.CertificateSecurityState Experimental
- Security.SafetyTipInfo Experimental
- Security.SafetyTipStatus Experimental
- Security.VisibleSecurityState Experimental
Methods
Security.setIgnoreCertificateErrors #
Enable/disable whether all certificate errors should be ignored.
Parameters
ignore
boolean
If true, all certificate errors will be ignored.
Security.handleCertificateError Deprecated#
Handles a certificate error that fired a certificateError event.
Parameters
eventId
integer
The ID of the event.
action
The action to take on the certificate error.
Security.setOverrideCertificateErrors Deprecated#
Enable/disable overriding certificate errors. If enabled, all certificate error events need to
be handled by the DevTools client and should be answered with handleCertificateError
commands.
Parameters
override
boolean
If true, certificate errors will be overridden.
Events
Security.certificateError Deprecated#
There is a certificate error. If overriding certificate errors is enabled, then it should be
handled with the handleCertificateError
command. Note: this event does not fire if the
certificate error has been allowed internally. Only one client per target should override
certificate errors at the same time.
Parameters
eventId
integer
The ID of the event.
errorType
string
The type of the error.
requestURL
string
The url that was requested.
Security.securityStateChanged Deprecated#
The security state of the page changed. No longer being sent.
Parameters
securityState
Security state.
schemeIsCryptographic
boolean
True if the page was loaded over cryptographic transport such as HTTPS.
explanations
array[ SecurityStateExplanation ]
Previously a list of explanations for the security state. Now always empty.
insecureContentStatus
summary
Optional
string
Overrides user-visible description of the state. Always omitted.
Security.visibleSecurityStateChanged Experimental#
The security state of the page changed.
Parameters
visibleSecurityState
Security state information about the page.
Types
Security.CertificateErrorAction #
The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request.
Type: string
Allowed values: continue
, cancel
Security.MixedContentType #
A description of mixed content (HTTP resources on HTTPS pages), as defined by https://www.w3.org/TR/mixed-content/#categories
Type: string
Allowed values: blockable
, optionally-blockable
, none
Security.SecurityState #
The security level of a page or resource.
Type: string
Allowed values: unknown
, neutral
, insecure
, secure
, info
, insecure-broken
Security.SecurityStateExplanation #
An explanation of an factor contributing to the security state.
Type: object
Properties
securityState
Security state representing the severity of the factor being explained.
title
string
Title describing the type of factor.
summary
string
Short phrase describing the type of factor.
description
string
Full text explanation of the factor.
mixedContentType
The type of mixed content described by the explanation.
certificate
array[ string
]
Page certificate.
recommendations
Optional
array[ string
]
Recommendations to fix any issues.
Security.InsecureContentStatus Deprecated#
Information about insecure content on the page.
Type: object
Properties
ranMixedContent
boolean
Always false.
displayedMixedContent
boolean
Always false.
containedMixedForm
boolean
Always false.
ranContentWithCertErrors
boolean
Always false.
displayedContentWithCertErrors
boolean
Always false.
ranInsecureContentStyle
Always set to unknown.
displayedInsecureContentStyle
Always set to unknown.
Security.CertificateSecurityState Experimental#
Details about the security state of the page certificate.
Type: object
Properties
protocol
string
Protocol name (e.g. "TLS 1.2" or "QUIC").
keyExchange
string
Key Exchange used by the connection, or the empty string if not applicable.
keyExchangeGroup
Optional
string
(EC)DH group used by the connection, if applicable.
cipher
string
Cipher name.
mac
Optional
string
TLS MAC. Note that AEAD ciphers do not have separate MACs.
certificate
array[ string
]
Page certificate.
subjectName
string
Certificate subject name.
issuer
string
Name of the issuing CA.
validFrom
Certificate valid from date.
validTo
Certificate valid to (expiration) date
certificateNetworkError
Optional
string
The highest priority network error code, if the certificate has an error.
certificateHasWeakSignature
boolean
True if the certificate uses a weak signature algorithm.
certificateHasSha1Signature
boolean
True if the certificate has a SHA1 signature in the chain.
modernSSL
boolean
True if modern SSL
obsoleteSslProtocol
boolean
True if the connection is using an obsolete SSL protocol.
obsoleteSslKeyExchange
boolean
True if the connection is using an obsolete SSL key exchange.
obsoleteSslCipher
boolean
True if the connection is using an obsolete SSL cipher.
obsoleteSslSignature
boolean
True if the connection is using an obsolete SSL signature.
Security.SafetyTipInfo Experimental#
Type: object
Properties
safetyTipStatus
Describes whether the page triggers any safety tips or reputation warnings. Default is unknown.
safeUrl
Optional
string
The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches.
Security.VisibleSecurityState Experimental#
Security state information about the page.
Type: object
Properties
securityState
The security level of the page.
certificateSecurityState
Optional
Security state details about the page certificate.
safetyTipInfo
Optional
The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown.
securityStateIssueIds
array[ string
]
Array of security state issues ids.