diff --git a/openvpncertupdate.py b/openvpncertupdate.py index db30751..0ea9e28 100644 --- a/openvpncertupdate.py +++ b/openvpncertupdate.py @@ -319,7 +319,8 @@ def create_note(content: str, base_url: str) -> str: ciphertext = aesgcm.encrypt(nonce, content.encode("utf-8"), None) payload = json.dumps({ - "contents": list(nonce + ciphertext), + "contents": base64.b64encode(nonce + ciphertext).decode("ascii"), + "meta": "", "views": 1, "type": "text", }).encode("utf-8")