Skip to content

Test mode and --server with scheme - #400

Merged
jsha merged 7 commits into
certbot:masterfrom
kuba:test-mode
May 22, 2015
Merged

jsha merged 7 commits into
certbot:masterfrom
kuba:test-mode

Conversation

@kuba

@kuba kuba commented May 10, 2015

Copy link
Copy Markdown
Contributor

No description provided.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 93.54% when pulling 87c00ab on kuba:test-mode into 1ce1363 on letsencrypt:master.

@kuba kuba mentioned this pull request May 10, 2015
kuba added 3 commits May 12, 2015 21:16
Conflicts:
	letsencrypt/tests/configuration_test.py
	letsencrypt/tests/network2_test.py
This reverts commit da53813.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 94.23% when pulling e06c0cb on kuba:test-mode into d6e554b on letsencrypt:master.

@kuba kuba mentioned this pull request May 21, 2015
@jsha

jsha commented May 21, 2015

Copy link
Copy Markdown
Contributor

When I try this, I get the following error:

$ letsencrypt --config-dir $D --work-dir $D    --text --agree-tos   --domain bar.com -m [email protected]   --test-mode --server localhost:4000/acme/new-reg   --authenticator standalone   -vvvvvvvv   auth
DEBUG:root:Logging level set at -50
DEBUG:root:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#nginx,PluginEntryPoint#standalone)
WARNING:root:Root (sudo) is required to run most of letsencrypt functionality.
INFO:root:Generating key (2048 bits): /tmp/tmp.KsPp38YEry/accounts/4000/acme/new-reg/keys/[email protected]
DEBUG:root:Single candidate plugin: * standalone
Description: Standalone Authenticator
Interfaces: IAuthenticator, IPlugin
Entry point: standalone = letsencrypt.plugins.standalone.authenticator:StandaloneAuthenticator
Initialized: <letsencrypt.plugins.standalone.authenticator.StandaloneAuthenticator object at 0x7f1399826890>
Prep: True
Traceback (most recent call last):
  File "/home/jsha/lets-encrypt-preview/venv/bin/letsencrypt", line 9, in <module>
    load_entry_point('letsencrypt==0.1', 'console_scripts', 'letsencrypt')()
  File "/home/jsha/lets-encrypt-preview/letsencrypt/cli.py", line 371, in main
    return args.func(args, config, plugins)
  File "/home/jsha/lets-encrypt-preview/letsencrypt/cli.py", line 123, in auth
    args, config, acc, authenticator=authenticator, installer=installer)
  File "/home/jsha/lets-encrypt-preview/letsencrypt/cli.py", line 60, in _common_run
    acme = client.Client(config, acc, authenticator, installer)
  File "/home/jsha/lets-encrypt-preview/letsencrypt/client.py", line 65, in __init__
    config.server_url, jwk.JWKRSA.load(self.account.key.pem),
  File "/home/jsha/lets-encrypt-preview/letsencrypt/configuration.py", line 36, in __getattr__
    return getattr(self.namespace, name)
AttributeError: 'Namespace' object has no attribute 'server_url'

@jsha

jsha commented May 22, 2015

Copy link
Copy Markdown
Contributor

This looks good. I put up another PR that builds on this and fixes my use case: #439

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 94.34% when pulling 7495145 on kuba:test-mode into ead60d8 on letsencrypt:master.

@kuba

kuba commented May 22, 2015

Copy link
Copy Markdown
Contributor Author

@jsha I fixed the server_url problem you were experiencing.

kuba referenced this pull request May 22, 2015
Use cert_dir instead of cert_path
Restore server_url
When creating a unique file, only loop for EEXISTS, not other OS errors like
  permission denied.
Pass uid explicitly to make_or_verify_dir.
jsha added a commit that referenced this pull request May 22, 2015
Test mode and --server with scheme
@jsha
jsha merged commit ef8daba into certbot:master May 22, 2015
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

Successfully merging this pull request may close these issues.

3 participants