Free [TC] Russian Trusted CA - English description

Adds Russian Trusted CA certificates to all XenForo HTTP requests and provides an API for third-party add-ons.

Overview English description Releases (2)

The add-on adds Russian Trusted Root CA and Russian Trusted Sub CA certificates from the National Certification Authority of the Ministry of Digital Development, Communications, and Mass Media of the Russian Federation to XenForo. When enabled, these certificates are applied to all outgoing requests made by XenForo's built-in HTTP clients.

Features:
  • Add certificates to all outgoing requests made by XenForo's built-in HTTP clients.
  • Use of Russian trusted certificates in individual requests of third-party add-ons via the public method.
  • Preserving the default set of XenForo trusted certificates and other HTTP request parameters.
  • Check the presence and integrity of certificate files before using them.
  • Automatic application of integration by a compatible add-on after installation or activation of [TC] Russian Trusted CA without reinstallation.

Options:
  • Add Russian trusted CAs to all XenForo HTTP requests — extends certificate trust for every outgoing request created by XenForo's standard and untrusted HTTP clients. Enable only if you understand the security impact of globally expanding trust. Direct third-party HTTP clients are not affected

Additional information:
  • The add-on does not disable TLS certificate verification and does not replace the standard set of trusted certificates in XenForo.
  • The add-on does not change the server's system certificate store or XenForo files.
  • The global option does not affect third-party library HTTP clients created outside of the native XenForo HTTP container.
  • The add-on works with outgoing server requests. It does not change the site's HTTPS certificate or its trust in visitors' browsers.
  • Certificates are not downloaded from external sources automatically and are updated along with add-on releases.
  • Additional information is also provided in the instructions for installing TLS certificates from the Ministry of Digital Development, Communications and Mass Media from T-Bank.

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:
PHP:
$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.

Product Information

[TC] Russian Trusted CA
PHP 8.1+XenForo 2.2.0+
XenForo version
  1. 2.2
  2. 2.3
Release date
Last update
0% 0.00 star(s) 0 ratings

Pricing information

Lifetime
Free
Back