-
Create a sample message file.
# echo "Welcome to Utimaco" > message.txt
-
Sign the file using the key name.
# gpg --output message.txt.signed --sign --default-key test@utimaco.com message.txt
Provide slot PIN when prompted. This will generate a signed file message.txt.signed.
Signing the file
-
Verify the file
message.txt.signed.
# gpg --verify message.txt.signed
Verifying the signed file
-
Encrypt the file. Provide recipient user ID when prompted.
# gpg --output message.txt.enc --encrypt message.txt
Encrypting the file
This will generate an encrypted file message.txt.enc.
-
Decrypt the encrypted file.
# gpg --output message.txt.dec --decrypt message.txt.enc
Provide slot PIN when prompted. This will generate a decrypted file message.txt.dec.
Decrypting the file
-
Verify the content of the original file.
# cat message.txt.dec
Original content of the file