Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngtcp2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kashyap Thimmaraju
ngtcp2
Commits
d26a1030
Commit
d26a1030
authored
7 years ago
by
Alexis La Goutte
Browse files
Options
Downloads
Patches
Plain Diff
Add make gen-certificate for generate DEMO certificate
parent
2e6ce59d
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile.am
+18
-0
18 additions, 0 deletions
Makefile.am
with
18 additions
and
0 deletions
Makefile.am
+
18
−
0
View file @
d26a1030
...
...
@@ -24,6 +24,13 @@ SUBDIRS = lib tests examples
ACLOCAL_AMFLAGS
=
-I
m4
CERTIFICATE_PASS
=
QUIC
CERTIFICATE_INFO
=
'/CN=localhost/O=QUIC./C=FR'
CERTIFICATE_KEY
=
cert/server.key
CERTIFICATE_TMP_KEY
=
$(
CERTIFICATE_KEY
)
.tmp
CERTIFICATE_CSR_FILE
=
cert/server.csr
CERTIFICATE_CRT_FILE
=
cert/server.crt
# Format source files using clang-format. Don't format source files
# under third-party directory since we are not responsible for thier
# coding style.
...
...
@@ -32,3 +39,14 @@ clang-format:
test
-z
$${
CLANGFORMAT
}
&&
CLANGFORMAT
=
"clang-format"
;
\
$${
CLANGFORMAT
}
-i
lib/
*
.
{
c,h
}
lib/includes/ngtcp2/
*
.h
\
examples/
*
.
{
cc,h
}
#generate certificate (ONLY USE FOR DEMO !)
gen-certificate
:
mkdir
-p
cert
openssl genrsa
-aes256
-passout
pass:
$(
CERTIFICATE_PASS
)
-out
$(
CERTIFICATE_KEY
)
2048
openssl req
-passin
pass:
$(
CERTIFICATE_PASS
)
-new
-key
$(
CERTIFICATE_KEY
)
-out
$(
CERTIFICATE_CSR_FILE
)
-subj
$(
CERTIFICATE_INFO
)
cp
$(
CERTIFICATE_KEY
)
$(
CERTIFICATE_TMP_KEY
)
openssl rsa
-passin
pass:
$(
CERTIFICATE_PASS
)
-in
$(
CERTIFICATE_TMP_KEY
)
-out
$(
CERTIFICATE_KEY
)
openssl x509
-req
-days
30
-in
$(
CERTIFICATE_CSR_FILE
)
-signkey
$(
CERTIFICATE_KEY
)
-out
$(
CERTIFICATE_CRT_FILE
)
rm
$(
CERTIFICATE_TMP_KEY
)
This diff is collapsed.
Click to expand it.
Preview
0%
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