Open tenajsystems opened 7 years ago
Not currently. The certificates need to be converted into a string which the REST API will accept. I use sed to do this using: sed -E ':a;N;$!ba;s/\r*\n/\\n/g' <file>
Is this a feature that will be coming soon?
Sure, I'll consider this a Feature Request ;-)
@TuxInvader Would you by any chance know which directory ssl certs are uploaded to when you upload a cert for the Admin Server by going to System > Security > SSL Certiticate. I am looking into managing this with puppet. Also, how do i upload intermediate certs into the brocade catalog using the module?
@tenajsystems I believe you just concatenate the inters with the certificate in the same file.
The files on disk are in $ZEUSHOME/zxtm/conf/ssl/server_keys/
named <certname>.public
and <certname>.private
There is also an entry for them in /usr/local/zeus/zxtm/conf/ssl/server_keys_config
. Eg:
Example-Cert!public %zeushome%/zxtm/conf/ssl/server_keys/Example-Cert.public
Example-Cert!private %zeushome%/zxtm/conf/ssl/server_keys/Example-Cert.private
Example-Cert!request %zeushome%/zxtm/conf/ssl/server_keys/Example-Cert.request
Example-Cert!createdvia software
Example-Cert!protection software
Example-Cert!managed yes
Example-Cert!note
Editing these files manually is not a supported mechanism for making changes though, so be careful!!
Any changes you do make will need to be replicated through the cluster by executing $ZEUSHOME/zxtm/bin/replicate_config
@TuxInvader, isn't that only applicable to the ssl certs that gets uploaded in to the Catalog (Catalog > SSL > SSl Server Certificates catalog)?
I am referring to System > Security > SSL Certificate? which is for the Admin Server url
@tenajsystems Those keys are in the admin directory: $ZEUSHOM/admin/etc/
@TuxInvader, is there a way to also upload Intermediate Certificate with the ssl certs that you upload using this class brocadevtm::ssl_server_keys
?
Is there a way to upload ssl certs into brocade-vTM using the certificate and key file itself as to using the contents of the cert and key file?