Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marathon SSL and Basic Access Authentication #4783

Closed
alexisCata opened this issue Dec 6, 2016 · 6 comments
Closed

Marathon SSL and Basic Access Authentication #4783

alexisCata opened this issue Dec 6, 2016 · 6 comments

Comments

@alexisCata
Copy link

alexisCata commented Dec 6, 2016

I'm following this doc:
https://github.com/mesosphere/marathon/blob/master/docs/docs/ssl-basic-access-authentication.md
I have researched on Internet but I can't find nothing related...

In the step 3. Combine the key and certificate files into a PKCS12 format file...

$ openssl pkcs12 -inkey marathon.key
-passin "env:MARATHON_KEY_PASSWORD"
-name marathon
-in trusted.pem
-password "env:MARATHON_PKCS_PASSWORD"
-chain -CAfile "trustedCA.crt"
-export -out marathon.pkcs12

Where "trustedCA.crt" come from? There is no clear info in the docs
Is a cert of my server?
I have created a cert in my server and added but when I executed the command and get the error:

Error self signed certificate getting chain.

Any help will be appreciated

@janisz
Copy link
Contributor

janisz commented Dec 6, 2016

I generate self signed certs as follow without chain.

mkdir -p /etc/marathon/ssl
cd /etc/marathon/ssl
export MARATHON_SSL_KEYSTORE_PASSWORD=jks_pass
keytool -keystore marathon.jks -deststorepass $MARATHON_SSL_KEYSTORE_PASSWORD -alias marathon -genkey -keyalg RSA
cat << EOF > /etc/default/marathon
MARATHON_SSL_KEYSTORE_PATH=/etc/marathon/ssl/marathon.jks
MARATHON_SSL_KEYSTORE_PASSWORD=$MARATHON_SSL_KEYSTORE_PASSWORD
EOF

@unterstein
Copy link
Contributor

Thanks @janisz for the answer.
I`ll interpret in your thumbs up, that this solves your issue? I would like to use your ticket as marker that we should improve the documentation on this topic.

@alexisCata
Copy link
Author

alexisCata commented Dec 20, 2016 via email

@alexisCata
Copy link
Author

alexisCata commented Dec 20, 2016 via email

@meichstedt
Copy link
Contributor

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-1916. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

1 similar comment
@meichstedt
Copy link
Contributor

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-1916. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

@mesosphere mesosphere locked and limited conversation to collaborators Mar 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants