Interaction over SSL

An SSL certificate is needed in two cases: for protecting user data (when using Yandex.Checkout), and for authenticating connections with Yandex.Money servers.

1. Certificate for protecting users' personal data

This type of certificate is required when activating Yandex.Checkout for any store with payment notifications over HTTP (the CMS module or HTTP protocol activation methods). Its purpose is to ensure that user data is transmitted in encrypted form. For this purpose, any ready-made domain certificate will work. You can get one for free when activating Yandex.Checkout, or buy one from any official authentication center. A self-signed certificate is also acceptable.


You shouldn't use SSL with SNI (Server Name Identification) support.

2. For authenticating connections with Yandex.Money servers

This type of certificate is required for using Yandex.Money protocols to perform financial transactions within the payment management protocol (MWS): returns, deferred payments, and others. It is also needed for using the protocol for mass disbursements and transfers to wallets. For these purposes, only a special SSL certificate issued by the NBCO Yandex.Money LLC certificate authority (NBCO YM Root) is acceptable.

If you aren't sure whether you need to get a certificate, or which kind to get, ask your Yandex.Money manager.

Getting an SSL certificate for interacting with Yandex.Money servers

To get a certificate, create a certificate request (in *.csr format), fill in the certificate request application form, and email the request and certificate application to your Yandex.Money manager.


To generate a certificate request in *.csr format, use OpenSSL.

1. Creating a private key

Run the command:

openssl genrsa -aes256 -out private.key 2048

Enter the password and confirm. For instance:

Enter pass phrase for private.key: 12345
Verifying - Enter pass phrase for private.key: 12345

A private.key file will be created in the directory where the command was run.


This is confidential information. Maintain the secrecy of the private key. File containing the private key is encrypted and password protected.

2. Creating a CSR request for a certificate

Run the command:

openssl req -new -key private.key -out request.csr

Enter the required parameter for the certificate request. Only use Latin characters.


When creating a CSR request in Windows, the command should specify the path to the OpenSSL configuration file. To do this, add -config "{path}" -out to the command. Command example:

req -new -key private.key -config "C:\openssl-WIN32\openssl.cnf" -out request.csr

Example of filling in certificate request parameters



Country Name (2 letter code) [AU]: RU Required
State or Province Name (full name): Russia Required
Locality Name (eg, city): []: Moscow Optional
Organization Name (eg, company) [Internet Widgits Pty Ltd]: OOO Predpriyatie Enter the required parameter for the certificate request. Only use Latin characters.
Organizational Unit Name (eg, section) []: Optional
Common Name (eg, YOUR name) []: /business/predpriyatie


/business/ — Required part of this parameter that shouldn't be changed. It can be followed by any Latin letters without spaces. For example, the name of your company in Latin letters.

Email Address:


The request.csr file will be created in the directory where the command was run.

3. Getting a digital signature for the certificate request application

You need a digital signature to fill in the certificate request application, as it is contained in the certificate file.

To get a digital signature, run the command:

openssl req -in request.csr -noout -text

The text representation of the digital signature is the part of the response after the string Signature Algorithm: sha1WithRSAEncryption. For instance:

Signature Algorithm: sha1WithRSAEncryption
4. Filling out the certificate application

Download the certificate application, fill it in, and print it. Sign it and stamp your seal on it. Scan it.

Parameter Description
CN Must match the value of the Common Name parameter (i.e. YOUR name). For example, /business/predpriyatie.
Digital signature of the certificate request The text representation received during the previous step.
Name of the organization in Latin letters Must match the value of the Organization Name parameter (i.e. company), such as [Internet Widgits Pty Ltd].
Reason for request

Possible reasons:

  • Initial — for obtaining the first certificate.
  • Planned replacement — to replace a certificate that has expired.
  • Replacement — for replacing a previously issued certificate after a security breach.
  • Adding server — for using a new certificate on additional servers or services.
Contact person Contact information for a specialist in case questions arise about the issued certificate.
Email address Address to send the issued certificate to.

5. Sending the request and application for a certificate to Yandex.Money

Email the certificate request file (request.csr) and scanned application to your Yandex.Money manager.

The certificate will be issued within 2 business days.

6. Installing the certificate

In response to the request, your manager from Yandex.Money will send a file with the certificate. The certificate is valid for 1 year.

What to do next:

  1. Place the certificate on your server.
  2. Add the path to the certificate in the configurations of the scripts that interact with Yandex.Money.
  3. If verify the end server certificate, download the certification chain (certificates of the NBCO YM Root and NBCO YM Int certificate authorities) and add them to the list of trusted root and intermediate certificate authorities in your system.

If necessary, you can store a "private key"—"certificate" pair in a single encrypted PKCS#12 file. To make a file like this, use the command:

openssl pkcs12 -export -in username.crt -inkey private.key -out username.p12

For more information about installing the certificate, contact the activation manager.

Using SSL certificates

You need to:
  • Use the CA chain to check the authenticity of the Yandex.Money servers, and do not establish a connection if verification was not successful.
  • Use your private key and certificate when establishing connections to Yandex.Money servers.
  • Maintain the confidentiality of the private key.
  • Keep track of the certificate's expiration date.
  • We additionally recommend cross-checking the Yandex.Money server certificates against the list of revoked certificates (Certificate Revocation List, CRL).
  • We recommend that each service that needs to access the Yandex.Money servers get its own certificate. But one certificate can be used for all services.

If the private key is compromised, you must inform the Yandex.Money manager.

If the certificate expires or it will be compromised, you can get a new one.