public BiKeyPair HandleKey(HandleKeyParams spec) { if (spec.Key == null) { spec.Key = GetDefaultPrivateKeyPath(spec.KeyPath, spec.Prefix, spec.Directory); } var signKey = new BiKeyPair(spec.Key); if (!signKey.PrivateFile.Exists) BiKeyPair.CreateKey(Path.Combine(signKey.Location, signKey.Name).ToAbsoluteFilePath(), _pboTools); if (spec.CopyKey) CopyKeyToKeysSubfolder(signKey, spec.Directory); return signKey; }
public BiKeyPair HandleKey(HandleKeyParams spec) { if (spec.Key == null) { spec.Key = GetDefaultPrivateKeyPath(spec.KeyPath, spec.Prefix, spec.Directory); } var signKey = new BiKeyPair(spec.Key); if (!signKey.PrivateFile.Exists) { BiKeyPair.CreateKey(Path.Combine(signKey.Location, signKey.Name).ToAbsoluteFilePath(), _pboTools); } if (spec.CopyKey) { CopyKeyToKeysSubfolder(signKey, spec.Directory); } return(signKey); }