How to upload a certificate with a private key. Export from personal storage. Installation via menu install personal certificate
Copy using Windows
If you use a floppy disk or flash drive for work, you can copy the container with the certificate using Windows (this method is suitable for versions CryptoPro CSP not lower than 3.0). Folder with private key(and, if available, the certificate file - public key) place it in the root of the floppy disk / flash drive (if you do not place it in the root, then working with the certificate will be impossible). It is recommended not to change the folder name when copying.
The folder with the private key should contain 6 files with the extension .key. As a rule, the private key contains a public key (the header.key file in this case will weigh more than 1 KB). In this case, it is not necessary to copy the public key. An example of a private key is a folder with six files and a public key is a file with the .cer extension.
Private key Public key
Copy to Diagnostics profile
1. Go to the “Copying” Diagnostics profile using the link.
2. Insert the media to which you want to copy the certificate.
3. On the desired certificate, click on the “Copy” button.
If a password has been set for the container, the message “Enter the password for the device from which the certificate will be copied” will appear.
4. Select the media where you want to copy the certificate and click “Next”.
5. Give the new container a name and click on the “Next” button.
6. A message indicating that the certificate was successfully copied should appear.
Bulk copy
- Download and run the utility. Wait for the entire list of containers/certificates to load and select the required checkboxes.
- Select the Bulk Actions menu and click on the Copy Containers button.
3. Select the storage media for the container copy and click OK. When copying to the registry, you can check the box “Copy to key container computer", then after copying the container will be available to all users of this computer.
4. After copying, click the “Update” button at the bottom left.
If you want to work with copied containers, you need .
Copying using CryptoPro CSP
Select “Start” > “Control Panel” > “CryptoPro CSP”. Go to the “Service” tab and click on the “Copy” button.
In the Copy Private Key Container window, click on the Browse button .
Select the container you want to copy and click on the “Ok” button, then “Next”. If you are copying from a root token, an input window will appear in which you should enter a pin code. If you have not changed the pin code on the media, the standard pin code is 12345678.
Create and manually specify a name for the new container. Russian layout and spaces are allowed in the container name. Then click "Done".
In the Insert Blank Key Media window, select the media on which the new container will be placed.
You will be prompted to set a password for the new container. We recommend that you set a password that is easy for you to remember, but that others cannot guess or guess. If you do not want to set a password, you can leave the field blank and click OK.
Do not store your password/pin code in places where others have access. If you lose your password/pin code, using the container will become impossible.
If you copy the container to a ruToken smart card, the message will sound different. In the input window, enter your pin code. If you have not changed the pin code on the media, the standard pin code is 12345678.
After copying, the system will return to the “Service” tab of CryptoPro CSP. Copying is complete. If you plan to use a new key container to work in Externa, .
To do this, you need to do the following: Select menu “Start” / “Control Panel” / “CryptoPro CSP”. Go to tab "Service" and press the button "View certificates in container"(see Fig. 1). Rice. 1. “CryptoPro CSP Properties” window. In the window that opens, click on the button "Review" to select a container to view. After selecting the container, click on the button "OK"(see Fig. 2).
Rice. 2. Window for selecting a container to view. In the next window, click on the button "Next". In the window "Certificate for installation" you need to press a button "Properties"(see Fig. 3).
Rice. 3. Certificate viewing window In the certificate file that opens, go to the tab "Compound" and press the button "Copy to file"(see Fig. 4). Rice. 4. “Composition” tab. In the window that opens "Certificate Export Wizard" press the button "Next". Then mark the item "No, do not export the private key" and choose "Next"(see Fig. 5).
Rice. 5. Private key export options. In the window "Export file format" choose "X.509 (.CER) files encoded with DER" and press the button "Next"(see Fig. 6).
Rice. 6. Exported file format. In the next window you need to click on the button "Review", manually specify the name (full name of the certificate owner) and directory to save the file. Then click on the button "Save"(see Fig. 7).
Rice. 7. Save the file. In the next window click on the button "Next", then "Ready". Wait for a message about successful export. Close all CryptoPro program windows.
To use the certificate on your or another computer under Windows control, it needs to be imported or exported, respectively.
Importing a certificate and private key
If someone sent you a certificate or you transferred it from one computer to another, the certificate and private key are necessary import before using them. Import a certificate involves placing it in the appropriate certificates folder.
- Open Certificate Manager.
- Select the folder where you want to import the certificate. On the menu Action select item All tasks and select the Import command.
- Click Next and follow the instructions.
Note Note: If the Certificate Import Wizard searches for a certificate using the Browse button, notice that the dialog box Open by default Only X.509 certificates are displayed. If you need to import a different type of certificate, select the type in the dialog box Open.
Export certificate and private key
To create backup copy certificate or use it on another computer, the certificate must first be export.
Export certificate involves converting the certificate into a file, which can then be transferred from one computer to another or placed in a secure location. It is recommended to export certificates to removable media, such as a disk or USB flash memory.
- Open Certificate Manager.
- Click right click mouse over the certificate you want to export, select All tasks and select a team Export.
- In the Certificate Export Wizard, click Next.
- If the certificate is used on another computer, click Yes, export the private key (if not, select No, do not export the private key) and click Next. (This option appears only if you are allowed to export the private key and you have access to it.)
- Select the format you want and click Next.
Note Note: The format you choose will depend on how the certificate will be used. For example, for a certificate with a private key, you should select a format for exchanging personal information. If you need to move multiple certificates from one computer to another in one file, you should choose the Cryptographic Message Syntax standard. If the certificate will be used in several operating systems, you should select a format in the X.509 DER encoding.
- To export a private key, enter the password to encrypt the key, confirm and click the button.
- A file will be created in which the certificate is stored. Enter the file name and location ( full path) or click the Browse button to go to right place, and enter a file name.
- Click the Finish button.
My new post will be devoted to the Crypto Pro program, it seems to be nothing complicated, but all the time I have problems with this software, either because I have to deal with it once or twice a year or because the software is like that, but in general I decided to make a reminder for myself and for you.
Task: Provide access to the Kontur Extern program on two machines, OK, let's get started.
What do we have: One already working key on the SD card.
What you will need: We need any SD card, USB flash drive You can also upload it to the registry or you can use the so-called RUtoken. I will install on RUtoken, and you can use any of the options.
Yes, just a small note, if you have a domain computer, it is better to do all this under the administrator account.
And so let's get started
Find the program in the start menu or control panel,
Let's launch the program.
Go to the tab Service and press the button Copy.
You will be required to enter a password of any 8 characters. Enter the password and press Next.
In the next window, we need to set the name of the container (I always use the one that is convenient for me; we have 2 organizations and I use the name-01 and 02 markings; you can also use the organization’s TIN for separation.) and then click the button Finish.
Here you will once again need to enter the password for the new container, make the same one and click OK.
In the next dialog box, you need to select the media where to copy our container, I select RUtoken and you need to select the media where you are going to install the container.
Once you have chosen, click the button Next. Then Finish.
That's basically it, the key has been copied. All that remains is to install it for a specific user.
There are two options here:
Option 1.
Go to CryptoPro again, open the service tab and click on the button View the certificates in the container.
In the dialog box that opens, open the container we need and click the button OK. then press the button Next.
In the next window, click the U button become, if it is not there, then press button C troops.
In the window that opens, click the U button install a certificate. The certificate import wizard will open where you need to click Next.
In the window that opens, you need to leave everything as it is and click Next.
If the certificate is installed successfully you should see the following dialog box.
Option 2.
Installation via the menu install a personal certificate.
To install the certificate, we need the certificate file itself (a file with the extension .cer) it is located on the media where we copied it, in my case it is rutokin.
And so, open CryptoPro again and go to the tab Service and press the button Install a personal certificate.
In the window that opens, find this certificate by clicking on the button Review.
In the next dialog box, check the box next to Find container automatically, after which the program will automatically find the container you need. Then click the button Next.
Then a window may appear asking you to select the storage location for the certificate; you need to select Personal and click the button OK.
Then a dialog box may appear where you need to click a button Yes.
Then wait for a message about successful installation.
Then you need to remove your device to which the container with keys refers and insert it back, after the device is found you can try.
If you have any questions because different versions CryptoPro may undergo various changes, so if you ask, leave your comments, I will always be happy to help you.