where the is some mgmt user, possibly 'root', 'admin' or some previously created mgmt user.
This cli package is installed on all ECS nodes and is also available as a tar file available for download from our community site which can be run from a client machine. Here is the latest ECS 2.2 download link: https://community.emc.com/docs/DOC-52139
This package requires the python "requests" module to be installed (pip install requests)
Are you looking to install an SSL certificate for the management API/GUI or for the data path (S3, Swift, Atmos)? You can use the CLI to configure certificates. coneryj can help you out.
ideally we want a specified domain and certificates for both the management api.gui and the data path - in our case S3.
I was able to install a certificate and set the server name for the nginx webserver, however the configuration for the data path - storageos is not clear.
I'll have a look at the api - I see there is an item in the REST API /object-cert
I was able to use the api as you suggest and both the update and show calls appeared to work, the example below is listing the certificate.
However when I connect using Cloudberry to a S3 endpoint I still get the "DataService" self signed certificate.
This is after both connecting before and after a restarting the docker container.
The modification date for the file /opt/storageos/conf/keystore doesn't appear to change (which doesn't worry me if that is not where they are stored); but the encoded certificate as shown below does change.
Glad it works! Sorry, we should have mentioned that it can take up to 2 hours for the new certificate to propagate to all nodes (that's the cache TTL for the cert).
Our CA provides certificate in DER encoded form as well as Base 64 encoded form. Which one of these is supported by ECS ?
Also, we get a certificate and then a certificate chain(a *.p7b file). For the -certificatevaluefile, should one use the certificate file or the certificate chain file ?
While installing the SSL for 443, I did not add the "selfsign false" at the end. The command did go through successfully and a "keystore show" command does list the certficate.
However, when I now try to access it over a browser, it still defaults to the self signed cert installed earlier. Is there a way to delete the self signed cert and force ECS to use the SSL cert provided by the CA ?coneryj
coneryj
22 Posts
11058
0
Posted February 24th, 2016 06:00
There is a python cli in /opt/storageos/bin/cli with a command called 'keystore' that has two subcommands that can be used: 'show' and 'update'.
to update the object cert:
python ecscli.py keystore update -h -p -cookiefile -certificatevaluefile -privatekeyvaluefile -selfsign
The -ipaddresses arg is optional for specifying a rollout order is generally not needed.
The --help arg for info on usage
In order to use any of the ecscli.py commands, you first needed to have generated a cookiefile that contains an auth token.
python ecscli.py authenticate -hostname -port 4443 -cookiedir -username
where the is some mgmt user, possibly 'root', 'admin' or some previously created mgmt user.
This cli package is installed on all ECS nodes and is also available as a tar file available for download from our community site which can be run from a client machine. Here is the latest ECS 2.2 download link: https://community.emc.com/docs/DOC-52139
This package requires the python "requests" module to be installed (pip install requests)