This commit is contained in:
Vasco
2026-04-21 23:46:06 +01:00
parent 5eb56f0477
commit d5566090c6
6 changed files with 164 additions and 4 deletions

View File

@@ -1,7 +1,18 @@
#!/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 &