How to specify ca-cert-file as a path relative to ~? (was: It's more GNU/Linux than GnuPG)

amuza amuza at riseup.net
Fri Feb 15 11:50:00 CET 2019



Friedhelm Waitzmann:
>> I have two GNU/Linux computers syncing their ~/.gnupg directories.
>> "alice" is my username in one computer, "bob" is my username in the
>> other one.
> 
>> I have a CA certificate stored in my home directory of both computers,
>> and would like to keep it there.
> 
>> Into the ~/.gnupg/gpg.conf file, I wrote the following line pointing to
>> that CA cert:
> 
>> 	keyserver-options ca-cert-file=~/keyserverCA.pem
> 
>> But that line does not seem to work because of "~".
> 
>> Everything works ok in one computer if I write:
> 
>> 	keyserver-options ca-cert-file=/home/alice/keyserverCA.pem
> 
>> and in the other computer if I write:
> 
>> 	keyserver-options ca-cert-file=/home/bob/keyserversCA.pem
> 
>> But then, by specifying names, when syncing, that line won't work in one
>> of the two computers because of the usernames.
> 
>> Is there any way to specify "user" without writing their name?
> 
>> Any other suggestion?
> 
> Just guessing:  How about specifying the file as a path relative
> to the .gnupg directory?
> 
> (1)
>    keyserver-options ca-cert-file=../keyserversCA.pem
> 
> or
> 
> (2)
>    In the .gnupg directory create a symbolic link pointing to ..:
>    $ ln -s .. ~/.gnupg/homedir
>    Then set ca-cert-file to homedir/keyserversCA.pem:
>    keyserver-options ca-cert-file=homedir/keyserversCA.pem
> 

Hey Friedhelm, thanks a lot!
Suggestion 2 worked!!

Thank you Werner too.

Cheers


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20190215/b626ca46/attachment.sig>


More information about the Gnupg-users mailing list