IGORNET wiki

... where shit is known.

Benutzer-Werkzeuge

Webseiten-Werkzeuge


renew-push

Certificate Signing Request erstellen

  • Schlüsselbundverwaltung > Zertifikatsassistent > Zertifikat einer Zert.-Instanz anfordern > ergibt CertificateSigningRequest.certSigningRequest-Datei

CertificateSigningRequest.certSigningRequest bei Apple hochladen

  • developer.apple.com
  • Certificate, Identifiers & Profiles > Identifiers
  • comMITmentApp-Eintrag auswählen
  • Push-Notifications > Edit
  • Create certificate
  • .certSigningRequest dort hochladen
  • ergibt .cer-Datei

.cer-Datei auf Mac doppelklicken damit sie im Schlüsselbund hinzugefügt wird

  • Ggf altes Zertifikat löschen, da es das neu „überlagern“ kann.
  • Wechseln auf „Meine Zertifikate“, dort sollte das Zertifikat dann unter Apple Push Services:info.jungenarbeit.commitment
  • Rechtsklick > Exportieren
  • Dateiname anpassen, zB Push_APNs_Zertifikate.p12
  • Dateiformat sollte p12 sein
  • ergibt p12-Datei

Dateien für Airnotifier vorbereiten

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

Dateien bei airnotifier hochladen

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")
renew-push.txt · Zuletzt geändert: von falk