You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
trying to use tower-cli to input the saml cert private key..
I got the public cert to be accepted by removing the headers and removing newlines.
For the private key I tried the following
first just removed the headers of the key and removed the newlines
then just tried without doing anything.
All attempts say key is invalid. But if I input the key into the UI it works.
Here is the output I get, key is redacted
# first just try remove new lines
(tower-cli)% tower-cli setting modify SOCIAL_AUTH_SAML_SP_PRIVATE_KEY `cat aws.key | tr -d '\n'`
Error: no such option: -----BEGIN
# then try remove --begin private key -- and --end private key -- headers
(tower-cli) :% tower-cli setting modify SOCIAL_AUTH_SAML_SP_PRIVATE_KEY `sed -e '/^-/d' aws.key | tr -d '\n'`
Error: The Tower server claims it was sent a bad request.
PATCH https://mytowerserver/api/v1/settings/all/
Params: None
Data: {"SOCIAL_AUTH_SAML_SP_PRIVATE_KEY": "[removed]"}
Response: {"SOCIAL_AUTH_SAML_SP_PRIVATE_KEY":["Invalid certificate or key: u'MIIEvQIBADA[removed]'..."]}
The text was updated successfully, but these errors were encountered:
trying to use tower-cli to input the saml cert private key..
I got the public cert to be accepted by removing the headers and removing newlines.
For the private key I tried the following
All attempts say key is invalid. But if I input the key into the UI it works.
Here is the output I get, key is redacted
The text was updated successfully, but these errors were encountered: