I made a GPG keys in my cold environment (How do I use those on my block producer to decrypt/encrypt?)

I find GPG tutorials really confusing and daunting. I managed to encrypt something and backed up my GPG files, but not exactly sure what I need to use it on my bock producer for transfering files back and forth.

Any simplified explanations on the steps, or point me in the right direction would be appreciated. I don’t want to get locked out of my keys/files or do something stupid because I already locked myself out of 60K dogecoin I bought in 2014.

Thanks in advance for the help!

U can upload ur file via scp or sftp (filezilla)
After u can decrypt
gpg -d ur_file_name and it will request the password

How does it decrypt? doesnt it need a pgp private key?

U don’t have the password? I forgot to mentioned… corrected

yes i created password & email when I made the encryption.

Im getting this error when decrypting:

gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: Unknown system error

To decrypt the file, u will need the private and public key.

Okay so I just keep those in the folder im decrypting?


Find where gpg key is located in your cold machine… and upload it to the live server
Or if u are using a cold server than u should upload only the transaction and sign into the network, right?

1 Like

I would be encrypting what ever file on cold and decrypting it on the hot server and vice versa.

1 Like

Im on this step:

Step 2: Export your public key

Syntax: gpg --export {user-name}

$ gpg --export user
gpg: WARNING: nothing exported

Im actually just getting a bunch of characters show up. from the gpg --export user (command)

gpg --export ramesh > ramesh-pub.gpg

:~$ gpg --export ramesh > ramesh-pub.gpg
gpg: WARNING: nothing exported

Take a look at this video

1 Like

Thanks that was very helpful:

I m good to go now:

gpg --list-secret-keys
gpg --list-keys

Generate keys:

gpg --full-generate-key
gpg --gen-key

Export/Import keys:

gpg --export -a user > user_public.key
gpg --import user_public.key
gpg --export-secret-keys user > user-private.key
gpg --import user-private.key

Encrypt & Decrypt

gpg -e -r “user” filename
gpg -always-trust -e -r “user” filename

gpg -d filename.file.gpg
gpg --batch --passphrase password filename.file.gpg

1 Like

Running into issues none of the commands in that tutorial are working
gpg --decrypt xxxxxx.out.gpg
gpg: encrypted with 3072-bit RSA key, ID xxxxxx, created 2021-02-25
doesnt out put anything

same with gpg -d


gpg --batch --passphrase pass filename.file.gpg

for some reason it works

just doing

gpg filename (not of the commands in the tutorials worked )

I have a gpg file created and I decrypt it with

gpg -d file_name

i tried -d and it didnt work

This is what happens when i do -d

�"���%���SF�*'��� �,�W���6Ol�����{R�*,�X7�w뫲�VJxu���.��f�p{;�����t۩s�c��M��u�{�.Z�?V��(,��7k�6)?�(G����m3��M�&��rM�����<�������Y���0��m�^W�m��\mM��T�~Py@IYl����Â�=D������������=�y�qo�q��B��&ReD{>�R��(z��G�f>Q
+����1b��@�2ˍ���^����b���D+e���k�}8wZ���^!���m���O�>�� �
|���P_k�t���j9��A��T���[�}5�#|y2��U}��U�����u�dXdB_QQF����h�+�+>Y��/�bP�//�)�&���<UQy���a������F�w��K��V�Q�2������3�?�5� �m�� ����v�)���o��6�\��6 �������У�^�z���j�^$P{@vc�trYIܥ��(��#���1�-7�h�kt�52TU_�gT�3����s"U7tub-��w�,�t�����3?�~�s��jŌ��c�%���m���ʚ�ia-�Ur��Lf��l�弁3��,b��5����,�����H�+h�c�9a�7�U�4�r9�P�^��.Ta�9��>�,���C�0;�h��
�F~E�d�P���*�1��݁M�)���𮶲�&�;&�\w�x�WG/������#��N��r������a9y9;��P��a���|��" ��<�%X��7+|+��T�
׃��z�L��&1Iގl�3z@ ���VO<���b9�IT.ӕ�ayà#���,.��R@,��!�HĻ�Yl ���?����pM�� ����=_��;���]���װ�����������t�wHd<
:�L�R�H&� ~���&����������wR������)�~a��� ������LD�?f�/��yq�L�7���eP=�oW���P�L_�;������}=��N$<���==`_��������������H����/���Y������������c�

Yeah, probably I encrypted with few options Indon’t know