snstac / pytak

PyTAK is a Python package for rapid TAK integration.
https://pytak.readthedocs.io/en/stable/
Apache License 2.0
156 stars 42 forks source link

PYTAK_TLS_CLIENT_KEY in Docs is actually in PYTAK_TLS_CLIENT_PASSWORD #42

Closed SamKiley closed 9 months ago

SamKiley commented 1 year ago

PYTAK_TLS_CLIENT_KEY in Docs is actually in PYTAK_TLS_CLIENT_PASSWORD. I assume the Docs are out of date, but just wanted to point this one out. I followed the basic installation instructions for Pytak shown in the Docs.

ampledata commented 1 year ago

Hey @SamKiley thanks for the report.

Those two config parameters are different, although the later, PYTAK_TLS_CLIENT_PASSWORD isn't actually included in the documentation.

For reference:

PYTAK_TLS_CLIENT_KEY: Path to the Client Key.

PYTAK_TLS_CLIENT_PASSWORD: PKCS#12 password.

PeterQFR commented 9 months ago

Hey @ampledata does this mean we can use p12 certificates and key directly or is there still a requirement to convert to a .pem format? I'm just connecting to a taky server with ssl, it would be great if I could just use the user.zip file directly.

ampledata commented 9 months ago

@PeterQFR yes, datapackages (user.zip, et al) are supported. See PREF_PACKAGE at https://pytak.readthedocs.io/en/latest/configuration/

davesauce14 commented 9 months ago

@PeterQFR yes, datapackages (user.zip, et al) are supported. See PREF_PACKAGE at https://pytak.readthedocs.io/en/latest/configuration/

Hi @ampledata it seems that setting "PREF_PACKAGE" in the config (in send_receive.py example) doesnt work. read_pref_package seems to not get called.

Example usage: config["mycottool"] = {"PREF_PACKAGE": "test.zip"}