Signed-off-by: Daniel Nephin <dnephin@docker.com>
and add a test. Signed-off-by: Ying Li <ying.li@docker.com>
Split out a swarmCAOptions struct for options that are shared between the ca and update commands. Change the 'no trust root' message to an error. Add some unit tests. Signed-off-by: Daniel Nephin <dnephin@docker.com>