Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FDO Local Testbed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
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
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
fdo
FDO Local Testbed
Commits
819d47b1
Verified
Commit
819d47b1
authored
6 months ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
ENH: make cert in docker
parent
d1056a58
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
linkahead/Makefile
+2
-1
2 additions, 1 deletion
linkahead/Makefile
linkahead/cert.sh
+6
-3
6 additions, 3 deletions
linkahead/cert.sh
with
8 additions
and
4 deletions
linkahead/Makefile
+
2
−
1
View file @
819d47b1
...
...
@@ -8,4 +8,5 @@ stop:
docker compose
rm
-vsf
cert
:
.env
./cert.sh
rm
-r
cert
||
true
docker run
-e
CERT_OWNER
=
$$
UID
-v
./:/run/
-w
/run eclipse-temurin:21 /run/cert.sh
This diff is collapsed.
Click to expand it.
linkahead/cert.sh
+
6
−
3
View file @
819d47b1
#!/bin/sh
#!/bin/
ba
sh
source
.env
export
KEYPW
=
"
$CERTIFICATES_KEY_PASSWORD
"
...
...
@@ -6,7 +6,7 @@ export DOIP_SERVICE_ID="${DOIP_SERVICE_ID/\//\\/}"
export
DNS_HOST_NAME
mkdir
-p
cert
c
d
cert
push
d
cert
# create encrypted private key
openssl genrsa
-aes256
-out
key.pem
-passout
env
:KEYPW 2048
...
...
@@ -23,4 +23,7 @@ openssl pkcs12 -export -inkey key.pem -in cert.pem -out cert.pkcs12 -passin env:
# convert pkcs12 store to java keystore
keytool
-importkeystore
-srckeystore
cert.pkcs12
-srcstoretype
PKCS12
-deststoretype
pkcs12
-destkeystore
keystore.jks
-srcstorepass
"
${
KEYPW
}
"
-destkeypass
"
${
KEYPW
}
"
-deststorepass
"
${
KEYPW
}
"
cd
../
popd
if
[
-n
"
$CERT_OWNER
"
]
;
then
chown
-R
"
$CERT_OWNER
:
$CERT_OWNER
"
cert
fi
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