From d60ed67fa4eeeba312646358316e49c0a6cbc6f6 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 20 Oct 2016 16:15:23 -0400 Subject: initial commit --- .makecert.exp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 .makecert.exp (limited to '.makecert.exp') diff --git a/.makecert.exp b/.makecert.exp new file mode 100755 index 0000000..36bdee1 --- /dev/null +++ b/.makecert.exp @@ -0,0 +1,22 @@ +#!/usr/bin/expect +set keyfile [lindex $argv 1] +set certfile [lindex $argv 2] +set timeout 2 +spawn openssl req -x509 -nodes -days 1095 -newkey rsa:2048 -keyout "${keyfile}" -out "${certfile}" +expect "Country Name (2 letter code) \[XX\]:" +set timeout 1 +send "US\r" +expect "State or Province Name (full name) \[\]:" +send "Some State\r" +expect "Locality Name (eg, city) \[Default City\]:" +send "Default City\r" +expect "Organization Name (eg, company) \[Default Company Ltd\]:" +send "Default Company Ltd\r" +expect "Organizational Unit Name (eg, section) \[\]:" && +send "Information Technologies\r" +expect "Common Name (eg, your name or your server's hostname) \[\]:" +send [lindex $argv 0] +send "\r" +expect "Email Address \[\]:" +send "linuxadmin@example.com\r" +interact -- cgit