diff --git a/README.md b/README.md index d4a578c..972839a 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ mkdir ~/.venv ``` 2. Create a virtual environment using Python 3.10: ``` -python3.10 -m pypush ~/.venv +python3.10 -m venv ~/.venv/pypush ``` 3. Activate the virtual environment: ``` diff --git a/demo.py b/demo.py index 81a7d95..ef21323 100644 --- a/demo.py +++ b/demo.py @@ -3,6 +3,7 @@ import logging import os import threading import time +import traceback from base64 import b64decode, b64encode from getpass import getpass from cryptography import x509 @@ -225,7 +226,7 @@ async def main(args: argparse.Namespace): reregister_within = 60 # Minutes, time where if expiration time is less than, rereg. for user in users: if "P:" in str(user.user_id): - logging.info(f'The user is: {user}') + # logging.info(f'The user is: {user}') cert = x509.load_pem_x509_certificate(user.id_cert.encode('utf-8')) expiration = cert.not_valid_after logging.info(f'Certificate expires on: {expiration}')