Skip to content

Null configurator #438

Closed
Closed

Description

@jsha

For integration tests between the client and server, I'd like a fully command-line invocation of the client that uses the standalone authenticator and outputs a certificate to a file, without trying to configure a web server. It should also be able to run as non-root by binding to port 5001 instead of 443, and accept an HTTP URL for its Boulder instance.

This is the closest I was able to get, but this still wants to touch some of the web server files, and errors out:
D=mktemp -d; chmod 0755 $D ; letsencrypt --key-dir $D --work-dir $D --cert-dir $D --config-dir $D --backup-dir $D --cert-path $D/cert.pem --chain-path $D/chain.pem --nginx-mod-ssl-conf $D/nginx.conf -i apache -e -m [email protected] -d bar.com -s localhost:4000/acme/new-reg -v -t run

Activity

  1. kuba commented on May 21, 2015

    @kuba
    Contributor

    After pulling in #400 (--server without HTTPS and --test-mode) you should be able to just call:

    D=mktemp -d
    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

    The only missing piece is binding to port other than 443.

  2. jsha commented on May 22, 2015

    @jsha
    ContributorAuthor

    When I run that I get this error:

    AttributeError: 'Namespace' object has no attribute 'server_url'
    
  3. kuba commented on Jun 2, 2015

    @kuba
    Contributor
    D=mktemp -d
    mkdir $D/conf $D/work
    letsencrypt --config-dir $D/conf --work-dir $D/work \
      --text --agree-tos \
      --domain bar.com -m [email protected] \
      --server http://localhost:4000/acme/new-reg \
      --no-verify-ssl --dvsni-port 5001 \
      --authenticator standalone \
      -vvvvvvvv \
      auth

    is the way to go with the current master (modulo #466). However, renewer still hardcodes /etc/letsencrypt and /var/lib/letsencrypt (#469) :(

  4. kuba commented on Jun 9, 2015

    @kuba
    Contributor

    Should be fixed in #473.

  5. added a commit that references this issue on Jun 26, 2015
    7d775ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions