Closed BGarber42 closed 1 year ago
Hi! Thanks for contributing. What OS are you running the tool on?
Have you checked the config.json? Does it contain newline (\n
) character?
According to the logs, the problem is with the line
rsa_key_size=$(jq -r --arg domain "$domain" '.domains[] | select(.domain == $domain) | .rsaKeySize' $config)
certbot: error: argument --rsa-key-size: invalid int value: '4096\n4096'
Domains were successfully parsed
domains=$(jq -r '.domains[].domain' $config)
Configuring domains:
domaina.com
siteb.org
siteb.org
The wrapper script seems to mash domains together given that the output of the
jq
call includes newlines, which you can't just feed into a shell array.Changing the
domains
line to:gives a properly output array