Closed mojoflux closed 4 years ago
Remove "cert_alias" : "Training"
from "server" attributes in the JSON. If cert_alias attribute is specified, Chef looks for keystore_file, and it is not set.
Thanks Pavel, I think I'm getting the wrong end of the stick though.
The "cert_alias" : "Training"
is being inherited from something, I've tried commenting out the line cert_alias = admin_client.get_server_ssl_certificate(machine_name)
in C:\chef\cookbooks\arcgis\providers\server.rb as that's where it appears it's defined, but it's still giving errors.
Is there anywhere in particular I should be setting up for a self-signed certificate install?
If you don't specify cert_alias and keystore_file in "server" attributes, Chef should not try to install the certificate on server. By default server already uses a self-signed certificate for HTTPs listener, so arcgis cookbook does not support generating certificates for server.
I'm not sure where the cookbook inherits "Training" from. The default value for server cert_alias is the server domain name (FQDN of the machine by default) .
Thanks Pavel, I've realised where my error was coming from though, feel like an idiot!
I forgot to remove the comma from the previous line in webgis-server.json after removing the keystore lines.
thanks!
I've been tinkering around with this for a bit now but keep getting stuck on the 'action :configure_https' section. It goes through the IIS setup, generates the personal certificate without any issues, goes through the Server install, and then...this:
Any ideas what I'm doing wrong?