7 lines
169 B
Bash
Executable File
7 lines
169 B
Bash
Executable File
#!/bin/bash
|
|
|
|
openssl genrsa -out $1.key 2048
|
|
openssl req -new -key $1.key -out $1.csr -subj "/CN=$1"
|
|
openssl x509 -req -days 365 -in $1.csr -signkey $1.key -out $1.crt
|
|
|