niver
/
maniver
Archived
1
0
Fork 0

Use RSA 3072 bits instead of ECDSA P-384

main
Miraty 2 years ago
parent 72b7d21a71
commit 09556d9154
  1. 24
      Cargo.lock
  2. 16
      src/main.rs

24
Cargo.lock generated

@ -44,38 +44,22 @@ version = "2.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525"
[[package]]
name = "once_cell"
version = "1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0"
[[package]]
name = "regex"
version = "1.4.3"
version = "1.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948a"
checksum = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
"thread_local",
]
[[package]]
name = "regex-syntax"
version = "0.6.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581"
[[package]]
name = "thread_local"
version = "1.1.3"
version = "0.6.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd"
dependencies = [
"once_cell",
]
checksum = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548"
[[package]]
name = "users"

@ -82,15 +82,15 @@ fn le_install(domain: String) {
let output = Command::new("/usr/bin/certbot")
.arg("--nginx")
// Using ECDSA
.arg("--key-type")
.arg("ecdsa")
.arg("--elliptic-curve")
.arg("secp384r1")
// Using RSA
//.arg("--key-type")
//.arg("rsa")
//.arg("--rsa-key-size")
//.arg("3072")
//.arg("ecdsa")
//.arg("--elliptic-curve")
//.arg("secp384r1")
// Using RSA
.arg("--key-type")
.arg("rsa")
.arg("--rsa-key-size")
.arg("3072")
.arg("-d")
.arg(&domain)
.output()