// Stop stops the CA calling to the server Shutdown method.
Stop stops the CA calling to the server Shutdown method.
// Stop stops the CA calling to the server Shutdown method .
func (ca *CA) Stop() error {
	ca.renewer.Stop()
	if err := ca.auth.Shutdown(); err != nil {
		log.Printf("error stopping ca.Authority: %+v\n", err)
	}
	var insecureShutdownErr error
	if ca.insecureSrv != nil {
		insecureShutdownErr = ca.insecureSrv.Shutdown()
	}
	secureErr := ca.srv.Shutdown()
	if insecureShutdownErr != nil {
		return insecureShutdownErr
	}
	return secureErr
}
func ( ca * CA ) Stop ( ) error { ca . renewer . Stop ( ) if err := ca . auth . Shutdown ( ) ; err != nil { log . Printf ( " \n " , err ) } var insecureShutdownErr error if ca . insecureSrv != nil { insecureShutdownErr = ca . insecureSrv . Shutdown ( ) } secureErr := ca . srv . Shutdown ( ) if insecureShutdownErr != nil { return insecureShutdownErr } return secureErr }
Stop stops the CA calling to the server Shutdown method.
Stop stops the CA calling to the server Shutdown method .