#!/bin/bash
openssl genrsa -out client.key
openssl req -new -config client.config -key client.key -out client.csr
openssl x509 -req -days 9999 -extfile client.config -extensions v3_req -in client.csr -signkey client.key -out client.crt
rm client.csr

openssl x509 -in client.crt -text -noout
cat client.crt
