Moved TLS credentials into config, update references