Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after generating of RSA private key? #227

Closed
tohn opened this issue Jan 18, 2017 · 6 comments
Closed

Error after generating of RSA private key? #227

tohn opened this issue Jan 18, 2017 · 6 comments

Comments

@tohn
Copy link
Contributor

tohn commented Jan 18, 2017

Hey,

first: thanks for this awesome software! I now use it at work and at home :)
And then I wanted to report an Error or Warning after the generation of a RSA private key:

# /opt/getssl/getssl -w /opt/getssl/conf -a
Check all certificates
example.org: no certificate obtained from host
creating account key /opt/getssl/conf/example.org/example.org.key
creating domain key - /opt/getssl/conf/example.org/example.org.key
Generating RSA private key, 4096 bit long modulus
..................++
................................................................++
e is 65537 (0x10001)
/opt/getssl/getssl: Zeile 632: -4: Teilstring-Ausdruck < 0.

Sorry for the german output ;)
I'm not sure if this is an issue, but just in case, here it is ;)

Thanks!

@srvrco
Copy link
Collaborator

srvrco commented Jan 18, 2017

Many thanks for reporting - I'll look into it. (No problem with the German output :) )

@srvrco
Copy link
Collaborator

srvrco commented Jan 18, 2017

Thanks - found the bug, and patched code. Just testing before uploading.

@srvrco
Copy link
Collaborator

srvrco commented Jan 18, 2017

Thanks - fixed in the latest version of code.

@srvrco srvrco closed this as completed Jan 18, 2017
@tohn
Copy link
Contributor Author

tohn commented Jan 18, 2017

Thanks a lot!
But unfortunately it doesn't work:

# ./getssl -w /opt/getssl/conf -a
Check all certificates
domain.tld: no certificate obtained from host
creating account key /opt/getssl/conf/account.key
creating domain key - /opt/getssl/conf/account.key
Generating RSA private key, 4096 bit long modulus
.........................................++
........................++
e is 65537 (0x10001)
./getssl: Zeile 638: -4: Teilstring-Ausdruck < 0.
creating domain key - /opt/getssl/conf/domain.tld/domain.tld.key
Generating RSA private key, 4096 bit long modulus
....................................................................................++
....++
e is 65537 (0x10001)
./getssl: Zeile 638: -4: Teilstring-Ausdruck < 0.
[..]

Just to be sure, I use the latest version (2.05) and CentOS 6.8 (Final).

@srvrco srvrco reopened this Jan 18, 2017
@srvrco
Copy link
Collaborator

srvrco commented Jan 18, 2017

hmm, thanks - can you email me your getssl.cfg file, and if you run it with debug (-d) can you send me that output as well please.

getssl at serverco.com

@srvrco
Copy link
Collaborator

srvrco commented Jan 20, 2017

Thanks, This error is because the functions used are only available in bash v4.2-alpha and more recently (and you are using an older version). Since bash 4.2-alpha was released in Feb 2011 my instinctive reaction is to just add a warning for users of bash < 4.2 that they will be some errors. This looks to be mainly related to EC certs, which probably wouldn't be supported on older systems anyway ( since they require functionality more recent than Feb 2011).

@srvrco srvrco closed this as completed Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant