Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux: gpg
(view source)
Revision as of 09:42, 16 December 2019
198 bytes added
,
09:42, 16 December 2019
m
→Encrypt to multiple recipients
Line 80:
Line 80:
gpg --output <destination_file.gpg> --export <public_key_ID>
gpg --output <destination_file.gpg> --export <public_key_ID>
−
===== Export all public keys =====
+
=====Export all public keys=====
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
gpg --list-keys | grep -v "pub\|sub\|uid\|--" | sed '/^$/d' | xargs -t -n 1 -I ARG gpg --export --armor ARG
gpg --list-keys | grep -v "pub\|sub\|uid\|--" | sed '/^$/d' | xargs -t -n 1 -I ARG gpg --export --armor ARG
Line 110:
Line 110:
====Encrypt to multiple recipients====
====Encrypt to multiple recipients====
<nowiki>gpg --recipient 42FF42FF \
<nowiki>gpg --recipient 42FF42FF \
−
--recipient 12345678 \
+
--recipient 12345678 \
−
--recipient FEFEFEFE \
+
--recipient FEFEFEFE \
−
--encrypt-files backup.tar</nowiki>
+
--encrypt-files backup.tar</nowiki
>
+
+
==== Encrypt without recipient key verification prompt ====
+
<syntaxhighlight lang="bash">
+
gpg --trust-model always --encrypt --recipient rafael@herrerosolis.com secret_file.txt
+
</syntaxhighlight
>
====Encrypt without prompt for key verification====
====Encrypt without prompt for key verification====
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version