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
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.1.tar.gz
(14.0 kB
view details)
Built Distribution
scapy_man-0.2.1-py3-none-any.whl
(16.8 kB
view details)
File details
Details for the file scapy-man-0.2.1.tar.gz
.
File metadata
- Download URL: scapy-man-0.2.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8799eb3fac13589ed9582b107b71cc3bf776bf1f2c73feacd58037eeb2942323 |
|
MD5 | 3e7e0479413cc261a7f6990b0881d561 |
|
BLAKE2b-256 | 9a18a9bd0de17c2b006a0a641a90b45ece5ef7da26d860592965c67112cd8f34 |
Provenance
File details
Details for the file scapy_man-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: scapy_man-0.2.1-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f415e857a39243d44c89aaac5c99c5d7f0f3b1a8abe6fb8b609ce61c98596938 |
|
MD5 | 42bcff455ef1067f9735f326d3ab3ce6 |
|
BLAKE2b-256 | 6fb56a5d5bcd8fddd65d07aae24ffdbaf5e36f98e369247e0253ec6ed3ee16dd |