Skip to navigation
How to sign a file with GPG, the GNU privacy guard
12.09.25
## Check your keys ``` gpg --list-keys ``` ## create a key pair ``` gpg --generate-key ``` ## create test file ``` echo "hello" > hello.txt ``` ## sign the test file ``` gpg --detach-sign hello.txt ``` ## Verify the file ``` gpg --verify hello.txt.sig ``` ## Export the public key as ASCII with --armor ``` gpg --armor --output Myridia.gpg --export info@myridia.com ``` ## the Receiver import ``` gpg --import Myridia.gpg ```
https://www.gnupg.org/gph/en/manual/x56.html
Reply
Anonymous
Information Epoch 1757719525
Design for visibility.
Home
Notebook
Contact us