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
987a5f98
Commit
987a5f98
authored
Apr 05, 2016
by
elcore
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #723 from mholt/fix-#721
Fix for #721
parents
a14fce0b
859a93d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
caddy/https/https.go
caddy/https/https.go
+1
-1
caddy/https/setup.go
caddy/https/setup.go
+0
-4
caddy/https/setup_test.go
caddy/https/setup_test.go
+5
-0
No files found.
caddy/https/https.go
View file @
987a5f98
...
...
@@ -404,7 +404,7 @@ const AlternatePort = "5033"
// KeyType is the type to use for new keys.
// This shouldn't need to change except for in tests;
// the size can be drastically reduced for speed.
var
KeyType
acme
.
KeyType
var
KeyType
=
acme
.
RSA2048
// stopChan is used to signal the maintenance goroutine
// to terminate.
...
...
caddy/https/setup.go
View file @
987a5f98
...
...
@@ -228,10 +228,6 @@ func loadCertsInDir(c *setup.Controller, dir string) error {
// port to 443 if not already set, TLS is enabled, TLS is manual, and the host
// does not equal localhost.
func
setDefaultTLSParams
(
c
*
server
.
Config
)
{
if
KeyType
==
""
{
KeyType
=
acme
.
RSA2048
}
// If no ciphers provided, use default list
if
len
(
c
.
TLS
.
Ciphers
)
==
0
{
c
.
TLS
.
Ciphers
=
defaultCiphers
...
...
caddy/https/setup_test.go
View file @
987a5f98
...
...
@@ -55,6 +55,11 @@ func TestSetupParseBasic(t *testing.T) {
t
.
Errorf
(
"Expected 'tls1.2 (0x0303)' as ProtocolMaxVersion, got %v"
,
c
.
TLS
.
ProtocolMaxVersion
)
}
// KeyType default
if
KeyType
!=
acme
.
RSA2048
{
t
.
Errorf
(
"Expected '2048' as KeyType, got %#v"
,
KeyType
)
}
// Cipher checks
expectedCiphers
:=
[]
uint16
{
tls
.
TLS_FALLBACK_SCSV
,
...
...
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