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

script stops at Press Enter to Continue #3

Open
kitsguru opened this issue Nov 12, 2017 · 7 comments
Open

script stops at Press Enter to Continue #3

kitsguru opened this issue Nov 12, 2017 · 7 comments

Comments

@kitsguru
Copy link

kitsguru commented Nov 12, 2017

I am trying to get lcget working on Mac OS High Sierra.
I have certbot via brew
lcget and jssh are in ~/bin

Each one works fine by itself.
I am not sure if how long it should take to create the challenge file and return but 10 minute seems like a long time.
lcget -lp certbot certonly -c ~/.config/letsencrypt/yaadev.ini

The ini file is

# This is an example of the kind of things you can do in a configuration file.
# All flags used by the client can be configured here. Run Lets Encrypt with
# --help to learn more about the available options.
config-dir = ~/.config/letsencrypt
work-dir = ~/.letsencrypt
logs-dir = ~/.letsencrypt
# Use a 4096 bit RSA key instead of 2048
rsa-key-size = 4096

# Uncomment and update to register with the specified e-mail address
email = myemailaddress@gmail.com

# Uncomment and update to generate certificates for the specified domains.
#Add subdomains or domains however you like. My recommendation is to put the root domain at beginning.
domains = yaadev.com, www.yaadev.com


# Uncomment to use a text interface instead of ncurses
# Do not change this
# The expect script works with text interface.
text = True

# Uncomment to use the standalone authenticator on port 443
# authenticator = standalone
# standalone-supported-challenges = tls-sni-01

# Uncomment to use the webroot authenticator. Replace webroot-path with the
# path to the public_html / webroot folder being served by your web server.
# authenticator = webroot
# webroot-path = /usr/share/nginx/html

authenticator = manual
manual-public-ip-logging-ok


renew-by-default

#Testing; comment the following block out when you are done testing and want to get the real thing.
server = https://acme-staging.api.letsencrypt.org/directory
debug
break-my-certs

#Testing opts end here

Any suggestions would be appreciated.

@neurobin
Copy link
Owner

neurobin commented Nov 13, 2017

please check if this pattern matches the output:

"*--------------*\n*--------------*Press Enter to Continue"

you can try changing line 255 in lcget

        -nocase "*--------------*\n*--------------*Press Enter to Continue" {

to

        -nocase "*press enter to continue*" {

N.B: Ensure a good network connection, it may hang due to bad network

@kitsguru
Copy link
Author

The pattern I have is

-------------------------------------------------------------------------------
Press Enter to Continue

So what should I change it to?

@neurobin
Copy link
Owner

neurobin commented Nov 13, 2017

well it should work without modification, did you install expect? if so, can you show me the version expect -v

@kitsguru
Copy link
Author

expect version 5.45

@neurobin
Copy link
Owner

ok, then try editing the script lcget (in ~/bin) with the mentioned changes

@kitsguru
Copy link
Author

Edited line 255 per suggestion, added full path to jssh just in case but no luck.
I have a good 60MB connection.

@kitsguru
Copy link
Author

Is there a way to turn on debug logging? I still can't get this to work.

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

2 participants