Np coś takiego
skrypt.bash
Kod: Zaznacz cały
#!bin/bash
touch file.txt
echo "1234" file.txt
build-key-pass [+magiczne_przełączniki_ktorych_nie_znam] file.txt certyfikat
cp certyfikat.key cer.1.key
cp certyfikat.pem cer.1.pem
Albo może pkitool można jakoś użyć?#!/bin/sh
# Similar to build-key, but protect the private key
# with a password.
export EASY_RSA="${EASY_RSA:-.}"
"$EASY_RSA/pkitool" --interact --pass $*