* Store news server authentication credentials for gnus in an encrypted manner.
@ 2021-03-16 15:26 Hongyi Zhao
2021-03-16 16:03 ` Vegard Vesterheim
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Hongyi Zhao @ 2021-03-16 15:26 UTC (permalink / raw)
To: help-gnu-emacs
I noticed the FAQ 3-3 for gnus at
<https://www.gnu.org/software/emacs/manual/html_node/gnus/FAQ-3_002d3.html>,
which uses the file ~/.authinfo to store the news server
authentication information with file mode bits set to 600.
But I want to know if there are some encrypted methods for such a job.
Any hints will be highly appreciated.
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Store news server authentication credentials for gnus in an encrypted manner.
2021-03-16 15:26 Store news server authentication credentials for gnus in an encrypted manner Hongyi Zhao
@ 2021-03-16 16:03 ` Vegard Vesterheim
2021-03-18 3:34 ` Hongyi Zhao
2021-03-16 16:09 ` Tassilo Horn
2021-03-16 16:32 ` Eric Abrahamsen
2 siblings, 1 reply; 6+ messages in thread
From: Vegard Vesterheim @ 2021-03-16 16:03 UTC (permalink / raw)
To: Hongyi Zhao; +Cc: help-gnu-emacs
On Tue, 16 Mar 2021 23:26:14 +0800 Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> I noticed the FAQ 3-3 for gnus at
> <https://www.gnu.org/software/emacs/manual/html_node/gnus/FAQ-3_002d3.html>,
> which uses the file ~/.authinfo to store the news server
> authentication information with file mode bits set to 600.
>
> But I want to know if there are some encrypted methods for such a job.
> Any hints will be highly appreciated.
Encrypt the data with GPG and save the data in ~/.authinfo.gpg.
https://www.masteringemacs.org/article/keeping-secrets-in-emacs-gnupg-auth-sources
https://www.emacswiki.org/emacs/GnusEncryptedAuthInfo
--
Vennlig hilsen/Best regards
Vegard Vesterheim
Senior Software engineer
+47 48 11 98 98
vegard.vesterheim@uninett.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Store news server authentication credentials for gnus in an encrypted manner.
2021-03-16 16:03 ` Vegard Vesterheim
@ 2021-03-18 3:34 ` Hongyi Zhao
0 siblings, 0 replies; 6+ messages in thread
From: Hongyi Zhao @ 2021-03-18 3:34 UTC (permalink / raw)
To: Vegard Vesterheim; +Cc: help-gnu-emacs
On Wed, Mar 17, 2021 at 12:03 AM Vegard Vesterheim
<vegard.vesterheim@uninett.no> wrote:
>
> On Tue, 16 Mar 2021 23:26:14 +0800 Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> > I noticed the FAQ 3-3 for gnus at
> > <https://www.gnu.org/software/emacs/manual/html_node/gnus/FAQ-3_002d3.html>,
> > which uses the file ~/.authinfo to store the news server
> > authentication information with file mode bits set to 600.
> >
> > But I want to know if there are some encrypted methods for such a job.
> > Any hints will be highly appreciated.
>
> Encrypt the data with GPG and save the data in ~/.authinfo.gpg.
>
> https://www.masteringemacs.org/article/keeping-secrets-in-emacs-gnupg-auth-sources
> https://www.emacswiki.org/emacs/GnusEncryptedAuthInfo
To be frank, the notes/instructions on emacswiki were written a long
time ago, while the ones on masteringemacs is up to date. So, I prefer
the former.
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Store news server authentication credentials for gnus in an encrypted manner.
2021-03-16 15:26 Store news server authentication credentials for gnus in an encrypted manner Hongyi Zhao
2021-03-16 16:03 ` Vegard Vesterheim
@ 2021-03-16 16:09 ` Tassilo Horn
2021-03-16 16:32 ` Eric Abrahamsen
2 siblings, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2021-03-16 16:09 UTC (permalink / raw)
To: help-gnu-emacs
Hongyi Zhao <hongyi.zhao@gmail.com> writes:
> I noticed the FAQ 3-3 for gnus at
> <https://www.gnu.org/software/emacs/manual/html_node/gnus/FAQ-3_002d3.html>,
> which uses the file ~/.authinfo to store the news server
> authentication information with file mode bits set to 600.
>
> But I want to know if there are some encrypted methods for such a job.
> Any hints will be highly appreciated.
Yes, you can simply use an encrypted ~/.authinfo.gpg, and emacs will
query you for a passphrase when accessing it. Usually, you'd also setup
the GPG agent, see
(info "(auth) GnuPG and EasyPG Assistant Configuration")
Bye,
Tassilo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Store news server authentication credentials for gnus in an encrypted manner.
2021-03-16 15:26 Store news server authentication credentials for gnus in an encrypted manner Hongyi Zhao
2021-03-16 16:03 ` Vegard Vesterheim
2021-03-16 16:09 ` Tassilo Horn
@ 2021-03-16 16:32 ` Eric Abrahamsen
2021-03-18 2:36 ` Hongyi Zhao
2 siblings, 1 reply; 6+ messages in thread
From: Eric Abrahamsen @ 2021-03-16 16:32 UTC (permalink / raw)
To: Hongyi Zhao; +Cc: help-gnu-emacs
Hongyi Zhao <hongyi.zhao@gmail.com> writes:
> I noticed the FAQ 3-3 for gnus at
> <https://www.gnu.org/software/emacs/manual/html_node/gnus/FAQ-3_002d3.html>,
> which uses the file ~/.authinfo to store the news server
> authentication information with file mode bits set to 600.
>
> But I want to know if there are some encrypted methods for such a job.
> Any hints will be highly appreciated.
You can just use a ~/.authinfo.gpg file, and everything will work
correctly (assuming GPG encryption/decryption is already working for you
in Emacs).
Eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Store news server authentication credentials for gnus in an encrypted manner.
2021-03-16 16:32 ` Eric Abrahamsen
@ 2021-03-18 2:36 ` Hongyi Zhao
0 siblings, 0 replies; 6+ messages in thread
From: Hongyi Zhao @ 2021-03-18 2:36 UTC (permalink / raw)
To: Eric Abrahamsen; +Cc: help-gnu-emacs
Got it. Thank you everyone for your help here.
On Wed, Mar 17, 2021 at 12:32 AM Eric Abrahamsen
<eric@ericabrahamsen.net> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > I noticed the FAQ 3-3 for gnus at
> > <https://www.gnu.org/software/emacs/manual/html_node/gnus/FAQ-3_002d3.html>,
> > which uses the file ~/.authinfo to store the news server
> > authentication information with file mode bits set to 600.
> >
> > But I want to know if there are some encrypted methods for such a job.
> > Any hints will be highly appreciated.
>
> You can just use a ~/.authinfo.gpg file, and everything will work
> correctly (assuming GPG encryption/decryption is already working for you
> in Emacs).
>
> Eric
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-03-18 3:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-16 15:26 Store news server authentication credentials for gnus in an encrypted manner Hongyi Zhao
2021-03-16 16:03 ` Vegard Vesterheim
2021-03-18 3:34 ` Hongyi Zhao
2021-03-16 16:09 ` Tassilo Horn
2021-03-16 16:32 ` Eric Abrahamsen
2021-03-18 2:36 ` Hongyi Zhao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).