Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dfss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mpcs
dfss
Commits
5e30115e
Commit
5e30115e
authored
Feb 22, 2016
by
Loïck Bonniot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[auth] Ignore hostname verification in tls
parent
b4a38fa9
Pipeline
#321
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
auth/cert.go
auth/cert.go
+3
-1
tests/starters_test.go
tests/starters_test.go
+1
-1
No files found.
auth/cert.go
View file @
5e30115e
...
...
@@ -63,6 +63,7 @@ func GetCertificate(days int, serial uint64, req *x509.CertificateRequest, paren
NotBefore
:
time
.
Now
(),
NotAfter
:
time
.
Now
()
.
AddDate
(
0
,
0
,
days
),
IsCA
:
false
,
DNSNames
:
[]
string
{
"*"
},
}
der
,
err
:=
x509
.
CreateCertificate
(
rand
.
Reader
,
template
,
parent
,
req
.
PublicKey
,
key
)
...
...
@@ -95,7 +96,8 @@ func GetSelfSignedCertificate(days int, serial uint64, country, organization, un
NotBefore
:
time
.
Now
(),
NotAfter
:
time
.
Now
()
.
AddDate
(
0
,
0
,
days
),
BasicConstraintsValid
:
true
,
IsCA
:
true
,
IsCA
:
true
,
DNSNames
:
[]
string
{
"*"
},
}
der
,
err
:=
x509
.
CreateCertificate
(
rand
.
Reader
,
template
,
template
,
&
key
.
PublicKey
,
key
)
...
...
tests/starters_test.go
View file @
5e30115e
...
...
@@ -27,7 +27,7 @@ func startPlatform(tmpDir string) (*exec.Cmd, []byte, error) {
}
// Init
cmd
:=
exec
.
Command
(
path
,
"-
cn"
,
"localhost"
,
"-
path"
,
dir
,
"-v"
,
"init"
)
cmd
:=
exec
.
Command
(
path
,
"-path"
,
dir
,
"-v"
,
"init"
)
err
=
cmd
.
Run
()
if
err
!=
nil
{
return
nil
,
nil
,
err
...
...
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