Skip to content

Commit

Permalink
use openssl req instead of older req_v3 command
Browse files Browse the repository at this point in the history
script was using an older openssl call, resolves #1

Signed-off-by: Eric F Crist <[email protected]>
  • Loading branch information
ecrist committed Aug 19, 2023
1 parent 269aa7a commit bd3d121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perl/ssl-admin
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ sub create_csr {
chomp($yn = <>);
} until $yn =~ m/^[yn]$/;
if ($yn eq "y") {
system("cd $working_dir && openssl req_v3 -new -keyout $cn.key -out $cn.csr -config $key_config -batch -extensions v3_req");
system("cd $working_dir && openssl req -new -keyout $cn.key -out $cn.csr -config $key_config -batch -extensions v3_req");
} elsif ($yn eq "n") {
system("cd $working_dir && openssl req_v3 -nodes -new -keyout $cn.key -out $cn.csr -config $key_config -batch -extensions v3_req");
system("cd $working_dir && openssl req -nodes -new -keyout $cn.key -out $cn.csr -config $key_config -batch -extensions v3_req");
}
}

Expand Down

0 comments on commit bd3d121

Please sign in to comment.