Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
comms
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xx network
comms
Commits
f7d612d2
Commit
f7d612d2
authored
Aug 26, 2022
by
Jonah Husson
Browse files
Options
Downloads
Patches
Plain Diff
Add public key to pc in StartCommServer
parent
8ad69d5a
No related branches found
No related tags found
3 merge requests
!39
Merge release into master
,
!34
Update to use modified client, add params for relevant options, enable use of tls with web conn
,
!32
Project/channels
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
connect/comms.go
+3
-0
3 additions, 0 deletions
connect/comms.go
with
3 additions
and
0 deletions
connect/comms.go
+
3
−
0
View file @
f7d612d2
...
@@ -176,6 +176,9 @@ listen:
...
@@ -176,6 +176,9 @@ listen:
return
nil
,
errors
.
Errorf
(
"Could not set private key: %+v"
,
err
)
return
nil
,
errors
.
Errorf
(
"Could not set private key: %+v"
,
err
)
}
}
// Set the public key data
pc
.
pubKeyPem
=
certPEMblock
// Create the gRPC server with TLS
// Create the gRPC server with TLS
jww
.
INFO
.
Printf
(
"Starting server with TLS..."
)
jww
.
INFO
.
Printf
(
"Starting server with TLS..."
)
creds
:=
credentials
.
NewServerTLSFromCert
(
&
x509cert
)
creds
:=
credentials
.
NewServerTLSFromCert
(
&
x509cert
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment