Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xta-test-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
lib
xta-test-server
Commits
e6610a4c
Commit
e6610a4c
authored
5 months ago
by
Jan Zickermann
Browse files
Options
Downloads
Patches
Plain Diff
#2
OZG-7121 Add fetch-trust-store script
parent
39d3f501
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!3
Resolve "xta-test-server helm-chart mit Deployment und Keystore-Secrets/Certificate-Resources"
Pipeline
#1341
skipped
Stage: publish
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/.gitignore
+2
-0
2 additions, 0 deletions
scripts/.gitignore
scripts/fetch-trust-store.sh
+15
-0
15 additions, 0 deletions
scripts/fetch-trust-store.sh
with
17 additions
and
0 deletions
scripts/.gitignore
0 → 100644
+
2
−
0
View file @
e6610a4c
*.crt
*.jks
\ No newline at end of file
This diff is collapsed.
Click to expand it.
scripts/fetch-trust-store.sh
0 → 100755
+
15
−
0
View file @
e6610a4c
#!/bin/bash
set
-e
NAMESPACE
=
${
NAMESPACE
:-
by
-enable-dev
}
echo
"[1.0] Find xta-test-server pod in namespace
$NAMESPACE
"
XTA_TEST_SERVER_POD
=
$(
kubectl get pods
-n
"
$NAMESPACE
"
-l
app.kubernetes.io/name
=
xta-test-server
-o
jsonpath
=
'{.items[0].metadata.name}'
)
echo
"[1.1] Fetch truststore from xta-test-server pod"
kubectl
cp
"
$NAMESPACE
/
$XTA_TEST_SERVER_POD
:/store/truststore.jks"
xta-test-truststore.jks
echo
"[2.0] Show certificate in truststore xta-test-truststore.jks"
keytool
-exportcert
-keystore
xta-test-truststore.jks
-storepass
password
-alias
xta-test-root-ca
-file
xta-test-root-ca.crt
openssl x509
-in
xta-test-root-ca.crt
-text
-noout
\ No newline at end of file
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