servnest
/
maniver
Archived
2
0
Fork 0

Use RSA 3072 bits instead of ECDSA P-384

This commit is contained in:
Miraty 2021-04-17 19:20:39 +02:00
parent 72b7d21a71
commit 09556d9154
2 changed files with 12 additions and 28 deletions

24
Cargo.lock generated
View File

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

View File

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