Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Merge requests
!34
Resolve "Test AMQP"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Test AMQP"
122-test-amqp
into
dev
Overview
0
Commits
30
Pipelines
0
Changes
186
Merged
Martin Weise
requested to merge
122-test-amqp
into
dev
3 years ago
Overview
0
Commits
30
Pipelines
0
Changes
186
Closes #122
0
0
Merge request reports
Compare
dev
version 6
0d10d061
3 years ago
version 5
849ce45c
3 years ago
version 4
f8fe8c42
3 years ago
version 3
078114e1
3 years ago
version 2
fda17d02
3 years ago
version 1
cb13b5a6
3 years ago
dev (base)
and
latest version
latest version
920a3bd3
30 commits,
3 years ago
version 6
0d10d061
29 commits,
3 years ago
version 5
849ce45c
28 commits,
3 years ago
version 4
f8fe8c42
27 commits,
3 years ago
version 3
078114e1
26 commits,
3 years ago
version 2
fda17d02
25 commits,
3 years ago
version 1
cb13b5a6
24 commits,
3 years ago
186 files
+
5464
−
5280
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
186
.fda-deployment/fda-authentication-service/install_cert
+
11
−
7
View file @ 920a3bd3
Edit in single-file editor
Open in Web IDE
Show full file
#!/bin/bash
TMP_CERT_LOCATION
=
"/root/keys/
cert.p12
"
TMP_SAML_LOCATION
=
"/root/keys/
saml.p12
"
TMP_CERT_LOCATION
=
"/root/keys/"
TMP_SAML_LOCATION
=
"/root/keys/"
KEY_STORE_LOCATION
=
"/tmp/dbrepo.jks"
KEY_STORE_PASS
=
"dbrepo"
CERT_LOCATION
=
"/etc/letsencrypt/live/dbrepo.ossdip.at"
@@ -8,25 +8,29 @@ SAML_KEY="/root/keys/saml_sign.key"
SAML_PUB
=
"/root/keys/saml_sign.cer"
TU_SAML_CERT
=
"./fda-authentication-service/rest-service/src/main/resources/saml/tu.crt"
# PLACE
sudo mkdir
-p
"
${
TMP_CERT_LOCATION
}
"
sudo mkdir
-p
"
${
TMP_SAML_LOCATION
}
"
# REQUEST
sudo
certbot certonly
--standalone
--preferred-challenges
http
-d
dbrepo.ossdip.at
\
-m
martin.weise@tuwien.ac.at
--agree-tos
--keep-until-expiring
# CONVERT PKCS12
sudo
openssl pkcs12
-export
-out
"
${
TMP_SAML_LOCATION
}
"
-in
"
${
SAML_PUB
}
"
\
sudo
openssl pkcs12
-export
-out
"
${
TMP_SAML_LOCATION
}
/saml.p12
"
-in
"
${
SAML_PUB
}
"
\
-inkey
"
${
SAML_KEY
}
"
-passout
"pass:
${
KEY_STORE_PASS
}
"
# CONVERT PKCS12
sudo
openssl pkcs12
-export
-out
"
${
TMP_CERT_LOCATION
}
"
-in
"
${
CERT_LOCATION
}
/cert.pem"
\
sudo
openssl pkcs12
-export
-out
"
${
TMP_CERT_LOCATION
}
/cert.p12
"
-in
"
${
CERT_LOCATION
}
/cert.pem"
\
-inkey
"
${
CERT_LOCATION
}
/privkey.pem"
-passout
"pass:
${
KEY_STORE_PASS
}
"
# FIX PERMISSIONS
sudo chmod
644
"
${
TMP_CERT_LOCATION
}
"
sudo chmod
644
"
${
TMP_SAML_LOCATION
}
"
sudo chmod
-R
644
"
${
TMP_CERT_LOCATION
}
"
sudo chmod
-R
644
"
${
TMP_SAML_LOCATION
}
"
# IMPORT SSL SIGN PRIVKEY
sudo
keytool
-noprompt
-importkeystore
-deststorepass
"
${
KEY_STORE_PASS
}
"
-destkeypass
"
${
KEY_STORE_PASS
}
"
\
-destkeystore
"
${
KEY_STORE_LOCATION
}
"
-srckeystore
"
${
TMP_CERT_LOCATION
}
"
-srcstoretype
PKCS12
\
-destkeystore
"
${
KEY_STORE_LOCATION
}
"
-srckeystore
"
${
TMP_CERT_LOCATION
}
/cert.p12
"
-srcstoretype
PKCS12
\
-srcstorepass
"
${
KEY_STORE_PASS
}
"
-alias
1
-destalias
ssl
# IMPORT SAML MESSAGE SIGN PRIVKEY
Loading