mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add a `pv` crate that bundles useful functions and structs for creating requests like `Attestation`, `Add Secret`, or even `Boot` a.k.a. Secure Execution Image. Note pv includes a subcrate `openssl_extensions` that (temporarily) bundles some needed `openssl-rust` functionalities that are not upstream yet. The plan is to remove these, when they become upstream. The pv crate has multiple features: * request - code to generate requests * uvsecret - code to access the UV-secret api with request enabled also generating requests is possible Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Acked-by: Jan Höppner <hoeppner@linux.ibm.com> Acked-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
18 lines
288 B
Bash
Executable File
18 lines
288 B
Bash
Executable File
#!/bin/bash
|
|
if [ $# -eq 0 ]; then
|
|
path="."
|
|
else
|
|
path="$1"
|
|
fi
|
|
|
|
if test -f "${path}"/host.crt; then
|
|
exit 0
|
|
fi
|
|
|
|
python -m venv "${path}"/gen_venv
|
|
source "${path}"/gen_venv/bin/activate
|
|
pip3 install -r "${path}"/requirements.txt
|
|
cd "${path}" || exit 2
|
|
python3 ./create_certs.py
|
|
deactivate
|