Opened 7 years ago

Closed 7 years ago

#668 closed defect (fixed)

Android: Error reading X509 Certificates

Reported by: sponge Owned by: zzz
Priority: minor Milestone: 0.9.1
Component: api/utils Version: 0.9
Keywords: Error reading X509 Certificate Cc:
Parent Tickets: Sensitive: no

Description

Happens on _ALL_ Certs:

{{{ ERROR [Reseed ] net.i2p.util.SSLEepGet : Error reading X509 Certificate: /data/data/net.i2p.android.router/files/certificate/cert.smartcom.org.crt
java.security.KeyStoreException?: KeyStore? was not initialized

at java.security.KeyStore?.throwNotInitialized(KeyStore?.java:96)
at java.security.KeyStore?.setCertificateEntry(KeyStore?.java:390)
at net.i2p.util.SSLEepGet.addCert(SSLEepGet.java:348)
at net.i2p.util.SSLEepGet.addCerts(SSLEepGet.java:311)
at net.i2p.util.SSLEepGet.initSSLContext(SSLEepGet.java:215)
at net.i2p.util.SSLEepGet.<init>(SSLEepGet.java:113)
at net.i2p.util.SSLEepGet.<init>(SSLEepGet.java:97)
at net.i2p.router.networkdb.reseed.Reseeder$ReseedRunner?.readURL(Reseeder.java:443)
at net.i2p.router.networkdb.reseed.Reseeder$ReseedRunner?.reseedOne(Reseeder.java:314)
at net.i2p.router.networkdb.reseed.Reseeder$ReseedRunner?.reseed(Reseeder.java:270)
at net.i2p.router.networkdb.reseed.Reseeder$ReseedRunner?.run2(Reseeder.java:155)
at net.i2p.router.networkdb.reseed.Reseeder$ReseedRunner?.run(Reseeder.java:140)
at java.lang.Thread.run(Thread.java:856)
at net.i2p.util.I2PThread.run(I2PThread.java:85)

}}}

Subtickets

Change History (1)

comment:1 Changed 7 years ago by zzz

Component: apps/androidapi/utils
Resolution: fixed
Status: newclosed

Two bugs both on the i2p side:

1) Android keystore is in a different place (until ICS when it vanishes completely)
2) If filesystem keystore wasn't found, the in-memory keystore wasn't initialized, causing the error posted above.

Both fixed in 0.9-28-rc but not fully tested. Closing ticket optimistically, let me know if the fixes don't work.

Note: See TracTickets for help on using tickets.