public void ExportCertificate(string certRef, bool pfxOnly = false) { GetVaultPath(); if (!Directory.Exists(VaultFolderPath + "\\" + LocalDiskVault.ASSET)) { Directory.CreateDirectory(VaultFolderPath + "\\" + LocalDiskVault.ASSET); } powershellManager.ExportCertificate(certRef, this.VaultFolderPath, pfxOnly); }