gheift / ght-acme.sh

a linux shell script to sign certifactes by the letsencrypt CA
GNU General Public License v2.0
84 stars 31 forks source link

return code of register always 1 #3

Closed runningman84 closed 8 years ago

runningman84 commented 8 years ago

It looks like the return code of the register function is always 1:

root@default-ubuntu-1404:/etc/letsencrypt# /usr/local/bin/letsencrypt.sh register -a account.key -e test@example.org ; echo $?
register account
account already exists
1
root@default-ubuntu-1404:/etc/letsencrypt# rm account.key 
root@default-ubuntu-1404:/etc/letsencrypt# /usr/local/bin/letsencrypt.sh register -a account.key -e test@example.org ; echo $?
could not read account key
1
root@default-ubuntu-1404:/etc/letsencrypt# openssl genrsa -out account.key 4096 
Generating RSA private key, 4096 bit long modulus
..........................++
.....++
e is 65537 (0x10001)
root@default-ubuntu-1404:/etc/letsencrypt# /usr/local/bin/letsencrypt.sh register -a account.key -e test@example.org ; echo $?
register account
1
root@default-ubuntu-1404:/etc/letsencrypt#

Please return 0 in case of a success.