letsencrypt::Client method requireKeyFile (protected)
<instance of letsencrypt::Client> requireKeyFile keyFile
Defined in /usr/local/ns/tcl/letsencrypt/letsencrypt-procs.tcl
- Parameters:
- keyFile (required)
- Testcases:
- No testcase defined.
Source code: if {![file exists $keyFile]} { if {${:key_type} eq "rsa"} { ns_log notice "call: openssl genrsa -out $keyFile 2048" exec openssl genrsa -out $keyFile 2048 #openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -out $keyFile # .... maybe add in the future: -aes256 -pass pass:password } elseif {${:key_type} eq "ecdsa"} { #openssl genpkey -out $keyFile -algorithm EC -pkeyopt ec_paramgen_curve:P-256 # prime256v1 ns_crypto::eckey generate -name secp384r1 -pem $keyFile } }XQL Not present: Generic, PostgreSQL, Oracle