Files
s390-tools/rust/pv/tests/assets/cert/gen/create_certs.sh
Steffen Eiden c6f621d0dc rust: Add library for pv tools
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>
2023-08-04 11:40:54 +02:00

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