P
P
PQR2018-11-15 23:41:56
linux
PQR, 2018-11-15 23:41:56

Keys in .reg format - how to use on linux with cryptcp (CryptoPro)?

I have a .cer binary file (as I understand it is a public key) and a .reg text file (which, as I understand it, contains a private key) that need to be used in conjunction with CryptoPro.
.reg is a windows registry format file, looks like this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Crypto Pro\Settings\...
"name.key"=hex:30,37,16,35,...
"header.key"=hex:30,69,30,...
"primary.key"=hex:30,22,04,20,...
"masks.key"=hex:30,36,04,20,7b,...
"primary2.key"=hex:30,22,04,20,...
"masks2.key"=hex:30,36,04,20,c2,...

Question: how to convert/transfer these key files to Linux for use with the cryptcp utility?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Molchanov, 2018-11-16
@PQR

You won't be able to load a certificate in the registry branch right away in Linux.
You need to download the branch on a Windows machine (only change the user-id in the reg-file to the one from which you are working). And only then try to export the private part of the key by means of cryptographic protection from the Windows machine.
However, by default, the private key is written to the registry with a ban on export, and if permission for future key export was not set at the stage of its creation, it will not be possible to pull it out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question