Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
caosdb
Software
caosdb-server
Commits
1adac983
Commit
1adac983
authored
4 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
DOC: add information on how to create the keystore from cert files
parent
6449bbd2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README_SETUP.md
+8
-3
8 additions, 3 deletions
README_SETUP.md
with
8 additions
and
3 deletions
README_SETUP.md
+
8
−
3
View file @
1adac983
...
...
@@ -67,11 +67,16 @@ server:
2.
Create an SSL certificate somewhere with a
`Java Key Store`
file. For
self-signed certificates (not recommended for production use) you can do:
-
`mkdir certificates; cd certificates`
-
`keytool -genkey -keyalg RSA -alias selfsigned -keystore
keystore
.jks -validity 375 -keysize 2048 -ext san=dns:localhost`
-
`keytool -genkey -keyalg RSA -alias selfsigned -keystore
caosdb
.jks -validity 375 -keysize 2048 -ext san=dns:localhost`
Replace
`localhost`
by your host name, if you want.
-
`keytool -importkeystore -srckeystore
keystore
.jks -destkeystore
keystore
.p12 -deststoretype PKCS12 -srcalias selfsigned`
-
`openssl pkcs12 -in
keystore
.p12 -nokeys -out cert.pem`
-
`keytool -importkeystore -srckeystore
caosdb
.jks -destkeystore
caosdb
.p12 -deststoretype PKCS12 -srcalias selfsigned`
-
`openssl pkcs12 -in
caosdb
.p12 -nokeys -out cert.pem`
-
You can check the content of the certificate with
`openssl x509 -in cert.pem -text`
Alternatively, you can create a keystore from certificate files that you already have:
-
`openssl pkcs12 -export -inkey privkey.pem -in fullchain.pem -out all-certs.pkcs12`
-
`keytool -importkeystore -srckeystore all-certs.pkcs12 -srcstoretype PKCS12 -deststoretype pkcs12 -destkeystore caosdb.jks`
3.
Copy
`conf/core/server.conf`
to
`conf/ext/server.conf`
and change it
appropriately:
*
Setup for MySQL back-end: Assuming that the mysql back-end is installed
...
...
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