Script to Generate CSR

wangl2
Contributor

Hi Guys,
I have some old 10.6.8 clients to install the certificates. Unfortunately I cannot use Profile Manager and deploy from Casper. So I am doing it manually. Basically I need to do the following:
1. Generate Private Key
$ openssl genrsa -out ~/privkey.pem 2048
2. Generate CSR using above Private Key
$ openssl req -new -key ~/privkey.pem –out ~/request.csr
3. Once I got the CSR created, I will go to CA and sign it.
So at step 2, after you type the command and before the CSR can be created, you need provide the answers.
Can anyone help me to put those two command line into a script together with an answer file?
Thanks everyone!

0 REPLIES 0