Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
e4028b23
Commit
e4028b23
authored
Oct 31, 2015
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
letsencrypt: Email prompt includes link to SA
parent
3843cea9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
caddy/letsencrypt/letsencrypt.go
caddy/letsencrypt/letsencrypt.go
+4
-3
caddy/letsencrypt/user.go
caddy/letsencrypt/user.go
+4
-2
No files found.
caddy/letsencrypt/letsencrypt.go
View file @
e4028b23
...
...
@@ -30,10 +30,12 @@ import (
// if that is not available it will check the command line
// argument. If absent, it will use the most recent email
// address from last time. If there isn't one, the user
// will be prompted
. If the user leaves email blank, <TODO>
.
// will be prompted
and shown SA link
.
//
// Also note that calling this function activates asset
// management automatically, which <TODO>.
// management automatically, which keeps certificates
// renewed and OCSP stapling updated. This has the effect
// of causing restarts when assets are updated.
//
// Activate returns the updated list of configs, since
// some may have been appended, for example, to redirect
...
...
@@ -41,7 +43,6 @@ import (
func
Activate
(
configs
[]
server
.
Config
)
([]
server
.
Config
,
error
)
{
// just in case previous caller forgot...
Deactivate
()
// TODO: Is multiple activation (before a deactivation) an error?
// reset cached ocsp statuses from any previous activations
ocspStatus
=
make
(
map
[
*
[]
byte
]
int
)
...
...
caddy/letsencrypt/user.go
View file @
e4028b23
...
...
@@ -143,11 +143,12 @@ func getEmail(cfg server.Config) string {
}
}
if
leEmail
==
""
{
// Alas, we must bother the user and ask for an email address
// Alas, we must bother the user and ask for an email address;
// if they proceed they also agree to the SA.
reader
:=
bufio
.
NewReader
(
stdin
)
fmt
.
Println
(
"Your sites will be served over HTTPS automatically using Let's Encrypt."
)
fmt
.
Println
(
"By continuing, you agree to the Let's Encrypt Subscriber Agreement at:"
)
fmt
.
Println
(
"
<TODO: link>"
)
fmt
.
Println
(
"
https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf"
)
// TODO: Show current SA link
fmt
.
Println
(
"Please enter your email address so you can recover your account if needed."
)
fmt
.
Println
(
"You can leave it blank, but you lose the ability to recover your account."
)
fmt
.
Print
(
"Email address: "
)
...
...
@@ -157,6 +158,7 @@ func getEmail(cfg server.Config) string {
return
""
}
DefaultEmail
=
leEmail
Agreed
=
true
}
return
strings
.
TrimSpace
(
leEmail
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment