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
13dfffd2
Commit
13dfffd2
authored
Mar 10, 2018
by
Chris Werner Rau
Committed by
Matt Holt
Mar 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tls: Change default tls minimum version to 1.2 (#2053)
parent
5552dcbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
caddytls/config.go
caddytls/config.go
+1
-1
caddytls/setup_test.go
caddytls/setup_test.go
+2
-2
No files found.
caddytls/config.go
View file @
13dfffd2
...
...
@@ -511,7 +511,7 @@ func SetDefaultTLSParams(config *Config) {
// Set default protocol min and max versions - must balance compatibility and security
if
config
.
ProtocolMinVersion
==
0
{
config
.
ProtocolMinVersion
=
tls
.
VersionTLS1
1
config
.
ProtocolMinVersion
=
tls
.
VersionTLS1
2
}
if
config
.
ProtocolMaxVersion
==
0
{
config
.
ProtocolMaxVersion
=
tls
.
VersionTLS12
...
...
caddytls/setup_test.go
View file @
13dfffd2
...
...
@@ -67,8 +67,8 @@ func TestSetupParseBasic(t *testing.T) {
}
// Security defaults
if
cfg
.
ProtocolMinVersion
!=
tls
.
VersionTLS1
1
{
t
.
Errorf
(
"Expected 'tls1.
1 (0x0302
)' as ProtocolMinVersion, got %#v"
,
cfg
.
ProtocolMinVersion
)
if
cfg
.
ProtocolMinVersion
!=
tls
.
VersionTLS1
2
{
t
.
Errorf
(
"Expected 'tls1.
2 (0x0303
)' as ProtocolMinVersion, got %#v"
,
cfg
.
ProtocolMinVersion
)
}
if
cfg
.
ProtocolMaxVersion
!=
tls
.
VersionTLS12
{
t
.
Errorf
(
"Expected 'tls1.2 (0x0303)' as ProtocolMaxVersion, got %v"
,
cfg
.
ProtocolMaxVersion
)
...
...
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