Achtung: openssl nicht auf MAC verwenden. Keine Ausgabe bei Fehlern, kein Ersetzen von Dateien etc.#
Convert the aps_development.cer file into aps_development.pem file
openssl x509 -in aps_development.cer -inform der -out aps_development.pem
Extract the key from this p12 file:
openssl pkcs12 -in Certificates.p12 -nocerts -out privatekey_with_password.key
Remove the PEM phrase from the key:
openssl rsa -in privatekey_with_password.key -out privatekey.key
Upload both aps_development.pem and privatekey.key to AirNotifier.
Quelle: https://github.com/dcai/airnotifier/wiki/Installation-2.x
Bug-Workaround für Upload-Formular (write() argument must be str, not bytes)
docker exec -it airnotifier bash apt install nano nano util.py def save_file(req): ... thefile = open(filepath, "w") → thefile = open(filepath, "wb")