Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPG tools & mailvelope keyserver #7

Closed
dreamflasher opened this issue Jul 24, 2016 · 9 comments
Closed

GPG tools & mailvelope keyserver #7

dreamflasher opened this issue Jul 24, 2016 · 9 comments

Comments

@dreamflasher
Copy link

How is one supposed to interact with the mailvelope keyserver via the gpg tools (command line). The usual command is:
gpg --keyserver hkps://keys.mailvelope.com --search-keys ...
if I use an email address which is uploaded on the mailvelope keyserver (eg. my own one) it doesn't find it. What am I doing wrong?

@toberndo
Copy link
Member

For me
gpg --keyserver hkps://keys.mailvelope.com/ --search-keys thomas@mailvelope.com
works.

What do you get when you enter your email address in the key lookup https://keys.mailvelope.com/demo.html ?

@dreamflasher
Copy link
Author

For me
gpg --keyserver hkps://keys.mailvelope.com/ --search-keys thomas@mailvelope.com
gives:
gpg: suche nach "thomas@mailvelope.com" auf hkps-Server keys.mailvelope.com
gpg: Schl▒ssel "thomas@mailvelope.com" wurde auf dem Schl▒sselserver nicht gefunden
The latter translates to "Key was not found on keyserver".
I'm on windows.
The demo pages yields my public key as expected.

@toberndo
Copy link
Member

We currently only provide access with HKPS, which is not supported by GPG on Windows by default. A configuration option to use HKPS with GPG is described here: https://riseup.net/en/security/message-security/openpgp/best-practices#use-the-sks-keyserver-pool-instead-of-one-specific-server-with-secure-connections

@dreamflasher
Copy link
Author

Ah that's very helpful and great to know! Where do I find the certificate CA (pem file) for hkps://keys.mailvelope.com/?

@toberndo
Copy link
Member

Think it should be this one: https://www.amazontrust.com/repository/AmazonRootCA1.pem

@dreamflasher
Copy link
Author

dreamflasher commented Jul 28, 2016

Thanks, so I tried putting it into the config file as explained in the article, but for easier debugging purposes it should also take the config in the command line that's why I am posting this here. I now have:
gpg --keyserver hkps://keys.mailvelope.com/ --keyserver-options ca-cert-file="AmazonRootCA1.pem" --search-keys thomas@mailvelope.com
(with the correct path to the cert file) and it's not working :( I also tried gpg2.

It works for the hkps server mentioned on riseup:

$ gpg --keyserver hkps://hkps.pool.sks-keyservers.net --keyserver-options ca-cert-file=sks-keyservers.netCA.pem --search-keys thomas@mailvelope.com
gpg: suche nach "thomas@mailvelope.com" auf hkps-Server hkps.pool.sks-keyservers.net
(1)     Mailvelope <info@mailvelope.com>
        Thomas Oberndörfer <thomas@mailvelope.com>
          4096 bit RSA key 79701934, erzeugt: 2015-03-12, verf▒llt: 2019-12-31
(2)     Thomas Oberndörfer <toberndo@yarkon.de>
        Thomas Oberndörfer <info@mailvelope.com>
        Thomas Oberndörfer <thomas@oberndoerfer.net>
          2048 bit RSA key 4A5CC77F, erzeugt: 2012-08-24, verf▒llt: 2016-08-31 (widerrufen)

So it might be the wrong certificate?

@dreamflasher
Copy link
Author

Solved, it was the wrong certificate. One can obtain the correct certificate via the browser -- would be cool if you could provide a direct link to the pem file, I had to export the certificate and convert it to pem.

Here's the working/expected output:

$ gpg --keyserver hkps://keys.mailvelope.com/ --keyserver-options ca-cert-file=AmazonRootCA1-2.pem --search-keys thomas@mailvelope.com
gpg: suche nach "thomas@mailvelope.com" auf hkps-Server keys.mailvelope.com
(1)     Thomas Oberndörfer <thomas@mailvelope.com>
        Mailvelope <info@mailvelope.com>
          4096 bit RSA key 79701934, erzeugt: 2015-03-12

@toberndo
Copy link
Member

Thanks for trying this out. Correct link to PEM file is: https://www.amazontrust.com/repository/R1-ServerCA1B.pem

@dreamflasher
Copy link
Author

I can confirm, this is the correct PEM. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants