public void WithPublicKey(string pfxPassword, string pfxPath) { _encryptionPreferences.EncryptionType = EncryptionType.PublicKeyEncryption; _encryptionPreferences.PublicKeyEncryption = new PublicKeyEncryption { PfxPassword = pfxPassword, PfxPath = pfxPath }; }