Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-ocserv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docker-ocserv
Commits
b9e9f50c
Commit
b9e9f50c
authored
Feb 10, 2015
by
Tommy Lau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Indent template file
parent
b19c99eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
docker-entrypoint.sh
docker-entrypoint.sh
+18
-18
No files found.
docker-entrypoint.sh
View file @
b9e9f50c
...
@@ -29,26 +29,26 @@ if [ ! -f /etc/ocserv/server-key.pem ] || [ ! -f /etc/ocserv/server-cert.pem ];
...
@@ -29,26 +29,26 @@ if [ ! -f /etc/ocserv/server-key.pem ] || [ ! -f /etc/ocserv/server-cert.pem ];
# No certification found, generate one
# No certification found, generate one
cd
/etc/ocserv
cd
/etc/ocserv
certtool
--generate-privkey
--outfile
ca-key.pem
certtool
--generate-privkey
--outfile
ca-key.pem
cat
<<
_EOF_CA_
> ca.tmpl
cat
>
ca.tmpl
<<-
EOCA
cn = "
$CA_CN
"
cn = "
$CA_CN
"
organization = "
$CA_ORG
"
organization = "
$CA_ORG
"
serial = 1
serial = 1
expiration_days =
$CA_DAYS
expiration_days =
$CA_DAYS
ca
ca
signing_key
signing_key
cert_signing_key
cert_signing_key
crl_signing_key
crl_signing_key
_EOF_CA_
EOCA
certtool
--generate-self-signed
--load-privkey
ca-key.pem
--template
ca.tmpl
--outfile
ca-cert.pem
certtool
--generate-self-signed
--load-privkey
ca-key.pem
--template
ca.tmpl
--outfile
ca-cert.pem
certtool
--generate-privkey
--outfile
server-key.pem
certtool
--generate-privkey
--outfile
server-key.pem
cat
<<
_EOF_SRV_
> server.tmpl
cat
>
server.tmpl
<<-
EOSRV
cn = "
$SRV_CN
"
cn = "
$SRV_CN
"
organization = "
$SRV_ORG
"
organization = "
$SRV_ORG
"
expiration_days =
$SRV_DAYS
expiration_days =
$SRV_DAYS
signing_key
signing_key
encryption_key #only if the generated key is an RSA one
encryption_key #only if the generated key is an RSA one
tls_www_server
tls_www_server
_EOF_SRV_
EOSRV
certtool
--generate-certificate
--load-privkey
server-key.pem
--load-ca-certificate
ca-cert.pem
--load-ca-privkey
ca-key.pem
--template
server.tmpl
--outfile
server-cert.pem
certtool
--generate-certificate
--load-privkey
server-key.pem
--load-ca-certificate
ca-cert.pem
--load-ca-privkey
ca-key.pem
--template
server.tmpl
--outfile
server-cert.pem
# Create a test user
# Create a test user
...
...
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