Commit graph

71 commits

Author SHA1 Message Date
+++
c47afa2942 socket shutdown in exception 2020-11-22 22:42:24 +01:00
+++
d610db0d1f fix bug in api file
replace strings with boolean and integer
2020-11-22 22:35:27 +01:00
64937e7ea9 Merge pull request 'fiveopschanges' (#1) from fiveop/doorstatus:fiveopschanges into master
Reviewed-on: http://git.nr18.space:3000/berhsi/doorstatus/pulls/1
2020-11-19 21:43:25 +01:00
Philipp Matthias Schaefer
d5e31ca789 Add initial (untested) version of Arduino sketch 2020-11-18 22:45:14 +01:00
Philipp Matthias Schaefer
ec3a5daf2b Move server sources to separate directory 2020-11-18 21:59:23 +01:00
Philipp Matthias Schaefer
e5109815e7 Add README.md including overview and headings for detailed sections. 2020-11-18 21:56:24 +01:00
+++
3d824a1c4c anbindung an setstatus 2020-10-22 23:59:04 +02:00
+++
a2a533ac65 Umwandlung in eine Klasse 2020-10-22 23:58:17 +02:00
+++
cc77f32afa keepalive aktiviert 2020-10-22 16:07:16 +02:00
+++
915d195d33 statusd.py in apistatusd.py, statusd.conf in apistatusd.conf umbenannt 2020-09-10 14:55:07 +02:00
+++
83dfea8810 dateirechte auf 700 gesetzt 2020-09-10 14:43:35 +02:00
+++
38ca7e5926 systemd-unit für watchdoor hinzugfügt 2020-09-08 17:59:13 +02:00
+++
367b1a10db initialer commit der pin-überwachung 2020-09-08 17:56:24 +02:00
+++
ac1d259a95 socket shutdown in finally klausel hinzugefügt 2020-09-08 17:39:39 +02:00
+++
26c695828f main in funktionen aufgeteilt 2020-09-07 15:19:07 +02:00
+++
5e7afde181 konfiguration an kraut.space angepaßt 2020-09-07 15:17:49 +02:00
+++
380661cc64 cert-check added, fix typo 2020-09-04 19:58:23 +02:00
+++
b240de859c client auf configparser umgestellt 2020-09-01 18:16:49 +02:00
berhsi
be3f9ecb64 client auf configparser umgestellt 2020-07-09 20:12:49 +02:00
berhsi
08af0365b8 comments inserted 2020-07-09 20:10:58 +02:00
berhsi
022d4a838c loglevel für vollzugsmeldung geändert 2020-07-09 20:09:36 +02:00
berhsi
6872800bba fix type error 2020-07-09 16:09:14 +02:00
berhsi
c0f8caddfc statusdeamon auf configparser umgestellt. dank an ndo 2020-07-09 12:08:06 +02:00
+++
cb05cb787a setstatus.py: add check if certs readable 2020-06-22 11:32:36 +02:00
Berhsi
eb000bff46 setstatus.py: changes by code review
better english in comments. the command line arguments are now processed by
argparse. reading vom cli removed. fix bug in exception handling.
2019-10-15 19:21:23 +02:00
berhsi
a0fda2aaa2 setstatus.py: set the same cipher suite as the server 2019-09-19 10:36:48 +02:00
berhsi
1fbd95facf statusd.py: delete unused parts, make it pep8 conform 2019-09-19 10:21:33 +02:00
berhsi
c60bb326cc statusd.conf: add comments, change verbosity level 2019-09-19 09:49:15 +02:00
berhsi
0c12ce86aa setstatus.py: clear reading status argument and make it pep8 conform
make the part with reading argv resp. interactiv more clear and readable,
remove unused parts from code and make the other pep8 conform.
2019-09-19 09:44:52 +02:00
Berhsi
b053403836 satusd.py: add validity check and else trees
read_config() now only add values, if the key is valid. otherwise ist passes.
if read_loglevel() returns false, loglevel ist set to warning. typos fixed.
2019-09-17 19:07:07 +02:00
Berhsi
22cbb6f6e0 statusd.service: change options user, group and identifier 2019-09-15 00:01:39 +02:00
berhsi
6dc2f04037 setstatus.py, statusd.py: timeouts added, change output messages 2019-09-14 14:01:52 +02:00
berhsi
028f7ae2de add docstrings to print_ciphers() and display_peercert() 2019-09-13 10:29:38 +02:00
berhsi
ee233e65e0 statusd.py: default verbosity value can changed
verbosity value can now changed with a entry in statusd.conf
2019-09-11 21:24:28 +02:00
berhsi
909f02fc1d statusd.py: extend the logging
logs now the common name and serial number from client certificate. display_peercert() new.
2019-09-10 17:29:39 +02:00
berhsi
fef38a278b restrict available ciphers
only EECDH+AESGCM is allowed. now it uses only tls 1.2 and 1.3
2019-09-10 15:33:27 +02:00
berhsi
c8814f322b merge with ssl branch
branch ssl merged into master. new files statusd.conf, statusd.conf.template, statusd.service.
statusd.py conflicts resolved.
2019-09-10 12:38:06 +02:00
berhsi
78151fcafa rename file statusd.template to statusd.conf.template 2019-09-10 10:07:53 +02:00
berhsi
39d6e9acee remove server-clear.py 2019-09-10 09:56:54 +02:00
berhsi
943c060b60 statusd.py now works with json modul, fix bug in set_values()
read and write the api file now uses the json modul. correct a bug in function set_values().
2019-09-10 09:47:53 +02:00
Berhsi
5a6a236ebc statusd.py now works with json modul
the deamon now uses the python modul json to read and write the api file. the
function replace_entry() is removed.
2019-09-08 00:31:19 +02:00
berhsi
0e405f894d statusd.py: set some ssl-options 2019-08-02 14:20:08 +02:00
+++
8755e35584 statusd.template added 2019-07-30 22:59:59 +02:00
+++
fa772012d6 statusd.py: certs_readable() checks if cert is defined 2019-07-30 22:20:45 +02:00
+++
35d46f266a statusd.py: add function certs_readable()
add a function to test at start, if needed certs are readable
2019-07-30 22:06:07 +02:00
+++
7d5753c879 delete server-clear.py 2019-07-30 21:26:43 +02:00
berhsi
c6c0eac5bf add unit for systemd: statusd.service 2019-07-29 18:33:19 +02:00
berhsi
d3534afaa3 statusd.py: add support for ssl
server now speaks tls. new functions strip_argument() and display_peercert()
2019-07-29 18:32:27 +02:00
berhsi
60fccc57d4 setstatus.py: add support for ssl
client now connect to server via tls.
2019-07-29 18:27:53 +02:00
berhsi
84865a37bf statusd.conf: add any variables
TIMEOUT, CLIENT_CERT, API_TEMPLATE added. CERT and KEY changed to SERVER_CERT and SERVER_KEY
2019-07-29 18:23:45 +02:00