This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Many features of pyOpenSSL package are depricated. So we are using the cryptography library instead. | |
| # pip install cryptography | |
| from cryptography import x509 | |
| from cryptography.x509.oid import NameOID | |
| from cryptography.hazmat.primitives import hashes | |
| from cryptography.hazmat.primitives.asymmetric import rsa | |
| from cryptography.hazmat.primitives.serialization import Encoding, PrivateFormat, NoEncryption | |
| from cryptography.hazmat.primitives import serialization # Fix: Import serialization | |
| from datetime import datetime, timedelta, UTC # Fix: Import datetime and timedelta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| pwd=`pwd` | |
| name=`basename "$pwd"` | |
| echo "You are about to make a local dev path '${pwd}' into a domain '${name}.test'" | |
| read -n1 -p "Proceed? (y/n):" check | |
| echo | |
| if [[ $check != "y" ]]; then | |
| echo "Exiting..." |