MID Server certificate check policies
Summarize
Summary of MID Server certificate check policies
MID Server employs three key security checks—TLS/SSL certificate validation, hostname validation, and OCSP validation—to secure all HTTPS traffic originating from the MID Server to external endpoints. These checks ensure encrypted communication, verify server identity, and confirm certificate validity to protect against man-in-the-middle attacks and compromised certificates. Control over these checks is managed through the MID Server certificate check policies table, enabling you to configure and enforce security for different connection types.
Show less
Key Features
- TLS/SSL Certificate Validation: Uses asymmetric encryption to verify the authenticity of the server’s certificate before establishing an encrypted session.
- Hostname Validation: Ensures the server’s certificate hostname matches the requested URL, preventing redirection to malicious servers. This depends on successful TLS/SSL validation.
- Online Certificate Status Protocol (OCSP): Contacts the certificate authority to check if the certificate is valid, revoked, or unknown, adding an additional layer of certificate verification.
- Security Policies: The MID Server enforces four types of HTTPS traffic policies:
- ServiceNow endpoint policy: Default for ServiceNow URLs.
- Internet policy: Applies to all internet endpoints.
- Intranet policy: Covers internal network IP ranges; requires manual enabling for certificate checks after upgrades.
- Overridden policy: Highest precedence policy to override specific endpoints or URLs.
- Configurable Trust: To connect to internal or self-signed certificate endpoints securely, import certificates into the MID Server trust store or disable specific validation checks.
- Instance Security Policy Control: The
mid.ssl.use.instance.security.policyparameter toggles whether the MID Server uses its bootstrap config or syncs security policies from the ServiceNow instance, allowing flexibility during setup and upgrades.
Key Outcomes
- Enhanced security of all MID Server HTTPS communications by enforcing certificate and hostname validations plus real-time certificate status checks.
- Ability to customize security policies for different network zones (internet, intranet, ServiceNow URLs) to balance security and operational needs.
- Assured connectivity only to endpoints with valid, trusted certificates; mitigates risks from compromised or forged certificates.
- Improved control during upgrades by managing whether MID Server accepts instance policy updates or retains bootstrap settings.
- Clear error feedback on insecure connections, enabling quick diagnostics and remediation.
MID Server uses three kinds of security checks to secure external traffic. The security checks use TLS/SSL certificate validation, hostname validation, and OCSP validation to improve security. Control these security checks with the MID Server certificate check policies table.
TLS/SSL certificate validation
TLS/SSL encryption security uses asymmetric encryption, also called public-key encryption. This encryption uses two cryptographic keys: the public key and the private key. The public key is used for encryption of data and is publicly visible. The private key is used for decryption of data and its security is essential to verifying authenticity.
In TLS/SSL certificate validation, the MID Server attempts to connect to a web server secured with a TLS or SSL certificate. The web server sends a copy of its TLS/SSL certificate to the MID Server. The MID Server checks the authenticity of the certificate and sends a message to the webserver. The webserver responds with a digitally signed acceptance for initiating an TLS/SSL encrypted session. After which the MID Server can begin encrypted communication with the web server.
Hostname validation
Hostname verification is a part of HTTPS that involves a server identity check to ensure that the client is talking to the correct server. This check prevents sending information to a server after being redirected by a man in the middle attack.
The check involves verifying that the dnsName of the certificate sent by the
server matches the URL used to make the request. According to RFC 6125, hostname verification
should be done against the certificate's subjectAlternativeName's dNSName field. In some legacy
implementations, the check is done against the certificate's commonName field. If the names
don't match, the connection is terminated.
Online Certificate Status Protocol (OCSP)
OCSP involves contacting the remote certificate authority server and verifying the certificate before the MID Server communicates further with the target server. Compromised certificates can be a security vulnerability, especially if those certificates have the ability to sign other certificates. If certificates have been broken or forged, then a certificate authority can inform a client which certificates are invalid and should not be used.
An OCSP responder (a server typically run by the certificate issuer) returns a signed response that the certificate is 'good', 'revoked', or 'unknown'. If it cannot process the request, it may return an error code.
The certificate's issuer may delegate another authority to be the OCSP responder. This creates a chain of certificates that must be verified. The responder's certificate must be issued by the issuer of the certificate in question. The responder’s certificate must include a certain extension that marks it as an OCSP signing authority.
MID Server security policy
MID Server security policies control all HTTPS traffic originating from the MID Server. This includes HTTPS connections from the MID Server to an internet endpoint, ServiceNow URLs, intranet endpoints, as well as cloud endpoints.
These connections can be further classified into 4 security policies:
- ServiceNow endpoint policy
- This policy is the system default exclusively for ServiceNow URLs. On the MID Server config.xml, there are bootstrap properties which are only used to make first connection to the instance and will get updated with the system_default policy.
- Internet policy
- These policies cover all HTTPS connections initiated from MID Server to any endpoint on the internet.
- Intranet policy
- These policies cover the reserved IP subnets, such as self-hosted networks.
- Overridden policy
- You can override specific endpoints or URLs with this policy definition. Overridden policies take the highest order of precedence during operation.
Both tables are editable to include or exclude IP ranges, as well as control what kind of certificate validation checks need to be done. Enable all certificate validation checks to maximize security. The Quebec version has all policies and checks turned on by default for fresh installations.
For endpoints that host a self-signed certificate, either import the certificate to the MID Server trust store or disable the policy checks which validate that host. For more information about adding certificates, see Add SSL certificates for the MID Server.
After upgrading to Quebec, go to the certificate check policies table and make changes to policy configuration if necessary. Once the MID Server starts up and connects to the instance, any subsequent HTTPS connection originating from the MID server will start applying these certificate checks at runtime. Insecure connections are broken with appropriate error messages.
Use Instance Security Policy
The MID Server configuration parameter mid.ssl.use.instance.security.policy controls whether the MID Server uses its bootstrap parameters rather than the security policy from the instance. By default, mid.ssl.use.instance.security.policy is set to false in the config.xml so the bootstrap policies are not overwritten by the instance's.
This default setting can prevent some problems during MID Server setup. For example if the host is unable to reach the OCSP responder, then a new MID Server installation is not disrupted by an instance's policy of requiring OCSP connection.
The configuration parameter mid.ssl.use.instance.security.policy can be set for each MID Server. When set to true, the MID Server syncs all policies with the instance and the bootstrap configuration parameters are overwritten by the *.servicenow.com policy on the instance mid_cert_check_policy table. The final policies update the policy map in the MID Server memory as well as the config.xml.
<parameter name="mid.ssl.bootstrap.default.check_cert_hostname" value="true"/><parameter name="mid.ssl.bootstrap.default.check_cert_chain" value="true"/><parameter name="mid.ssl.bootstrap.default.check_cert_revocation" value="false"/><parameter name="mid.ssl.use.instance.security.policy" value="false"/>
Self-hosted or on-prem instances must add the following parameter for the
config.xml: <parameter
name="mid.ssl.bootstrap.default.target_endpoint"
value="FQDN_OF_THE_INSTANCE"/>