| Line 37... |
Line 37... |
| 37 |
die "Existing CA or Key found, remove them before continuing\n" if -f $caCRT or -f $caKey;
|
37 |
die "Existing CA or Key found, remove them before continuing\n" if -f $caCRT or -f $caKey;
|
| 38 |
|
38 |
|
| 39 |
`openssl genpkey -algorithm RSA -out $caKey -des3 -pkeyopt rsa_keygen_bits:2048`;
|
39 |
`openssl genpkey -algorithm RSA -out $caKey -des3 -pkeyopt rsa_keygen_bits:2048`;
|
| 40 |
`openssl req -config $configFile -key $caKey -new -x509 -days $caDays -out $caCRT -extensions CA_default`;
|
40 |
`openssl req -config $configFile -key $caKey -new -x509 -days $caDays -out $caCRT -extensions CA_default`;
|
| 41 |
|
41 |
|
| 42 |
print "CA Created. You can view it with:\nopenssl x509 -in dailydataCA.crt -text -noout\n";
|
42 |
print "CA Created. You can view it with:\nopenssl x509 -in $caCRT -text -noout\n";
|
| 43 |
|
43 |
|