Maciej Dębski
8ac0e0d97c
acme: add support for TLS-ALPN
...
This adds support for the new challenge type, as described in
https://tools.ietf.org/html/draft-ietf-acme-tls-alpn-01
Updates golang/go#25013
Change-Id: I81b335ff4b4e89e705a70e7d38dd21c3d5f5c25f
Reviewed-on: https://go-review.googlesource.com/116995
Reviewed-by: Alex Vaghin <ddos@google.com >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2018-06-08 09:28:29 +00:00
Alex Vaghin
df8d4716b3
acme: clarify retries and backoff algorithm
...
There's been some confusion about failed request retries.
Rightfully so: some requests are retried, others are not.
This change attempts to clarify the issue and unify backoff
usage in all Client's methods by introducing a new exported
optional field RetryBackoff and adding retry logic where missing.
Also, updates golang/go#22457 .
Change-Id: Ied434edf998d52925a48b6b3b2407d45a6e9d2ee
Reviewed-on: https://go-review.googlesource.com/109615
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2018-06-02 22:01:24 +00:00
Joe Kyo
27b9897dfc
acme: clarify the purpose of CertOption interface
...
This change also moves CertOption and its relevant types and
functions from acme.go to types.go.
Change-Id: I575c2eb39c137a304111883c275c2a2fb1d0bcd2
Reviewed-on: https://go-review.googlesource.com/51650
Run-TryBot: Alex Vaghin <ddos@google.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Alex Vaghin <ddos@google.com >
2017-07-28 08:04:30 +00:00
Alex Vaghin
5f995c0d1c
acme: add function to check rate limits
...
This change exposes a function to extract rate limit duration
from a client error using Retry-After response header.
Author: David Calavera <david.calavera@gmail.com >.
Fixes golang/go#19304 .
Change-Id: Iec9cfab398b84c6f216b95d3265ffad1ce2f29a7
Reviewed-on: https://go-review.googlesource.com/37463
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2017-04-25 18:26:15 +00:00
Alex Vaghin
141c762c16
acme: replace ErrAuthorizationFailed with a type
...
This provides acme users with more insights into authorization failures.
Updates golang/go#19800 .
Change-Id: I821298a6c8bd21fc517b2ab9128dd3d32be90249
Reviewed-on: https://go-review.googlesource.com/40450
Run-TryBot: Alex Vaghin <ddos@google.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2017-04-25 15:40:58 +00:00
Alex Vaghin
d3c1194e7c
acme: expose internal/acme as acme package
...
This moves all of internal/acme into the acme package,
making the lower level API accessible by any other package.
Fixes golang/go#16938 .
Change-Id: Ie35f4b6b6b42ebb7fb4ad03ba067df8c3063feff
Reviewed-on: https://go-review.googlesource.com/28297
TryBot-Result: Gobot Gobot <gobot@golang.org >
Run-TryBot: Alex Vaghin <ddos@google.com >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2016-08-31 19:38:21 +00:00