#!/bin/bash # configuracao source VM_CONFIG.sh if_dentro="enp0s8" ip_dentro="10.60.0.1" ifconfig $if_dentro $ip_dentro netmask 255.255.255.0 cp conf/openssl.cnf /etc/pki/tls/ # copiar ca para esta VM cp ca/index.txt $CA_DIR cp ca/ca.crt $CA_DIR cp ca/ca.key $CA_DIR cp ca/serial $CA_DIR cp ca/dh2048.pem $CA_DIR # correr oscp openssl ocsp -index $CA_DIR/index.txt -port 8888 -rsigner $CA_DIR/ca.crt -rkey $CA_DIR/ca.key -CA $CA_DIR/ca.crt -text &