What is this add-on for?
Some Russian services use TLS certificates issued by the National Certification Authority of the Ministry of Digital Development, Communications, and Mass Media of the Russian Federation. These certificates may not be included in the default set of trusted certificate authorities in the server environment. The add-on allows XenForo to verify such connections without disabling TLS verification.
Will all outgoing requests start using Russian certificates immediately after installation?
No. The global option is disabled by default. Without it, certificates are used only by compatible add-ons that explicitly include them in individual requests.
What does the global option do?
It adds trusted Russian certificates to all outgoing requests made by XenForo HTTP clients. This expands the range of trusted certificate authorities for such requests, so this option should only be enabled consciously.
Does the add-on disable TLS verification or replace the default XenForo certificates?
No. Authentication and hostname verification remain enabled, and XenForo's default set of trusted certificates is preserved. The add-on simply adds a separate catalog of Russian certificates.
Do I need to modify the system certificate store or XenForo files?
No. Certificates are stored within the add-on. It does not modify the XenForo configuration, the server's system store, or the default XenForo certificate file.
Will the add-on affect the site's HTTPS certificate?
No. The add-on only applies to outgoing XenForo server HTTP requests. It does not change the site's certificate or affect the trust of visitors' browsers.
What certificates are included?
The current release includes RSA certificates from the Russian Trusted Root CA and Russian Trusted Sub-CA issued by the National Certification Authority of the Ministry of Digital Development, Communications, and Mass Media of the Russian Federation. GOST certificates are not included in the current set.
Are certificates renewed automatically?
No. The add-on does not load certificates from external sources during operation. An updated and verified set is distributed in new add-on releases.
Is it possible to replace certificate files manually?
Not recommended. Before use, the add-on verifies the exact composition and checksums of files. If a file is modified, deleted, or damaged, the request will fail with an error instead of continuing unsafely.
Which third-party HTTP clients are covered by the global setting?
Only clients created by the built-in XenForo container are affected. Direct clients from third-party libraries are not modified. Their developers can use the add-ons's public method.
How to use the add-on in your own code?
TC/RuTrustedCA can be included in individual Guzzle requests without a mandatory dependency. Before sending a request, ensure the add-on is installed, active, and has a compatible version, then pass the request parameters to CertificateProvider:
$httpClient = \XF::app()->http()->get('clientUntrusted');
$requestOptions = [
'allow_redirects' => true,
'headers' => [
'Content-Type' => 'application/json'
],
'body' => $args
];
if (\XF::isAddOnActive('TC/RuTrustedCA', 1000070))
{
$requestOptions = call_user_func(
['TC\\RuTrustedCA\\CertificateProvider', 'applyToRequestOptions'],
$requestOptions
);
}
$response = $httpClient->post($api_url, $requestOptions);
If TC/RuTrustedCA is missing or disabled, the request is made with the original parameters. If the add-on is active, the provider preserves the existing parameters and adds a directory of trusted Russian certificates via CURLOPT_CAPATH. Do not add TC/RuTrustedCA to the require in addon.json or disable TLS verification with verify => false.
Is it possible to install the add-on later?
Yes. Compatible add-ons check for its availability when making a request. Once installed and activated, certificates are applied to the next compatible request without any additional actions and are no longer effective once the add-on is disabled.