tkuester / taky

A simple python TAK server
MIT License
188 stars 43 forks source link

Use unique names for the certificates in the client data package #39

Closed reldred closed 2 years ago

reldred commented 2 years ago

image The following highly descriptive error is produced in WinTAK when retrieving list of data packages or when attempting to upload a data package.

Configuration of TAKY server/firewalls/et all work correctly in ATAK.

tkuester commented 2 years ago

Thanks for the report. Even if this isn't an issue with taky and just a user configuration issue, I'd love to iron this out -- either a troubleshooting guide so other users don't run into this, or changing the software to make it harder to misconfigure.

Just ran the test with you, running WinTAK 4.1.0 and taky 0.8.2, and was able to send packages back and forth.

reldred commented 2 years ago

Update: This issue can be resolved in most cases by removing all TAK Server connections, closing WinTAK and then navigating to %AppData%\WinTAK\SslCerts and emptying the folder out. Of particular note; TAKY server connection data packages always use the name 'server.p12', and WinTAK won't handle conflicting trust store cert names. Only connect to one Taky server at a time in WinTAK, basically.

tkuester commented 2 years ago

Oh man, that's a fascinating find! Do you think that's why the certificates were failing?

I don't think it would be too difficult to have the cert generation tool rename the .p12 file as something more specific to avoid conflicts!