Commit graph

443 commits

Author SHA1 Message Date
xenolf
aac83cdafb Merge branch 'cobraCLI' of https://github.com/gianluca311/lego into replace-cli-library 2016-04-14 20:25:04 +02:00
xenolf
28513346bc Add json logging for debugging of #190 2016-04-14 04:33:26 +02:00
xenolf
23e88185c2 Merge pull request #185 from rekby/jws-out-of-range
Fix out of range
2016-04-12 02:41:31 +02:00
Rekby
e81192c912 errors.New -> fmt.Errorf 2016-04-11 11:49:20 +03:00
Rekby
3ab9b75696 simple, without retriing 2016-04-11 11:43:32 +03:00
Gianluca
ce773a2065 Adapted var names. old ones were missleading. 2016-04-11 10:21:34 +02:00
Rekby
334ebd6ee6 gofmt 2016-04-11 07:27:12 +03:00
Rekby
7557681b06 doesn't sleep after last try 2016-04-11 07:26:45 +03:00
Rekby
3a426a1382 retry get nonce few times before return error 2016-04-11 07:22:00 +03:00
Rekby
f32c8a55e7 typo 2016-04-11 07:03:21 +03:00
Rekby
1107e337a5 returt to master version for clean pull request 2016-04-11 07:02:06 +03:00
Rekby
ec18c6e42f Fix out of range 2016-04-11 06:45:32 +03:00
xenolf
23157e6ad6 Merge pull request #183 from koep/docker
Add Dockerfile
2016-04-11 04:14:19 +02:00
Rekby
232fbbef08 Fix out of range 2016-04-10 16:06:49 +03:00
xenolf
74c6bbee86
Fix a couple of lint and fmt issues. 2016-04-08 01:21:01 +02:00
xenolf
44d92633c6
Move duplicate code to a function
Signed-off-by: xenolf <xenolf@users.noreply.github.com>
2016-04-08 01:04:38 +02:00
xenolf
239a7005ef Remove official (automatically tested) support for go 1.4 2016-04-08 00:18:18 +02:00
Christian Koep
94509ee581 Add Dockerfile
This enables users to build, ship and run lego with Docker.
2016-04-07 22:15:55 +02:00
xenolf
157111fd1d Merge pull request #182 from fd0/handle-non-json-response
Only try to parse JSON documents
2016-04-05 22:22:36 +02:00
Alexander Neumann
ec667a7ed1 Only try to parse JSON documents
This patch adds code to only parse the HTTP response body as JSON if the
content-type header advertises the content as JSON. In my case, the
directory server was unavailable: it returned a 503 HTTP response code
with an HTML document, and the only thing lego reported was:

    2016/04/04 19:12:56 Could not create client: get directory at 'https://acme-v01.api.letsencrypt.org/directory': invalid character '<' looking for beginning of value

This was caused by trying to parse the document body (HTML) as JSON,
without looking at the content-type header and returning the JSON parse
error.
2016-04-04 23:15:49 +02:00
Gianluca
6114f8b6e7 removed typos in readme 2016-03-30 10:26:57 +02:00
Gianluca
e0a1dd6e9e adapted readme 2016-03-30 10:12:15 +02:00
Gianluca
58386e2d80 removed license headers from files. 2016-03-29 22:19:20 +02:00
Gianluca
ab2362bff4 changed imports to xenolf 2016-03-29 19:17:51 +02:00
Gianluca
0d6f04c434 added version command 2016-03-29 19:16:27 +02:00
Gianluca
9a58f91799 finished work on command renew 2016-03-29 19:11:11 +02:00
Gianluca
19ee614390 finished work on revoke 2016-03-29 19:04:32 +02:00
Gianluca
ce7dbe906d completed work on run command, moved util files in cmd/utils 2016-03-29 18:55:17 +02:00
Gianluca
ac406d0be7 inital for cobra structure
added commands from lego
2016-03-29 12:14:48 +02:00
xenolf
ca19a90028 Merge pull request #176 from willseward/do-authzone
DigitalOcean uses FindZoneByFqdn
2016-03-28 18:28:34 +02:00
xenolf
fd99bdb74a Merge pull request #174 from janeczku/route53-aws-sdk
Switch route53 provider to the official AWS SDK
2016-03-28 18:26:56 +02:00
xenolf
4975774a3f Merge pull request #177 from csstaub/master
Build with go-jose.v1 (instead of master)
2016-03-28 17:58:11 +02:00
xenolf
16e4486cfd Merge pull request #175 from xi2/update-readme-sudo
Update README sudo section
2016-03-28 17:56:08 +02:00
Cedric Staub
6528bf217e Build with go-jose.v1 instead of master 2016-03-27 12:38:49 -07:00
Jan Broer
9f1b9e39af Switch route53 provider to the official AWS SDK
Fully backwards compatible in terms of credential mechanisms
(environment variables, shared credentials file, EC2 metadata). If a
custom AWS IAM policy is in use it needs to be updated with permissions
for the route53:ListHostedZonesByName action.
2016-03-27 20:22:09 +02:00
Wills Ward
b14cf9e756 digital ocean uses FindZoneByFqdn 2016-03-26 20:19:49 -05:00
Michael Cross
7f14e2a4aa Update README sudo section 2016-03-26 14:02:38 +00:00
xenolf
0a681c253d Merge pull request #172 from xi2/update-readme-example
Update README example section
2016-03-25 22:39:04 +01:00
xenolf
4c1e6a183c Merge pull request #171 from xi2/gandi-add-live-test
Gandi DNS: add live test
2016-03-25 22:38:18 +01:00
xenolf
d46784c256 Merge pull request #170 from kennyballou/readme_update
Update README usage Section
2016-03-25 22:37:47 +01:00
xenolf
3f7e7fdbc8 Merge pull request #169 from xi2/gandi-use-findzonebyfqdn
Gandi DNS: use acme.FindZoneByFqdn function
2016-03-25 22:36:25 +01:00
Michael Cross
e99d2ee63f Gandi DNS: add live test 2016-03-24 23:21:35 +00:00
Michael Cross
19911dc180 Update README example section 2016-03-24 22:35:45 +00:00
Michael Cross
3d7abd9093 Gandi DNS: use acme.FindZoneByFqdn function 2016-03-24 22:23:50 +00:00
kballou
5474a0e80c Update README usage Section
The usage output seems to have drifted and was causes confusion when
attempting to use as a reference.
2016-03-24 12:55:15 -06:00
xenolf
8512faba3b Merge pull request #142 from LukeHandle/patch-dns-providers
Use zone name when talking to DNS APIs
2016-03-24 09:32:06 +01:00
xenolf
af94ecc8b4 Adjust cloudflare provider timeout values to better cope with spikes in propagation time. Fix #167 2016-03-23 23:55:15 +01:00
xenolf
a7ce32d9be Revert "Updated timeout for cloudflare dns challenge" 2016-03-23 23:49:52 +01:00
xenolf
250bb86a2b Revert "Updated timeout for cloudflare dns challenge" 2016-03-23 23:48:20 +01:00
xenolf
1ee5cbd9e8 Merge pull request #163 from rgl/master
Add DNS challenge provider for Vultr.
2016-03-23 22:44:58 +01:00