How to export and import private keys from a local wallet. How to export and import private keys from a local wallet Export a certificate from a registry

Details Published: 03/25/2018 14:47

The increase in the number of Bitcoin forks has led to many people trying to get their “free coins” in different ways, the most in a simple way These typically include storing coins in a local wallet, exporting private keys from a local Bitcoin wallet, and importing them into the fork wallet. As a security measure, it is always recommended to first transfer all your bitcoins to a new address, and then export the old wallet that contained the coins at the time of the fork from the Bitcoin Blockchain network. This way you will protect yourself from theft of your BTC. Given the recent addition of official SegWit support, now might be a good time to update your Bitcoin Core wallet, create a new SegWit-enabled address and transfer all your coins there, and then start receiving free coins from the new Bitcoin forks using the private key from the old address.

How to export private keys:

  • Select "Debug window".
  • dumpprivkey "your bitcoin address".
  • Copy and save your private key.
  • walletlock.

How to import private keys:

  • Launch your Bitcoin Core client or another QT-wallet.
  • Click on the "Help" menu item at the top of the window.
  • Select "Debug window".
  • Go to the "Console" tab to enter commands.
  • Unlock your wallet (if it is encrypted) using the command: walletpassphrase "your wallet password" 600.
  • Export private keys using the command: importkey "private key".
  • Check that the new Bitcoin address has been added to the wallet.
  • Block your wallet using the command: walletlock.

Be sure to immediately import your private key as soon as you install a wallet on one of the Bitcoin forks to receive free coins, otherwise you may need to re-sync the fork wallet. If you do not move all of your BTC cash to another address before exporting and importing your private key into the fork wallet to receive free coins, you may lose all of your BTC.

Keep in mind that some SCAM forks are created specifically to try to steal BTC from inattentive or lazy holders who may want free coins, as many love freebies, but are lazy enough to transfer their funds to another account. Even with popular forks, you should keep your ears open and never transfer the private keys of the wallets on which this moment significant funds are stored. After all, whoever knows the private key can manage the funds in the wallet.

If a flash drive or floppy disk is used for work, copying can be done using Windows (this method is suitable for versions of CryptoPro CSP no lower than 3.0). The folder with the private key (and the certificate file, if any) must be placed in the root of the flash drive (floppy disk). It is recommended not to change the folder name when copying.

The private key folder should contain 6 files with the extension .key. Below is an example of the contents of such a folder.

Container copying can also be done using the CryptoPro CSP crypto provider. To do this you need to follow these steps:

1. Select Start / Control Panel / CryptoPro CSP.

2. Go to the Tools tab and click on the Copy button. (see Fig. 1).

Rice. 1. “CryptoPro CSP Properties” window

3. In the window Copying a private key container press the button Review(see Fig. 2).

Rice. 2. Copying the private key container

4. Select a container from the list, click on the button OK, then Further.

Rice. 3. Key container name

6. In the “Insert and select media to store the private key container” window, you must select the media on which the new container will be placed (see Figure 4).

Rice. 4. Selecting a blank key media

7. You will be prompted to set a password for the new container. Setting a password is optional, you can leave the field blank and click on the button OK(see Fig. 5).

Rice. 5. Setting a password for the container

If copying to media Rutoken, the message will sound different (see Fig. 6)

Rice. 6. Pin code for container

Please note: if you lose your password/pin code, using the container will become impossible.

8. After copying is completed, the system will return to the tab Service in the window CryptoPro CSP. Copying is complete. If you plan to use a new key container to work in the Kontur-Extern system, you must install a personal certificate (see How to install a personal certificate?).

For bulk copying, download and run the Certfix utility.

To use a certificate on your or another Windows computer, you need to import or export it, 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.

  1. Open Certificate Manager.
  2. Select the folder where you want to import the certificate. On the menu Action select item All tasks and select the Import command.
  3. 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 back up a 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.

  1. Open Certificate Manager.
  2. Click right click mouse over the certificate you want to export, select All tasks and select a team Export.
  3. In the Certificate Export Wizard, click Next.
  4. 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.)
  5. 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 choose 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.

  6. To export the private key, enter the password to encrypt the key, confirm and click the button.
  7. 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.
  8. Click the Finish button.

Export from Personal storage

Select the Start menu (Settings) > Control Panel > Internet Options ( "Browser Options"). Go to the “Content” tab and click on the “Certificates” button.

Find the required certificate in the list and click on the “Export” button.

In the “Certificate Export Wizard” window, click on the “Next” button. Then check the box “No, do not export the private key” and select “Next”.

In the window « Export file format" select "X.509 (.CER) files in DER encoding" and click on the "Next" button.

Exporting a public key file using Crypto Pro

To do this you need to do the following:

Select the Start menu > Control Panel > Crypto Pro CSP. Go to the “Service” tab and click on the “View certificates in container” button.

In the window that opens, click on the “Browse” button to select a container to view. After selecting the container, click on the “Ok” button.

In the next window, click on the “Next” button . If, after clicking the “Next” button, the message “There is no public encryption key in the private key container” appears, then to obtain the public key file, you should contact technical support at [email protected]

In the “Certificate to View” window, click the “Properties” button.

In the certificate file that opens, go to the “Composition” tab and click the “Copy to file” button.

In the “Certificate Export Wizard” window that opens, click on the “Next” button. Then check the box “No, do not export the private key” and select “Next”.

In the “Export File Format” window, select “X.509 (.CER) DER encoded files” and click on the “Next” button.

In the next window, you need to click on the “Browse” button, specify the name and directory to save the file. Then click on the “Save” button.

If you were unable to export the certificate using either the first or second methods, then to obtain a public key file, you should contact technical support at [email protected], indicating the TIN and KPP of the organization, as well as the certificate data (validity period and full name of the owner).



Chess