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

Key certification not uploaded? #831

Closed
dschuermann opened this issue Sep 9, 2014 · 5 comments
Closed

Key certification not uploaded? #831

dschuermann opened this issue Sep 9, 2014 · 5 comments
Labels

Comments

@dschuermann
Copy link
Member

  1. certify key
  2. upload to keyserver
  3. key on keyserver not certified? (I waited one day for federation, will check again later)
@dschuermann dschuermann added the bug label Sep 9, 2014
@dschuermann
Copy link
Member Author

This is actually important and I am not sure what is going on here. Uploading new keys works. But uploading existing keys with new certifications does not work.

@esclear
Copy link
Member

esclear commented Sep 11, 2014

I played around a bit and I noticed that they are being signed correctly.
But uploading works only over the button in the share tab and not when you check the checkbox in the certify dialog.

@dschuermann
Copy link
Member Author

@da-kid Perfect analysis thanks!

@dschuermann
Copy link
Member Author

two logs I got:

 Keychain  E  java.lang.IllegalArgumentException: Invalid column has_any_secret
  9617               Keychain  E  at android.database.sqlite.SQLiteQueryBuilder.computeProjection(SQLiteQueryBuilder.java:632)
  9617               Keychain  E  at android.database.sqlite.SQLiteQueryBuilder.buildQuery(SQLiteQueryBuilder.java:447)
  9617               Keychain  E  at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:393)
  9617               Keychain  E  at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:294)
  9617               Keychain  E  at org.sufficientlysecure.keychain.provider.KeychainProvider.query(KeychainProvider.java:589)
  9617               Keychain  E  at android.content.ContentProvider.query(ContentProvider.java:857)
  9617               Keychain  E  at android.content.ContentProvider$Transport.query(ContentProvider.java:200)
  9617               Keychain  E  at android.content.ContentResolver.query(ContentResolver.java:461)
  9617               Keychain  E  at android.content.ContentResolver.query(ContentResolver.java:404)
  9617               Keychain  E  at org.sufficientlysecure.keychain.provider.ProviderHelper.getCanonicalizedKeyRing(ProviderHelper.java:266)
  9617               Keychain  E  at org.sufficientlysecure.keychain.provider.ProviderHelper.getCanonicalizedPublicKeyRing(ProviderHelper.java:254)
  9617               Keychain  E  at org.sufficientlysecure.keychain.service.KeychainIntentService.onHandleIntent(KeychainIntentService.java:616)
  9617               Keychain  E  at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
  9617               Keychain  E  at android.os.Handler.dispatchMessage(Handler.java:102)
  9617               Keychain  E  at android.os.Looper.loop(Looper.java:136)
  9617               Keychain  E  at android.os.HandlerThread.run(HandlerThread.java:61)

and when uploading from the share tab:

Keychain  D  response code: 500
  9617               Keychain  E  IOException
  9617               Keychain  E  java.io.FileNotFoundException: https://hkps.pool.sks-keyservers.net:443/pks/add
  9617               Keychain  E  at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
  9617               Keychain  E  at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:246)
  9617               Keychain  E  at org.sufficientlysecure.keychain.keyimport.HkpKeyserver.add(HkpKeyserver.java:386)
  9617               Keychain  E  at org.sufficientlysecure.keychain.pgp.PgpImportExport.uploadKeyRingToServer(PgpImportExport.java:103)
  9617               Keychain  E  at org.sufficientlysecure.keychain.service.KeychainIntentService.onHandleIntent(KeychainIntentService.java:620)
  9617               Keychain  E  at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
  9617               Keychain  E  at android.os.Handler.dispatchMessage(Handler.java:102)
  9617               Keychain  E  at android.os.Looper.loop(Looper.java:136)
  9617               Keychain  E  at android.os.HandlerThread.run(HandlerThread.java:61)
  9617               Keychain  E  KeychainIntentService Exception:
  9617               Keychain  E  org.sufficientlysecure.keychain.pgp.exception.PgpGeneralException: Unable to export key to selected server
  9617               Keychain  E  at org.sufficientlysecure.keychain.service.KeychainIntentService.onHandleIntent(KeychainIntentService.java:622)
  9617               Keychain  E  at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
  9617               Keychain  E  at android.os.Handler.dispatchMessage(Handler.java:102)
  9617               Keychain  E  at android.os.Looper.loop(Looper.java:136)
  9617               Keychain  E  at android.os.HandlerThread.run(HandlerThread.java:61)

@Valodim
Copy link
Member

Valodim commented Sep 12, 2014

Fixed the "upload-after-certification" thing, it should now work at least as good as regular upload. 40c81c9

I'm getting this output, looks ok to me:

32113 Keychain D response code: 200
32113 Keychain D answer: Key block added to key server database.
32113 Keychain D New public keys added:
1 key(s) added successfully.

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

No branches or pull requests

3 participants