Step CA Manager using Python
Project description
Scapy Manager (scapy-man)
Step CA Manager using Python
Setup
git clone https://github.com/nikhiljohn10/scapy
cd scapy
pip install --user poetry
poetry update
Demo
poetry run bash examples/deploy.sh
You will be asked to provide a Cloudflare Token to upload the worker. The worker will be uploaded to your Cloudflare Account and deployed to Cloudflare Edge Network.
If successully deployed, you will find a url where the demo CA Root certificate and hosted. Install this certificate in systems to access stepca.nikz.in.
Python Package
pip install scapy-man
Troubleshooting
- If
scapy
not found:export PATH=$PATH:$(realpath ~/.local/bin)
- If
pip
not found:sudo apt install python3-pip
- If
python3-pip
not found:sudo apt update
Usage with Step CA
INSTALLATION_PATHS=$(scapy get step all -p)
sudo dpkg -i $INSTALLATION_PATHS
scapy gen passwords
scapy gen worker
export CA_NAME="Scapy CA"
step ca init \
--name "$CA_NAME" \
--dns stepca.local \
--address :443 \
--provisioner admin \
--password-file $(scapy path password root) \
--provisioner-password-file $(scapy path password provisioner)
step crypto change-pass $(scapy path key intermediate)
export FINGERPRINT=$(step certificate fingerprint $(scapy path cert root))
scapy deploy --worker scapy --js worker.js
In the above commands,
- Generate a password and store in step path
- Generate a basic worker file
- Export
CA_NAME
variable with CA Name - Generate PKI using Step CA
- Export
FINGERPRINT
variable with fingerprint of Root Certificate - Deploy worker
scapy
withworker.js
as script file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scapy-man-0.2.3.tar.gz
(14.0 kB
view hashes)
Built Distribution
scapy_man-0.2.3-py3-none-any.whl
(16.7 kB
view hashes)
Close
Hashes for scapy_man-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80b6639f372182f5e87379355e68518e3f858b7f6e59615f414594e1350849db |
|
MD5 | 42c7a9dc0d05ec9cd45af28a77eb6786 |
|
BLAKE2b-256 | 59ccc3c229f7d9aa302167e5a4d131f80e672b44e5c36bb063de4769ec92bf1d |