letsencrypt-cli 0.1.0.beta1 → 0.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 101dcc9fbc8cd59d85926f5fc726c13393306292
4
- data.tar.gz: b829a1224e1b3f9ae59d656034cf791f958c978b
3
+ metadata.gz: 86ee840afe7b3b99a02ed340a99ae67fed641bc3
4
+ data.tar.gz: 7f6386f763b68d9ddf8b95804863efa57cacb67c
5
5
  SHA512:
6
- metadata.gz: c267226d7a856b80b6b8979acba3682687444546cdd2fe9adfc08990ad88ba1800ed48360f9148ea6fd2537d3dd6d8374a32018f8e40caa6250f51268ba05c5d
7
- data.tar.gz: eab63e043424e82abc9e95d639deb339bd61a693983c6cbee4a6e925517b2f2b3d1ec4f0055131d81e2047fe6bdb7cf0c20cffbb1f3cc8a38df51e8f575da278
6
+ metadata.gz: ada07e70db33b208e2a6e3dbf9f269f0d2d7c523672062501105e06737a589a798af0e7f92dc401387869d1d2131e317e7cf0753b8fcacd4fb8eb906bee0c282
7
+ data.tar.gz: 8fa6bd4884512ceae4f4c9e40a68121c471f0697ca2303b8fbf50e02f8d4a66ecc08a9a53543077a1dc13bfba3d5266df4b884c9cd4acd520de978d003af2898
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Letsencrypt::Cli
2
2
 
3
3
  [![Build Status](https://travis-ci.org/zealot128/ruby-letsencrypt-cli.svg?branch=travis)](https://travis-ci.org/zealot128/ruby-letsencrypt-cli)
4
- [![Gem Version](https://badge.fury.io/rb/letsencrypt-cli.svg)](https://badge.fury.io/rb/letsencrypt-cli)
5
4
 
6
5
  Yet another Letsencrypt client using Ruby.
7
6
 
@@ -15,7 +14,7 @@ Yet another Letsencrypt client using Ruby.
15
14
 
16
15
  ## Usage
17
16
 
18
- Specify ``-t`` to use Letsencrypt test server. Without it, all requests are called against the production server, that might have same more strict rate limiting. If you are just toying around, add the -t flag.
17
+ Specify ``-p`` to use letsencrypt production server. Without it, all requests are called against the staging server. (live server has some hard rate limiting, so use the staging server for playing first).
19
18
 
20
19
  ```bash
21
20
  # show all commands
@@ -26,19 +25,19 @@ letsencrypt-cli help
26
25
  letsencrypt-cli help cert
27
26
 
28
27
  # creates account_key.json in current_dir
29
- letsencrypt-cli register -t myemail@example.com
28
+ letsencrypt-cli register -p myemail@example.com
30
29
 
31
30
 
32
31
  # authorize one or more domains/subdomains
33
- letsencrypt-cli authorize -t --webroot-path /var/www/default example.com www.example.com somedir.example.com
32
+ letsencrypt-cli authorize -p --webroot-path /var/www/default example.com www.example.com somedir.example.com
34
33
 
35
34
  # experimental: authorize all server_names in /etc/nginx/sites-enabled/*
36
- letsencrypt-cli authorize_all -t --webroot-path /var/www/default
35
+ letsencrypt-cli authorize_all -p --webroot-path /var/www/default
37
36
 
38
37
 
39
38
  # create a certificate for before authorized domains.
40
39
  # the first domain will be the cn subject. All other are subjectAlternateName
41
- letsencrypt-cli cert -t example.com www.example.com somdir.example.com
40
+ letsencrypt-cli cert example.com www.exaple.com somdir.example.com
42
41
  # will create key.pem fullchain.pem chain.pem and cert.pem
43
42
  ```
44
43
 
@@ -105,10 +105,10 @@ class AcmeWrapper
105
105
  end
106
106
 
107
107
  def endpoint
108
- if @options[:test]
109
- "https://acme-staging.api.letsencrypt.org"
110
- else
108
+ if @options[:production]
111
109
  ""
110
+ else
111
+ 'https://acme-staging.api.letsencrypt.org'
112
112
  end
113
113
  end
114
114
 
@@ -5,7 +5,7 @@ module Letsencrypt
5
5
  module Cli
6
6
  class App < Thor
7
7
  class_option :account_key, desc: "Path to private key file (will be created if not exists)", aliases: "-a", default: 'account_key.pem'
8
- class_option :test, desc: "Use staging url of Letsencrypt instead of production server", aliases: "-t", type: :boolean
8
+ class_option :production, desc: "Use production url of letsencrypt instead of staging server", aliases: "-p", type: :boolean
9
9
  class_option :log_level, desc: "Log Level (debug, info, warn, error, fatal)", default: "info"
10
10
  class_option :color, desc: "Disable colorize", default: true, type: :boolean
11
11
 
@@ -1,5 +1,5 @@
1
1
  module Letsencrypt
2
2
  module Cli
3
- VERSION = "0.1.0.beta1"
3
+ VERSION = "0.1.0.pre"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letsencrypt-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta1
4
+ version: 0.1.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Wienert