Files
userspace/createuser.sh
2020-05-22 21:27:19 -04:00

5 lines
271 B
Bash
Executable File

#!/bin/bash
export USER=$1
docker run -it -v $(pwd)/users/$USER:/$USER python:latest openssl genrsa -out /$USER/$USER.key 2048
docker run -it -v $(pwd)/users/$USER:/$USER python:latest openssl req -new -key /$USER/$USER.key -out /$USER/$USER.csr -subj "/CN=$USER/O=user"