code: func SaveRootCA(rootCA RootCA, paths CertPaths) error {
  	// Make sure the necessary dirs exist and they are writable
  	err := os.MkdirAll(filepath.Dir(paths.Cert), 0755)
  	if err != nil {
  		return err
  	}
  
  	// If the root certificate got returned successfully, save the rootCA to disk.
  	return ioutils.AtomicWriteFile(paths.Cert, rootCA.Certs, 0644)
  }
docs: // SaveRootCA saves a RootCA object to disk