├── .gitignore ├── Add_User.gif ├── Capture.PNG ├── Create_DB.gif ├── KeyManagerUI.sln ├── KeyManagerUI ├── Certmanager.cs ├── KeyManagerUI.csproj ├── KeyManagerUIClass.cs ├── KeyManagerUIForm.Designer.cs ├── KeyManagerUIForm.cs ├── KeyManagerUIForm.resx ├── Keyring.cs └── Properties │ └── AssemblyInfo.cs ├── LICENSE ├── Open_DB.gif ├── README.md └── SmartCard.gif /.gitignore: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # This .gitignore file was automatically created by Microsoft(R) Visual Studio. 3 | ################################################################################ 4 | 5 | .vs/ 6 | obj/ 7 | bin/ 8 | *.zip 9 | *.plgx 10 | -------------------------------------------------------------------------------- /Add_User.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sbidy/KeePass-KeyManager/80fec19e116a93ca4631017f8a80c5c78a6308f7/Add_User.gif -------------------------------------------------------------------------------- /Capture.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sbidy/KeePass-KeyManager/80fec19e116a93ca4631017f8a80c5c78a6308f7/Capture.PNG -------------------------------------------------------------------------------- /Create_DB.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sbidy/KeePass-KeyManager/80fec19e116a93ca4631017f8a80c5c78a6308f7/Create_DB.gif -------------------------------------------------------------------------------- /KeyManagerUI.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27130.2010 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyManagerUI", "KeyManagerUI\KeyManagerUI.csproj", "{20ADD178-ADF3-4589-AD7B-EE38E02E861D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {20ADD178-ADF3-4589-AD7B-EE38E02E861D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {20ADD178-ADF3-4589-AD7B-EE38E02E861D}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {20ADD178-ADF3-4589-AD7B-EE38E02E861D}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {20ADD178-ADF3-4589-AD7B-EE38E02E861D}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {06426689-554B-4764-819F-13BB1FFC7524} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /KeyManagerUI/Certmanager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Security.Cryptography; 5 | using System.Security.Cryptography.Pkcs; 6 | using System.Security.Cryptography.X509Certificates; 7 | using System.Security.Cryptography.Xml; 8 | using System.Text; 9 | using System.Windows.Forms; 10 | 11 | namespace KeyManagerUI 12 | { 13 | class Certmanager 14 | { 15 | public X509Certificate2Collection applied_certs; 16 | public X509Certificate2Collection keyring_certs; 17 | private HashSet _not_applied_certs = new HashSet(); 18 | public HashSet not_applied_certs 19 | { 20 | get { return _not_applied_certs; } 21 | } 22 | public Certmanager () 23 | { 24 | applied_certs = new X509Certificate2Collection(); 25 | keyring_certs = new X509Certificate2Collection(); 26 | } 27 | 28 | /// 29 | /// Encrypt data for the specified set of certificates. 30 | /// Adapted from http://msdn.microsoft.com/en-us/library/bb924547.aspx 31 | /// 32 | /// Data to encrypt 33 | /// Certificates to encrypt for 34 | /// Encrypted blob 35 | public byte[] EncryptMsg(Byte[] msg, X509Certificate2Collection recipientCerts) 36 | { 37 | // Place the message in a ContentInfo object. 38 | // This is required to build an EnvelopedCms object. 39 | ContentInfo contentInfo = new ContentInfo(msg); 40 | 41 | recipientCerts = checkCerts(recipientCerts); 42 | 43 | if (recipientCerts != null) 44 | { 45 | // Instantiate an EnvelopedCms object with the ContentInfo 46 | // above. 47 | // Has default SubjectIdentifierType IssuerAndSerialNumber. 48 | // Force usage of AES256 instead of 3DES 49 | Oid aes256 = Oid.FromFriendlyName("aes256", OidGroup.EncryptionAlgorithm); 50 | EnvelopedCms envelopedCms = new EnvelopedCms(contentInfo, new AlgorithmIdentifier(aes256)); 51 | 52 | // Formulate a CmsRecipient object collection that 53 | // represent information about the recipients 54 | // to encrypt the message for. 55 | if (recipientCerts.Count > 0) 56 | { 57 | CmsRecipientCollection recips = new CmsRecipientCollection(SubjectIdentifierType.IssuerAndSerialNumber, recipientCerts); 58 | 59 | // Encrypt the message for the recipient. 60 | envelopedCms.Encrypt(recips); 61 | 62 | // The encoded EnvelopedCms message contains the message 63 | // ciphertext and the information about each recipient 64 | // that the message was enveloped for. 65 | return envelopedCms.Encode(); 66 | } 67 | } 68 | else 69 | { 70 | throw new CryptographicException(); 71 | } 72 | return null; 73 | } 74 | /// 75 | /// Decrypt a message using a private key available on the system. 76 | /// 77 | /// Encrypted blob 78 | /// Decrypted data, or null if there was an error 79 | public byte[] DecryptMsg(byte[] encodedEnvelopedCms) 80 | { 81 | // Prepare object in which to decode and decrypt. 82 | EnvelopedCms envelopedCms = new EnvelopedCms(); 83 | 84 | // Decode the message. 85 | envelopedCms.Decode(encodedEnvelopedCms); 86 | 87 | X509Store myStore = new X509Store(StoreName.My); 88 | myStore.Open(OpenFlags.ReadOnly); 89 | envelopedCms.Decrypt(myStore.Certificates); 90 | myStore.Close(); 91 | 92 | // The decrypted message occupies the ContentInfo property 93 | // after the Decrypt method is invoked. 94 | return envelopedCms.ContentInfo.Content; 95 | } 96 | /// 97 | /// Decrypt a message using a private key available on the system. 98 | /// 99 | /// Encrypted blob 100 | /// Decrypted data, or null if there was an error 101 | public byte[] DecryptMsg2(byte[] encodedEnvelopedCms) 102 | { 103 | // Prepare object in which to decode and decrypt. 104 | EnvelopedCms envelopedCms = new EnvelopedCms(); 105 | 106 | // Decode the message. 107 | envelopedCms.Decode(encodedEnvelopedCms); 108 | envelopedCms.Decrypt(); 109 | 110 | // The decrypted message occupies the ContentInfo property 111 | // after the Decrypt method is invoked. 112 | return envelopedCms.ContentInfo.Content; 113 | } 114 | public void getRecipient(byte[] encodedEnvelopedCms) 115 | { 116 | _not_applied_certs = new HashSet(); 117 | // Prepare object in which to decode and decrypt. 118 | EnvelopedCms envelopedCms = new EnvelopedCms(); 119 | // Decode the message. 120 | envelopedCms.Decode(encodedEnvelopedCms); 121 | 122 | RecipientInfoCollection recips = envelopedCms.RecipientInfos; 123 | 124 | foreach (RecipientInfo info in recips) 125 | { 126 | X509IssuerSerial serial = (X509IssuerSerial)info.RecipientIdentifier.Value; 127 | X509Certificate2Collection found_certs = FindCerts(serial.SerialNumber.ToString()); 128 | found_certs.AddRange(applied_certs); 129 | 130 | if (keyring_certs.Count > 0) 131 | found_certs = keyring_certs.Find(X509FindType.FindBySerialNumber, serial.SerialNumber.ToString(), true); 132 | 133 | if (found_certs.Count == 0) 134 | _not_applied_certs.Add(serial.SerialNumber.ToString()); 135 | 136 | applied_certs.AddRange(found_certs); 137 | } 138 | applied_certs = removeDuplicates(applied_certs); 139 | } 140 | /// 141 | /// Search for certificates in the local cert stores 142 | /// 143 | /// The certificate serial number 144 | /// A collection of X509 certificates 145 | public X509Certificate2Collection FindCerts(string serialNumber) 146 | { 147 | X509Store addrBookStore = new X509Store(StoreName.AddressBook, StoreLocation.CurrentUser); 148 | addrBookStore.Open(OpenFlags.ReadOnly); 149 | 150 | X509Store myStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 151 | myStore.Open(OpenFlags.ReadOnly); 152 | 153 | X509Certificate2Collection allCerts = addrBookStore.Certificates; 154 | allCerts.AddRange(myStore.Certificates); 155 | 156 | addrBookStore.Close(); 157 | myStore.Close(); 158 | 159 | var matchingCertificates = allCerts.Find(X509FindType.FindBySerialNumber, serialNumber, true); 160 | 161 | return matchingCertificates; 162 | } 163 | /// 164 | /// Deletes the duplicates entry's in a X509Certifacte2Collection 165 | /// 166 | /// The input collection 167 | /// Output collection without duplicates 168 | public X509Certificate2Collection removeDuplicates(X509Certificate2Collection source) 169 | { 170 | X509Certificate2Collection output = new X509Certificate2Collection(); 171 | HashSet serials = new HashSet(); 172 | 173 | foreach (X509Certificate2 cert in source) 174 | { 175 | serials.Add(cert.SerialNumber); 176 | } 177 | 178 | foreach (string sn in serials) 179 | { 180 | foreach (X509Certificate2 cert in source) 181 | { 182 | if (cert.SerialNumber == sn && (output.Contains(cert) == false)) 183 | { 184 | output.Add(cert); 185 | } 186 | } 187 | } 188 | return output; 189 | } 190 | /// 191 | /// Shows the certificate UI and adds the selected certificates to the applied cert collection 192 | /// 193 | public void addFromStore() 194 | { 195 | X509Store addrBookStore = new X509Store(StoreName.AddressBook, StoreLocation.CurrentUser); 196 | addrBookStore.Open(OpenFlags.ReadOnly); 197 | 198 | X509Store myStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); 199 | myStore.Open(OpenFlags.ReadOnly); 200 | 201 | X509Certificate2Collection allCerts = addrBookStore.Certificates; 202 | allCerts.AddRange(myStore.Certificates); 203 | 204 | addrBookStore.Close(); 205 | myStore.Close(); 206 | 207 | X509Certificate2Collection fcollection = allCerts; //.Find(X509FindType.FindByTimeValid, DateTime.Now, false); 208 | fcollection = fcollection.Find(X509FindType.FindByKeyUsage, X509KeyUsageFlags.KeyEncipherment, false); 209 | X509Certificate2Collection store_certs = X509Certificate2UI.SelectFromCollection(fcollection, "Select certificate", "Select a certificate from local Microsoft Windows store:", X509SelectionFlag.MultiSelection); 210 | 211 | applied_certs.AddRange(store_certs); 212 | } 213 | /// 214 | /// Checks the certificate for revocation and validity --- DEPRECATED: NOT USED ????!!!! 215 | /// 216 | /// 217 | /// 218 | private X509Certificate2Collection checkCerts(X509Certificate2Collection certs_to_check) 219 | { 220 | X509Certificate2Collection scollection = new X509Certificate2Collection(); 221 | scollection.AddRange(certs_to_check); 222 | 223 | if (scollection == null || scollection.Count < 1) 224 | { 225 | return null; 226 | } 227 | 228 | // validate certificates 229 | X509Chain chain = new X509Chain(); 230 | chain.ChainPolicy.RevocationMode = X509RevocationMode.Online; 231 | 232 | X509Certificate2Collection toRemove = new X509Certificate2Collection(); 233 | foreach (X509Certificate2 cert in scollection) 234 | { 235 | bool chainRc = false; 236 | chainRc = chain.Build(cert); 237 | 238 | if (!chainRc) 239 | { 240 | // certificate is invalid ... keep it? 241 | StringBuilder reason = new StringBuilder(); 242 | for (int index = 0; index < chain.ChainStatus.Length; index++) 243 | { 244 | reason.AppendLine(chain.ChainStatus[index].StatusInformation); 245 | } 246 | DialogResult decision = MessageBox.Show("Certificate:\n"+cert.SubjectName.Name+ "\n\ncan't validated and maybe not applicable - try anyway?\nReasons: " + reason, "Error", 247 | MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2); 248 | if (decision == DialogResult.No) 249 | { 250 | toRemove.Insert(0, cert); 251 | } 252 | } 253 | scollection = removeDuplicates(scollection); 254 | } 255 | 256 | foreach (X509Certificate2 cert in toRemove) 257 | { 258 | scollection.Remove(cert); 259 | } 260 | 261 | if (scollection.Count < 1) 262 | { 263 | return null; 264 | } 265 | 266 | return scollection; 267 | } 268 | /// 269 | /// Checks if one of the pub keys are matched to a user private key 270 | /// 271 | /// 272 | /// Returns true if a pub-priv key match exists 273 | public bool checkIfPrivKeyExists(X509Certificate2Collection collection) 274 | { 275 | bool havePrivateKey = false; 276 | foreach (X509Certificate2 cert in collection) 277 | { 278 | havePrivateKey |= cert.HasPrivateKey; 279 | } 280 | return havePrivateKey; 281 | } 282 | } 283 | } 284 | -------------------------------------------------------------------------------- /KeyManagerUI/KeyManagerUI.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {20ADD178-ADF3-4589-AD7B-EE38E02E861D} 8 | Library 9 | Properties 10 | KeyManagerUI 11 | KeyManagerUI 12 | v4.5.2 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | false 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | ..\..\..\..\..\..\..\Program Files (x86)\KeePass Password Safe 2\KeePass.exe 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | Form 61 | 62 | 63 | KeyManagerUIForm.cs 64 | 65 | 66 | 67 | 68 | 69 | 70 | KeyManagerUIForm.cs 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 85 | -------------------------------------------------------------------------------- /KeyManagerUI/KeyManagerUIClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using KeePass.Plugins; 3 | using System.Windows.Forms; 4 | using KeePassLib.Keys; 5 | using KeePassLib.Serialization; 6 | using System.IO; 7 | using KeePassLib.Utility; 8 | using KeePass.UI; 9 | 10 | // Build : & 'C:\Program Files (x86)\KeePass Password Safe 2\KeePass.exe' --plgx-create "C:\Users\TraubS\Documents\GitHub\KeePass-KeyManager\KeyManagerUI\" 11 | 12 | namespace KeyManagerUI 13 | { 14 | /// 15 | /// The class to initiate the plugin and the key provider - don't rename !! 16 | /// 17 | public class KeyManagerUIExt : Plugin 18 | { 19 | private IPluginHost m_host = null; 20 | private ToolStripSeparator m_tsSeparator = null; 21 | private ToolStripMenuItem m_tsmiMenuItem = null; 22 | private CertBasedKeyProvider m_prov = new CertBasedKeyProvider(); 23 | 24 | public override string UpdateUrl 25 | { 26 | get 27 | { 28 | return "https://techsupport.audius.de/keepass/pluginversion"; 29 | } 30 | } 31 | 32 | public override bool Initialize(IPluginHost host) 33 | { 34 | m_host = host; 35 | 36 | // Add provider 37 | m_host.KeyProviderPool.Add(m_prov); 38 | 39 | // Get a reference to the 'Tools' menu item container 40 | ToolStripItemCollection tsMenu = m_host.MainWindow.ToolsMenu.DropDownItems; 41 | 42 | // Add a separator at the bottom 43 | m_tsSeparator = new ToolStripSeparator(); 44 | tsMenu.Add(m_tsSeparator); 45 | 46 | // Add menu item 'Do Something' 47 | m_tsmiMenuItem = new ToolStripMenuItem(); 48 | m_tsmiMenuItem.Text = "Key Manager UI"; 49 | m_tsmiMenuItem.Click += this.OnMenuDoSomething; 50 | tsMenu.Add(m_tsmiMenuItem); 51 | 52 | return true; 53 | } 54 | 55 | public override void Terminate() 56 | { 57 | // Remove all of our menu items 58 | ToolStripItemCollection tsMenu = m_host.MainWindow.ToolsMenu.DropDownItems; 59 | m_tsmiMenuItem.Click -= this.OnMenuDoSomething; 60 | tsMenu.Remove(m_tsmiMenuItem); 61 | tsMenu.Remove(m_tsSeparator); 62 | 63 | // Remove key provider 64 | m_host.KeyProviderPool.Remove(m_prov); 65 | } 66 | 67 | private void OnMenuDoSomething(object sender, EventArgs e) 68 | { 69 | KeyManagerUIForm form = new KeyManagerUIForm(); 70 | form.Show(); 71 | } 72 | } 73 | 74 | /// 75 | /// A key provider plugin for KeePass that, for new databases, generates a key and encrypts it using 76 | /// a set of public keys contained in encryption certificates. When opening a database, the key is 77 | /// decrypted using a private key. 78 | /// 79 | public sealed class CertBasedKeyProvider : KeyProvider 80 | { 81 | private static int MAX_KEY_FILE_LENGTH = 1024 * 1024; // 1 MB ought to be way too much 82 | public static string CertProtKeyFileExtension = "p7mkey"; 83 | public override string Name 84 | { 85 | get { return "KeePassX509Provider"; } 86 | } 87 | /// 88 | /// Get a key for the database. 89 | /// 90 | /// Context - queried for whether a new key should be created, and the database path 91 | /// A byte array with the key, or null if an error occurs. If an error occurs, user is 92 | /// notified of the error. 93 | public override byte[] GetKey(KeyProviderQueryContext ctx) 94 | { 95 | if (ctx.CreatingNewKey) 96 | { 97 | return GetNewKey(); 98 | } 99 | else 100 | { 101 | return GetExistingKey(ctx.DatabaseIOInfo); 102 | } 103 | } 104 | 105 | byte[] GetNewKey() 106 | { 107 | 108 | KeyManagerUIForm form = new KeyManagerUIForm(); 109 | try 110 | { 111 | form.ShowDialog(); 112 | return form.priKey; 113 | } 114 | catch (NullReferenceException null_ex) 115 | { 116 | MessageBox.Show("No key was generated!", "Error",MessageBoxButtons.OK, MessageBoxIcon.Error); 117 | return null; 118 | } 119 | } 120 | /// 121 | /// Get a key for an existing database. First, the key file is located, either because its location 122 | /// and filename are the same as the database path (with the exception of the extension), or the user 123 | /// is asked. Then, the key file is decrypted using a private key. 124 | /// 125 | /// Full filename of the database file. 126 | /// A byte array with the key, or null if an error occurs. If an error occurs, user is 127 | /// notified of the error. 128 | byte[] GetExistingKey(IOConnectionInfo ioc) 129 | { 130 | Stream stream = null; 131 | try 132 | { 133 | string newpath = UrlUtil.StripExtension(ioc.Path) + "." + CertProtKeyFileExtension; 134 | IOConnectionInfo keyIoc = ioc.CloneDeep(); 135 | keyIoc.Path = newpath; 136 | stream = IOConnection.OpenRead(keyIoc); 137 | } 138 | catch (Exception e) 139 | { 140 | // strPath may be a URL (even if IsLocalFile returns true?), 141 | // whatever the reason, fall through and the user can pick a 142 | // local file as the key file 143 | } 144 | 145 | if (stream == null || !stream.CanRead) 146 | { 147 | // fall back on opening a local file 148 | // FUTURE ENHANCEMENT: allow user to enter a URL and name/pwd as well 149 | 150 | OpenFileDialog ofd = (OpenFileDialog)UIUtil.CreateOpenFileDialog("KeePassX509Provider", UIUtil.CreateFileTypeFilter(CertProtKeyFileExtension, "x05KeyFile", true), 1, CertProtKeyFileExtension, false /* multi-select */, string.Empty).FileDialog; 151 | 152 | if (ofd.ShowDialog() != DialogResult.OK) 153 | { 154 | return null; 155 | } 156 | stream = IOConnection.OpenRead(IOConnectionInfo.FromPath(ofd.FileName)); 157 | } 158 | try 159 | { 160 | BinaryReader reader = new BinaryReader(stream); 161 | byte[] p7m = reader.ReadBytes(MAX_KEY_FILE_LENGTH); 162 | // URL streams don't support seeking, and so Position doesn't work 163 | //bool tooBig = stream.Position >= MAX_KEY_FILE_LENGTH; 164 | bool tooBig = p7m.Length >= MAX_KEY_FILE_LENGTH; 165 | reader.Close(); 166 | 167 | if (tooBig) 168 | { 169 | MessageBox.Show("Key File is to big"); 170 | return null; 171 | } 172 | Certmanager cert_mgr = new Certmanager(); 173 | return cert_mgr.DecryptMsg2(p7m); 174 | } 175 | catch (SystemException ex) // covers IOException and CryptographicException 176 | { 177 | MessageBox.Show("Error at encryption or IO error!\nIf you used a smart card for encryption, please provide/plugin fist!"); 178 | return null; 179 | } 180 | } 181 | } 182 | } 183 | -------------------------------------------------------------------------------- /KeyManagerUI/KeyManagerUIForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace KeyManagerUI 2 | { 3 | partial class KeyManagerUIForm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(KeyManagerUIForm)); 33 | this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); 34 | this.change_key = new System.Windows.Forms.Button(); 35 | this.openFileDialog2 = new System.Windows.Forms.OpenFileDialog(); 36 | this.listView1 = new System.Windows.Forms.ListView(); 37 | this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); 38 | this.exit_button = new System.Windows.Forms.Button(); 39 | this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); 40 | this.mainMenu = new System.Windows.Forms.MenuStrip(); 41 | this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 42 | this.openKeyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 43 | this.newKeyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 44 | this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); 45 | this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 46 | this.loadCertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 47 | this.fromFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 48 | this.fromLocalStoreToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 49 | this.loadKeyRingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 50 | this.saveKeyRingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 51 | this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 52 | this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); 53 | this.label1 = new System.Windows.Forms.Label(); 54 | this.linkLabel1 = new System.Windows.Forms.LinkLabel(); 55 | this.openFileDialog3 = new System.Windows.Forms.OpenFileDialog(); 56 | this.saveFileDialog2 = new System.Windows.Forms.SaveFileDialog(); 57 | this.mainMenu.SuspendLayout(); 58 | this.SuspendLayout(); 59 | // 60 | // openFileDialog1 61 | // 62 | this.openFileDialog1.Filter = "KeyFIle|*.p7mkey"; 63 | // 64 | // change_key 65 | // 66 | this.change_key.Location = new System.Drawing.Point(336, 158); 67 | this.change_key.Name = "change_key"; 68 | this.change_key.Size = new System.Drawing.Size(75, 23); 69 | this.change_key.TabIndex = 4; 70 | this.change_key.Text = "Save key"; 71 | this.change_key.UseVisualStyleBackColor = true; 72 | this.change_key.Click += new System.EventHandler(this.change_click); 73 | // 74 | // openFileDialog2 75 | // 76 | this.openFileDialog2.Filter = "CertFile|*.cer"; 77 | // 78 | // listView1 79 | // 80 | this.listView1.CheckBoxes = true; 81 | this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { 82 | this.columnHeader1}); 83 | this.listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; 84 | this.listView1.Location = new System.Drawing.Point(12, 53); 85 | this.listView1.Name = "listView1"; 86 | this.listView1.Size = new System.Drawing.Size(398, 99); 87 | this.listView1.TabIndex = 3; 88 | this.toolTip1.SetToolTip(this.listView1, "If a certificate is grayed out --> the certificate isn\'t installed on the local m" + 89 | "achine!"); 90 | this.listView1.UseCompatibleStateImageBehavior = false; 91 | this.listView1.View = System.Windows.Forms.View.Details; 92 | this.listView1.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.listView1_ItemChecked); 93 | // 94 | // columnHeader1 95 | // 96 | this.columnHeader1.Text = "Certificates"; 97 | this.columnHeader1.Width = 390; 98 | // 99 | // exit_button 100 | // 101 | this.exit_button.Location = new System.Drawing.Point(255, 158); 102 | this.exit_button.Name = "exit_button"; 103 | this.exit_button.Size = new System.Drawing.Size(75, 23); 104 | this.exit_button.TabIndex = 5; 105 | this.exit_button.Text = "Close"; 106 | this.exit_button.UseVisualStyleBackColor = true; 107 | this.exit_button.Click += new System.EventHandler(this.exit_button_click); 108 | // 109 | // saveFileDialog1 110 | // 111 | this.saveFileDialog1.CreatePrompt = true; 112 | this.saveFileDialog1.Filter = "KeyFIle|*.p7mkey"; 113 | // 114 | // mainMenu 115 | // 116 | this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 117 | this.fileToolStripMenuItem, 118 | this.loadCertToolStripMenuItem, 119 | this.toolStripMenuItem1}); 120 | this.mainMenu.Location = new System.Drawing.Point(0, 0); 121 | this.mainMenu.Name = "mainMenu"; 122 | this.mainMenu.Size = new System.Drawing.Size(423, 24); 123 | this.mainMenu.TabIndex = 9; 124 | this.mainMenu.Text = "menuStrip1"; 125 | // 126 | // fileToolStripMenuItem 127 | // 128 | this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 129 | this.openKeyToolStripMenuItem, 130 | this.newKeyToolStripMenuItem, 131 | this.toolStripSeparator1, 132 | this.closeToolStripMenuItem}); 133 | this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; 134 | this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); 135 | this.fileToolStripMenuItem.Text = "File"; 136 | this.fileToolStripMenuItem.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 137 | // 138 | // openKeyToolStripMenuItem 139 | // 140 | this.openKeyToolStripMenuItem.Name = "openKeyToolStripMenuItem"; 141 | this.openKeyToolStripMenuItem.Size = new System.Drawing.Size(124, 22); 142 | this.openKeyToolStripMenuItem.Text = "Open key"; 143 | this.openKeyToolStripMenuItem.Click += new System.EventHandler(this.openKeyToolStripMenuItem_Click); 144 | // 145 | // newKeyToolStripMenuItem 146 | // 147 | this.newKeyToolStripMenuItem.Name = "newKeyToolStripMenuItem"; 148 | this.newKeyToolStripMenuItem.Size = new System.Drawing.Size(124, 22); 149 | this.newKeyToolStripMenuItem.Text = "New key"; 150 | this.newKeyToolStripMenuItem.Click += new System.EventHandler(this.newKeyToolStripMenuItem_Click); 151 | // 152 | // toolStripSeparator1 153 | // 154 | this.toolStripSeparator1.Name = "toolStripSeparator1"; 155 | this.toolStripSeparator1.Size = new System.Drawing.Size(121, 6); 156 | // 157 | // closeToolStripMenuItem 158 | // 159 | this.closeToolStripMenuItem.Name = "closeToolStripMenuItem"; 160 | this.closeToolStripMenuItem.Size = new System.Drawing.Size(124, 22); 161 | this.closeToolStripMenuItem.Text = "Close"; 162 | this.closeToolStripMenuItem.Click += new System.EventHandler(this.closeToolStripMenuItem_Click); 163 | // 164 | // loadCertToolStripMenuItem 165 | // 166 | this.loadCertToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 167 | this.fromFileToolStripMenuItem, 168 | this.fromLocalStoreToolStripMenuItem, 169 | this.loadKeyRingToolStripMenuItem, 170 | this.saveKeyRingToolStripMenuItem}); 171 | this.loadCertToolStripMenuItem.Name = "loadCertToolStripMenuItem"; 172 | this.loadCertToolStripMenuItem.Size = new System.Drawing.Size(71, 20); 173 | this.loadCertToolStripMenuItem.Text = "Load cert."; 174 | this.loadCertToolStripMenuItem.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 175 | // 176 | // fromFileToolStripMenuItem 177 | // 178 | this.fromFileToolStripMenuItem.Name = "fromFileToolStripMenuItem"; 179 | this.fromFileToolStripMenuItem.Size = new System.Drawing.Size(180, 22); 180 | this.fromFileToolStripMenuItem.Text = "From file"; 181 | this.fromFileToolStripMenuItem.Click += new System.EventHandler(this.fromFileToolStripMenuItem_Click); 182 | // 183 | // fromLocalStoreToolStripMenuItem 184 | // 185 | this.fromLocalStoreToolStripMenuItem.Name = "fromLocalStoreToolStripMenuItem"; 186 | this.fromLocalStoreToolStripMenuItem.Size = new System.Drawing.Size(180, 22); 187 | this.fromLocalStoreToolStripMenuItem.Text = "From local store"; 188 | this.fromLocalStoreToolStripMenuItem.Click += new System.EventHandler(this.fromLocalStoreToolStripMenuItem_Click); 189 | // 190 | // loadKeyRingToolStripMenuItem 191 | // 192 | this.loadKeyRingToolStripMenuItem.Name = "loadKeyRingToolStripMenuItem"; 193 | this.loadKeyRingToolStripMenuItem.Size = new System.Drawing.Size(180, 22); 194 | this.loadKeyRingToolStripMenuItem.Text = "Load key ring (beta)"; 195 | this.loadKeyRingToolStripMenuItem.Click += new System.EventHandler(this.loadKeyRingToolStripMenuItem_Click); 196 | // 197 | // saveKeyRingToolStripMenuItem 198 | // 199 | this.saveKeyRingToolStripMenuItem.Name = "saveKeyRingToolStripMenuItem"; 200 | this.saveKeyRingToolStripMenuItem.Size = new System.Drawing.Size(180, 22); 201 | this.saveKeyRingToolStripMenuItem.Text = "Save key ring (beta)"; 202 | this.saveKeyRingToolStripMenuItem.Click += new System.EventHandler(this.saveKeyRingToolStripMenuItem_Click); 203 | // 204 | // toolStripMenuItem1 205 | // 206 | this.toolStripMenuItem1.Name = "toolStripMenuItem1"; 207 | this.toolStripMenuItem1.Size = new System.Drawing.Size(24, 20); 208 | this.toolStripMenuItem1.Text = "?"; 209 | // 210 | // label1 211 | // 212 | this.label1.AutoSize = true; 213 | this.label1.Location = new System.Drawing.Point(9, 37); 214 | this.label1.Name = "label1"; 215 | this.label1.Size = new System.Drawing.Size(111, 13); 216 | this.label1.TabIndex = 10; 217 | this.label1.Text = "Selected certificates:"; 218 | // 219 | // linkLabel1 220 | // 221 | this.linkLabel1.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192))))); 222 | this.linkLabel1.AutoSize = true; 223 | this.linkLabel1.Location = new System.Drawing.Point(1, 178); 224 | this.linkLabel1.Name = "linkLabel1"; 225 | this.linkLabel1.Size = new System.Drawing.Size(83, 13); 226 | this.linkLabel1.TabIndex = 11; 227 | this.linkLabel1.TabStop = true; 228 | this.linkLabel1.Text = "GitHub project"; 229 | this.linkLabel1.VisitedLinkColor = System.Drawing.Color.Blue; 230 | this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); 231 | // 232 | // openFileDialog3 233 | // 234 | this.openFileDialog3.Filter = "KeyRingFile|*.kmk"; 235 | // 236 | // saveFileDialog2 237 | // 238 | this.saveFileDialog2.Filter = "KeyRingFile|*.kmk"; 239 | // 240 | // KeyManagerUIForm 241 | // 242 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 243 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 244 | this.ClientSize = new System.Drawing.Size(423, 193); 245 | this.Controls.Add(this.linkLabel1); 246 | this.Controls.Add(this.label1); 247 | this.Controls.Add(this.exit_button); 248 | this.Controls.Add(this.listView1); 249 | this.Controls.Add(this.change_key); 250 | this.Controls.Add(this.mainMenu); 251 | this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 252 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 253 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 254 | this.MainMenuStrip = this.mainMenu; 255 | this.MaximizeBox = false; 256 | this.MinimizeBox = false; 257 | this.Name = "KeyManagerUIForm"; 258 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 259 | this.Text = "KeePass KeyManager v1.3"; 260 | this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KeyManagerUIForm_KeyDown); 261 | this.mainMenu.ResumeLayout(false); 262 | this.mainMenu.PerformLayout(); 263 | this.ResumeLayout(false); 264 | this.PerformLayout(); 265 | 266 | } 267 | 268 | #endregion 269 | private System.Windows.Forms.OpenFileDialog openFileDialog1; 270 | private System.Windows.Forms.Button change_key; 271 | private System.Windows.Forms.OpenFileDialog openFileDialog2; 272 | private System.Windows.Forms.ListView listView1; 273 | private System.Windows.Forms.ColumnHeader columnHeader1; 274 | private System.Windows.Forms.Button exit_button; 275 | private System.Windows.Forms.SaveFileDialog saveFileDialog1; 276 | private System.Windows.Forms.MenuStrip mainMenu; 277 | private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; 278 | private System.Windows.Forms.ToolStripMenuItem openKeyToolStripMenuItem; 279 | private System.Windows.Forms.ToolStripMenuItem newKeyToolStripMenuItem; 280 | private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; 281 | private System.Windows.Forms.ToolStripMenuItem closeToolStripMenuItem; 282 | private System.Windows.Forms.ToolStripMenuItem loadCertToolStripMenuItem; 283 | private System.Windows.Forms.ToolStripMenuItem fromFileToolStripMenuItem; 284 | private System.Windows.Forms.ToolStripMenuItem fromLocalStoreToolStripMenuItem; 285 | private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; 286 | private System.Windows.Forms.ToolTip toolTip1; 287 | private System.Windows.Forms.Label label1; 288 | private System.Windows.Forms.LinkLabel linkLabel1; 289 | private System.Windows.Forms.ToolStripMenuItem loadKeyRingToolStripMenuItem; 290 | private System.Windows.Forms.OpenFileDialog openFileDialog3; 291 | private System.Windows.Forms.ToolStripMenuItem saveKeyRingToolStripMenuItem; 292 | private System.Windows.Forms.SaveFileDialog saveFileDialog2; 293 | } 294 | } -------------------------------------------------------------------------------- /KeyManagerUI/KeyManagerUIForm.cs: -------------------------------------------------------------------------------- 1 | using KeePassLib.Cryptography; 2 | using System; 3 | using System.IO; 4 | using System.Security.Cryptography; 5 | using System.Security.Cryptography.X509Certificates; 6 | using System.Text.RegularExpressions; 7 | using System.Windows.Forms; 8 | 9 | namespace KeyManagerUI 10 | { 11 | public partial class KeyManagerUIForm : Form 12 | { 13 | private byte[] fileBytes; 14 | private string key_path; 15 | 16 | private Certmanager cert_mgmt = new Certmanager(); 17 | public KeyManagerUIForm() 18 | { 19 | InitializeComponent(); 20 | } 21 | 22 | // May some security risk - access the key 23 | public byte[] priKey 24 | { 25 | get { 26 | if (fileBytes.Length > 0 || fileBytes != null) 27 | return cert_mgmt.DecryptMsg(fileBytes); 28 | else 29 | return null; 30 | } 31 | } 32 | 33 | private void change_click(object sender, EventArgs e) 34 | { 35 | try 36 | { 37 | string certs = ""; 38 | 39 | X509Certificate2Collection tempcollection = new X509Certificate2Collection(); 40 | foreach (X509Certificate2 applied_cert in cert_mgmt.applied_certs) 41 | { 42 | foreach (ListViewItem item in listView1.Items) 43 | { 44 | if (item.Checked && item.Text == applied_cert.SubjectName.Name) 45 | { 46 | tempcollection.Add(applied_cert); 47 | certs += applied_cert.SubjectName.Name + "\n"; 48 | } 49 | } 50 | } 51 | 52 | DialogResult priv_deci = new DialogResult(); 53 | bool priv_key = cert_mgmt.checkIfPrivKeyExists(tempcollection); 54 | if (!priv_key) 55 | { 56 | priv_deci = MessageBox.Show("No private key found in certificate collection!\nClick OK to proceed! But after that you can't open the file anymore!!\nClick Cancel to stop! No changes will made!!", "Error", MessageBoxButtons.OKCancel, MessageBoxIcon.Stop); 57 | } 58 | if (priv_deci == DialogResult.OK || priv_key) 59 | { 60 | cert_mgmt.applied_certs = tempcollection; 61 | 62 | DialogResult decision = MessageBox.Show("The following certificates will be used for encryption:\n\n" + certs, "Encryption", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2); 63 | if (decision == DialogResult.Yes) 64 | { 65 | if (string.IsNullOrEmpty(key_path)) 66 | { 67 | DialogResult save_dialog = saveFileDialog1.ShowDialog(); 68 | if (save_dialog == DialogResult.OK) 69 | { 70 | key_path = saveFileDialog1.FileName; 71 | } 72 | } 73 | if (fileBytes.Length > 1) 74 | { 75 | File.WriteAllBytes(key_path, cert_mgmt.EncryptMsg(cert_mgmt.DecryptMsg(fileBytes), cert_mgmt.applied_certs)); 76 | MessageBox.Show("New key saved!", "Key saved", MessageBoxButtons.OK, MessageBoxIcon.Information); 77 | cert_mgmt.keyring_certs = cert_mgmt.applied_certs; 78 | safekeyring(); 79 | } 80 | } 81 | } 82 | } 83 | catch (CryptographicException key_ex) 84 | { 85 | MessageBox.Show("Certificate can't be used for encryption or you don't have a private key for decryption (bad key)!\n" + key_ex, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 86 | } 87 | catch (Exception some_ex) 88 | { 89 | MessageBox.Show("A general error occurred - please check the file and certificates!\nPlease open an issue on GitHub :-) ." + some_ex, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 90 | } 91 | } 92 | 93 | private void addToList(X509Certificate2Collection tolist) 94 | { 95 | listView1.Items.Clear(); 96 | foreach (X509Certificate2 cert in tolist) 97 | { 98 | ListViewItem item = new ListViewItem(cert.SubjectName.Name); 99 | item.Checked = true; 100 | listView1.Items.Add(item); 101 | } 102 | 103 | foreach (string serial in cert_mgmt.not_applied_certs) 104 | { 105 | ListViewItem item = new ListViewItem(serial); 106 | item.Checked = false; 107 | item.Font = new System.Drawing.Font("Segoe UI", 8, System.Drawing.FontStyle.Italic); 108 | item.BackColor = System.Drawing.Color.LightGray; 109 | 110 | listView1.Items.Add(item); 111 | } 112 | } 113 | 114 | private void exit_button_click(object sender, EventArgs e) 115 | { 116 | this.Close(); 117 | } 118 | 119 | private void KeyManagerUIForm_KeyDown(object sender, KeyEventArgs e) 120 | { 121 | if (e.KeyCode == Keys.Escape) 122 | { 123 | this.Close(); 124 | } 125 | } 126 | 127 | protected override bool ProcessDialogKey(Keys keyData) 128 | { 129 | if (Form.ModifierKeys == Keys.None && keyData == Keys.Escape) 130 | { 131 | this.Close(); 132 | return true; 133 | } 134 | return base.ProcessDialogKey(keyData); 135 | } 136 | 137 | private void listView1_ItemChecked(object sender, ItemCheckedEventArgs e) 138 | { 139 | Regex re = new Regex(@"\A\b[0-9A-F]+\b\Z"); 140 | if (e.Item.Checked && re.Match(e.Item.Text).Success) 141 | { 142 | e.Item.Checked = false; 143 | } 144 | } 145 | 146 | private void openKeyToolStripMenuItem_Click(object sender, EventArgs e) 147 | { 148 | listView1.Items.Clear(); 149 | if (openFileDialog1.ShowDialog() == DialogResult.OK) 150 | { 151 | try 152 | { 153 | cert_mgmt.applied_certs = new X509Certificate2Collection(); 154 | key_path = openFileDialog1.FileName; 155 | // read the file 156 | fileBytes = File.ReadAllBytes(key_path); 157 | this.Text = "Loaded key: " + key_path; 158 | 159 | DialogResult key_question = MessageBox.Show("Do you want to oben a keyring file?", "Keyring", MessageBoxButtons.YesNo, MessageBoxIcon.Question); 160 | if (key_question == DialogResult.Yes) 161 | readkeyring(); 162 | 163 | cert_mgmt.getRecipient(fileBytes); 164 | addToList(cert_mgmt.removeDuplicates(cert_mgmt.applied_certs)); 165 | } 166 | catch (IOException) 167 | { 168 | MessageBox.Show("Can't read file!"); 169 | } 170 | } 171 | } 172 | 173 | private void newKeyToolStripMenuItem_Click(object sender, EventArgs e) 174 | { 175 | listView1.Items.Clear(); 176 | MessageBox.Show("You have to select at least on certificate for init. encryption!", "Key Manager UI"); 177 | CryptoRandom rnd = CryptoRandom.Instance; 178 | // Override 179 | cert_mgmt.applied_certs = new X509Certificate2Collection(); 180 | this.Text = "New Key"; 181 | cert_mgmt.addFromStore(); 182 | addToList(cert_mgmt.applied_certs); 183 | if (cert_mgmt.applied_certs.Count > 0) 184 | { 185 | fileBytes = cert_mgmt.EncryptMsg(rnd.GetRandomBytes(256), cert_mgmt.applied_certs); 186 | } 187 | } 188 | 189 | private void fromFileToolStripMenuItem_Click(object sender, EventArgs e) 190 | { 191 | if (openFileDialog2.ShowDialog() == DialogResult.OK) 192 | { 193 | string file = openFileDialog2.FileName; 194 | try 195 | { 196 | X509Certificate2 file_cert = new X509Certificate2(); 197 | file_cert.Import(file); 198 | listView1.Items.Add(new ListViewItem(file_cert.SubjectName.Name)); 199 | cert_mgmt.applied_certs.Add(file_cert); 200 | } 201 | catch (Exception ex) 202 | { 203 | MessageBox.Show("Can't read cert file!\n" + ex); 204 | } 205 | } 206 | } 207 | 208 | private void fromLocalStoreToolStripMenuItem_Click(object sender, EventArgs e) 209 | { 210 | cert_mgmt.addFromStore(); 211 | addToList(cert_mgmt.applied_certs); 212 | } 213 | 214 | private void closeToolStripMenuItem_Click(object sender, EventArgs e) 215 | { 216 | this.Close(); 217 | } 218 | 219 | private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) 220 | { 221 | System.Diagnostics.Process.Start("https://github.com/sbidy/KeePass-KeyManager"); 222 | } 223 | 224 | private void loadKeyRingToolStripMenuItem_Click(object sender, EventArgs e) 225 | { 226 | readkeyring(); 227 | } 228 | private void saveKeyRingToolStripMenuItem_Click(object sender, EventArgs e) 229 | { 230 | safekeyring(); 231 | } 232 | private void safekeyring() 233 | { 234 | try 235 | { 236 | DialogResult save_dialog = saveFileDialog2.ShowDialog(); 237 | if (save_dialog == DialogResult.OK) 238 | { 239 | Keyring kk = new Keyring(); 240 | 241 | kk.SerializeKeyring(cert_mgmt.keyring_certs, saveFileDialog2.FileName); 242 | } 243 | } 244 | catch (Exception ex) 245 | { 246 | MessageBox.Show("Can't save key ring file!\n" + ex); 247 | } 248 | } 249 | private void readkeyring() 250 | { 251 | if (openFileDialog3.ShowDialog() == DialogResult.OK) 252 | { 253 | string file = openFileDialog3.FileName; 254 | 255 | try 256 | { 257 | Keyring kk = new Keyring(); 258 | MessageBox.Show(file); 259 | cert_mgmt.applied_certs.AddRange(kk.DeserializeKeyring(file)); 260 | addToList(cert_mgmt.applied_certs); 261 | } 262 | catch (Exception ex) 263 | { 264 | MessageBox.Show("Can't read key ring file!\n" + ex); 265 | } 266 | } 267 | } 268 | } 269 | } 270 | -------------------------------------------------------------------------------- /KeyManagerUI/KeyManagerUIForm.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | 124 | 157, 17 125 | 126 | 127 | 543, 17 128 | 129 | 130 | 297, 17 131 | 132 | 133 | 433, 17 134 | 135 | 136 | 640, 17 137 | 138 | 139 | 780, 17 140 | 141 | 142 | 143 | 144 | AAABAAkAMDAQAAEABABoBgAAlgAAACAgEAABAAQA6AIAAP4GAAAQEBAAAQAEACgBAADmCQAAMDAAAAEA 145 | CACoDgAADgsAACAgAAABAAgAqAgAALYZAAAQEAAAAQAIAGgFAABeIgAAMDAAAAEAIACoJQAAxicAACAg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AAAAAA//AP//+AAf/+AAB//AAAP/gAAB/wAAAP4AAAB8AAAAPAAAADgAAAAYAAAAGAAAABAAAAAAAA 185 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAABgAAAAYAAAAHAAAADwAAAA+AAAAfwAAAP+AAAH/wA 186 | AD/+AAB//4AB///wD/8oAAAAEAAAACAAAAABAAQAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 187 | gAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAAA 188 | BwcEcAAAAAd3+I93cAAAd4jIznh3AAd/jnZ1yIdwB4iHQASM6EB3iIhABn5Yhw+IiHAHjIzwf4iIhAh4 189 | 54YPiIiGSOd3hA//iGAFiMiEePj4AACIiIcE/48ABIjoQAh//4YYiIeAAHf/j4iIhwAAB2j//4ZwAAAA 190 | BwQkcAAA+B8AAOAHAADAAwAAgAEAAIABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAAgAEAAMAD 191 | AADgBwAA+B8AACgAAAAwAAAAYAAAAAEACAAAAAAAAAkAAAAAAAAAAAAAAAEAAAABAAAAAAAABAMDAAQE 192 | BAALBwUACggHAA4IBgALCgoADQ0NABEMCwASDgwAHRENABAQEAAeFBEAGRcWABwWFQAhEg0AIhYSACAZ 193 | FgAlGhYAJhwZACEhIQAlIiAAJiUlACkjIQAyLSwAOC4rADMwLwA1MC4AMzExADY2NgA5NDIAOTU0ADo4 194 | NwA6OTkARiccAEMrIwBILycARDEqAEY1LgBeOSwASzw3AEA6OABBPTsAQT49AFxEPABgQzkAf0g1AEJC 195 | QgBXUE0AV1JQAFdVVABbVFEAWFhXAFhYWABcW1oAXVxbAF1cXABiTkcAaU1DAGxMQABtUkkAbW1tAHVq 196 | ZgB0dHQAglhJAIZZSQCJZFcAo2VQAL5vUwCBbWYAiH16AKd2ZQCqfm8A5HJKAORzTADkdE0A5XZQAOV4 197 |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Jp9/+uX 400 | ev7rlXf+6pJz/+qQcP7pjW3+6Ytq/+mMbP755d7+++vl/4h/e/4AAAD+AAAA3gAAALwAAAD/XFta/f78 401 | +//++/r/++zn//rm3//65Nz/+eLa//nf1//43dT/+NvR//fYzf/31sr/99PH//bRxP/1zsH/9cy+//TJ 402 | uv/juKr/Szw3/wAAAP8AAAD/AAAA/wAAAP8AAAD/AgIB/2lNQ//qq5X/76yV/++qkf/up47/7qSL/+2i 403 | h//tn4T/7J2B/+yaff/rl3r/65V3/+qSdP/qkHH/6Y5u/+2fhP/77Ob/++vm/1pUUv0AAAD/AAAAvAAA 404 | AJIAAAD+JSQk/f78+//++/v+/PLu/vvo4v/65uD++uTd/vni2v/54Nf++N7U//jb0f732c7+99bL/vbU 405 | yP/20cX+9c/B/uzFt/84Liv+AAAA/gAAAP8AAAD+AAAA/gAAAP8AAAD+AAAA/gAAAP9cRDz+7q6Y/u+t 406 | lf/vqpL+7qeP/+6li/7tooj+7Z+F/+ydgf7smn7+65h7/+uVeP7qk3T+6pBx//K6p/777Of++uzm/yQh 407 | IP0AAAD+AAAAkgAAAFwAAAD+AAAA/uPh4P3+/Pv+/fj2/vvr5f/66eP++ufg/vrl3f/54tr++eDX//je 408 | 1P7429H+99nO/vfXy//21Mj+9tLF/oFtZv8AAAD+AAAA/gAAAP8AAAD+AAAA/gAAAP8AAAD+AAAA/gAA 409 | AP8BAAD+qn5v/vCwmf/vrZb+76qS/+6oj/7upYz+7aKJ/+2ghf7snYL+7Jt+/+uYe/7rlnj+6pN1//jZ 410 | zv777Of+4NLN/QAAAP4AAAD+AAAAXAAAAB0AAAD6AAAA/5OSkv3//fz//vz7//zv6//76+b/+unj//rn 411 | 4f/65d7/+ePb//ng2P/43tX/+NzS//jaz//318z/9dPH/xwXFv8AAAD/AAAA/wAAAP8AAAD/AAAA/wAA 412 | AP8AAAD/AAAA/wAAAP8AAAD/RjUu//Cznf/wsJr/762W/++rk//uqI//7qaM/+2jif/toIX/7J6C/+yb 413 | f//rmXz/7aSK//vt6P/87ej/kYiF/QAAAP8AAAD6AAAAHAAAAAEAAADJAAAA/jk4OP3+/Pz+/vz8/v32 414 | 9P/77en+++vm/vvp4//65+H++uXe//nj2/754dj++N7V/vjc0v/42s/+2r60/gAAAP8AAAD+AAAA/gAA 415 | AP8AAAD+AAAA/gAAAP8AAAD+AAAA/gAAAP8AAAD+EAwL/vG2of/ws57+8LGa/++ul/7vq5T+7qiQ/+6m 416 | jf7to4n+7aGG/+yeg/7sm3/+9Mm6//vu6f777ej+ODQz/QAAAP4AAADJAAAAAQAAAAAAAABxAAAA/wIC 417 | Av7Ozc39//38//78+//88e3/++7p//vs5v/76uT/+ujh//rl3v/549v/+eHZ//jf1v/43dP/zLSs/wAA 418 | AP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AwIC//G5pf/xtqL/8bSe//Cx 419 | m//vrpf/76yU/+6pkf/upo3/7aSK/+2hhv/upo3/++rk//zu6v/MwLz9AgIC/gAAAP8AAABxAAAAAAAA 420 | AAAAAAAWAAAA8gAAAP9XV1b8/v38/v/9/P/9+Pb+/PDs/vvu6f/77Of+++rk//ro4f765t/++eTc/vnh 421 | 2f/539b+5szD/gEBAf8AAAD+AAAA/gAAAP8AAAD+AAAA/gAAAP8AAAD+AAAA/gAAAP8AAAD+HRYU/vK8 422 | qf/xuab+8bei//C0n/7wsZv+8K+Y/++slP7uqZH+7qeO/+2kiv71zsH+/O/r//vu6v5WUU/8AAAA/wAA 423 | APIAAAAWAAAAAAAAAAAAAAAADg4OkwAAAP8EBAT+z87N/v/9/f/+/Pz+/fTx/vzw7P/77ur+++zn//vr 424 | 5f766OL++ubf/vrk3P/54tr++d/X/jUwLv8AAAD+AAAA/gAAAP8AAAD+AAAA/gAAAP8AAAD+AAAA/gAA 425 | AP8AAAD+Yk5H/vK/rf/yvKn+8bqm//G3o/7wtJ/+8LKc//CvmP7vrJX+76qS//G1of777un+/PDr/8zC 426 | vv4EAwP+AAAA/w4ODpMAAAAAAAAAAAAAAAAAAAAAiYmJGwAAAPQAAAD/QUBA/f79/f///f3//vv6//zy 427 | 7//88Oz//O/q//vt6P/76+X/+uni//rm4P/65N3/+eLa/62clv8BAQH/AAAA/wAAAP8AAAD/AAAA/wAA 428 | AP8AAAD/AAAA/wAAAP8KCAf/zqeZ//PCsf/zv63/8r2q//K6p//xt6P/8bWg//CynP/wr5n/766Y//nj 429 | 2//88e3/+/Ds/0A8O/0AAAD/AAAA9ImJiRsAAAAAAAAAAAAAAAAAAAAAAAAAAFxcXHsAAAD+AAAA/pmY 430 | mPz+/f3+/v39/v759//88u/+/PHt//vv6v777ej+++vl/vrp4//65+D++uXd/vji2v91amb+AQEB/gAA 431 | AP8AAAD+AAAA/gAAAP8AAAD+AAAA/gUEBP+cgXf+9Mi4/vTFtf/zwrH+88Cu//K9q/7yuqf+8bik//G1 432 | oP7ws53+99XK//zx7v788e3+l4+N/AAAAP4AAAD+XFxcewAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOjo 433 | 6AgVFRXNAAAA/gsLC/7T0tL9/v39/v/9/f/9+Pb+/PPv//zx7f777+v+++3o/vvr5v/66eP++ufg/vrl 434 | 3v/44dr+mYqF/hkXFv8AAAD+AAAA/gAAAP8AAAD+KSMh/rOXjv/1zb/+9cu8/vTIuf/0xbX+88Oy//PA 435 | rv7yvqv+8ruo//G4pP72z8L+/PLu//zy7v7Rx8T9CwoK/gAAAP4VFRXN6OjoCAAAAAAAAAAAAAAAAAAA 436 | AAAAAAAAAAAAAAAAAAC4uLgtAgIC8QAAAP8mJib97Ovr/v/+/f///f3//vn4//zz8P/88e3//O/r//vt 437 | 6f/77Ob/+unk//ro4f/65d7/+ePb/+/Y0P+3pJ3/koJ8/5WEfv/BqKD/8tHG//bTxv/20MP/9c7A//XL 438 | vP/0yLn/9Ma2//PDsv/zwa//87+t//jb0f/88/D//fPw/+rg3f4mJCP9AAAA/wMDA/G4uLgtAAAAAAAA 439 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgYGBUwAAAPsAAAD+MzMz/uzr6/7+/f3+//79//77 440 | +v799fL+/PHu/vzw6//77un+++zm/vvq5P/66OH++ubf/vnj3P/54dn++d/W/vjd0//42tD+99jN/vfV 441 | yv/208f+9tDD/vXOwP/1y73+9Mm6//TGtv71zb/+++rk//z08f789PH+6uHe/jMwMP4AAAD+AAAA+4GB 442 | gVMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFxcW4AAAD9AAAA/iYm 443 | Jv3T0tL9//79//79/f7+/fz+/fj3/vzz7//88Oz+++7p/vvs5//76uT++uji/vrm3//55Nz++eLZ/vnf 444 | 1v/43dP++NvR/vfYzf/31sr+9tPH/vbRxP/1zsH+9tDC//nj2/789PH+/fXy//z18v7Rysf9JiQk/QAA 445 | AP4AAAD9cXFxbgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 446 | AABxcXFuAAAA+wAAAP8LCwv+mZiY/P79/f7//v3///39//78/P/9+Pb//PLu//zu6v/77Of/++rl//ro 447 | 4v/65t//+uTd//ni2v/54Nf/+N3U//jb0f/32c7/99bL//jZz//65+D//fTy//339P/99vT//PXz/5eS 448 | kfwLCwr+AAAA/wAAAPtxcXFuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 449 | AAAAAAAAAAAAAAAAAAAAAAAAgYGBUwICAvEAAAD+AAAA/0FAQP3Pzs7+/v39/v/9/f/+/fz+/vz8/v76 450 | +P/99fL+/O/r/vvr5v/66eL++ubg/vrk3f/54tr++eHY/vnj2//66eP+/PHu/v349v/99/b+/vf1//33 451 | 9f7OyMb+QD49/QAAAP4AAAD+AwMD8YGBgVMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 452 | AAAAAAAAAAAAAA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ihn/+iFY//ngl7/5n9a/+Z8Vv/leVP/9tLG/+7d1v4FBAT+AAAAmwAAAMs0MzL+/vn3//rn 503 | 4P/20sX/9c7B//XKvP/0x7f/88Oy//K/rf/yu6f/8bei//Cznf+gdWb/AAAA/wAAAP8AAAD/AAAA/51n 504 | VP/rl3r/6pR1/+qQcP/pjGz/6Iln/+iFY//ngl//5n9b/+Z8V//wsp3/++ni/zMvLf4AAADLAAAA7GBf 505 | Xv7++fj/+eLa//fWy//208b/9c/B//XLvP/0x7f/88Oy//O/rf/yu6j/8bej/+Kplf8EAwP/AAAA/wAA 506 | AP8EAwL/3pZ8/+ycgP/rmHv/6pR2/+qQcf/pjW3/6Ilo/+iGZP/ng2D/54Bc/+ycgP/76eP/X1hV/gAA 507 | AOwAAAD8fXt7/v76+f/54dn/+NrQ//fXy//208f/9s/C//XMvf/0yLj/88Sz//PArv/yvKn/8bik/z0u 508 | KP8AAAD/AAAA/zwqJP/tpIr/7aCF/+ycgP/rmHv/65V3/+qRcv/pjW3/6Ypp/+iGZP/ng2D/6Y1t//vq 509 | 5P97cm/+AAAA/AAAAPx9e3v+/vr5//rl3f/43tX/+NvR//fXzP/21Mj/9tDD//XMvv/0yLn/9MS0//PA 510 | r//yvKr/hGVb/wAAAP8AAAD/g15R/+6okP/upIv/7aGG/+ydgf/rmXz/65V3/+qRc//pjm7/6Ypp/+iH 511 | Zf/qkXL/++rk/3tzcP4AAAD8AAAA7GFgX/7++/r/++vm//ni2v/439b/+NvR//fYzf/31Mj/9tDE//XN 512 | v//0ybr/9MW1//PBr/+beW3/AAAA/wAAAP+keGn/762W/+6pkf/upYz/7aGH/+ydgv/smn3/65Z4/+qS 513 | c//pjm//6Ytq/+6ki//76+X/X1lW/gAAAOwAAADLNDMz/v78+//88u7/+ubf//nj2//54Nf/+NzS//fY 514 | zv/31cn/9tHE//XNv//uxLX/UUE8/wAAAP8AAAD/AAAA/wEAAP9nTEL/7q2W/+6qkv/upo3/7aKH/+ye 515 | gv/smn7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+ak5H9AAAA/1dXV4wAAAAAAAAAAAAAAAAAAAAA6+vrChsbG9MKCgr+z87O/f79/f/9+ff//PLv//zv 529 | 6//77Of/+unj//rm3//139j/opKM/2ZbV/9pXFj/rZaN//XQw//1zcD/9cq7//TGtv/zwrH/876s//fX 530 | zP/88u//zcTB/QoJCf4bGxvT6+vrCgAAAAAAAAAAAAAAAAAAAAAAAAAAx8fHJQsLC+oXFhb+z87O/f/+ 531 | /f/++/r//PTx//zw6//77ej/++rk//rn4P/55Nz/+eDY//jd0//32c//99bK//bSxf/1zsD/9cq7//XO 532 | wP/66eL//fTx/83Fw/0WFRX+CwsL6sfHxyUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAu7u7MQsL 533 | C+oKCgr+nJyc/f79/f7+/fz//vj3//zy7v/77ej/++rl//rn4f/65Nz/+eHY//jd1P/42s//99bL//fZ 534 | zv/65+D//fXz//z18/6blpT9CgoJ/gsLC+q7u7sxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 535 | AAAAAAAAx8fHJRsbG9MAAAD/Q0ND/s/Ozv3//f3//v38//76+P/99fL//O/r//vq5P/65+D/+ujh//vr 536 | 5v/88u///fj2//749v/OyMb9Q0FA/gAAAP8bGxvTx8fHJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 537 | AAAAAAAAAAAAAAAAAAAAAAAA6+vrCldXV4wAAAD6AAAA/kdHR/6oqKf+8vHw/v/8/P/+/Pv//vv6//77 538 | +v/++vn//vr5//Ht7P6opKP+R0VF/gAAAP4AAAD6V1dXjOvr6woAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 539 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAENDQyUAAACdAAAA9QAAAP8FBQX+NDMz/mFg 540 | YP59fHz+fXx7/mBfX/40MzP+BQUF/gAAAP8AAAD1AAAAnUNDQyUAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 541 | AAAAAA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n77un/99fL//bPwv/0x7j/88Cu/+61 554 | of8QDAv/EAsJ/+mdg//rmHv/6pFy/+mKaP/ng2D/87+t/zYyMfk3Nzb5/PHu//jf1v/32M3/9tDD//TJ 555 | uf/zwa//s3Jc/7NyXP/uqZH/7aGG/+uZfP/qknP/6Ytq//PCsf82MzH5Dg4O2fr19P765t//+eDX//fZ 556 | zv/20cX/a1lS/wAAAP8AAAD/eFhM/++qkv/tooj/7Jp+/+qTdP/12c/+Dg0M2QAAAJe7urn+/PDr//rn 557 | 4f/54dj/79PI/wMCAv8AAAD/AAAA/woHBv/ws57/76uU/+2jif/vrJX/ua6r/gAAAJcQEBAwRERE/f76 558 | +P777ur/+uji//fg2P8ZFxb/AAAA/wAAAP8mHhz/8ryq//G0n//vrZX/+NzS/kNAP/0QEBAwAAAAAFdX 559 | V5qdnJz+/fj2//zv6//66eP/xLOt/0I7Of9FPDn/yaid//TFtf/yvqv/99TI/5uVkv5XV1eaAAAAAAAA 560 | AADx8fEJOjo6wZ2cnP7++vn+/PLu//vq5P/55Nz/+N3T//fWyv/31sr/+uji/pyWlP46OjrB8fHxCQAA 561 | AAAAAAAAAAAAAPHx8QlXV1eaRERE/bu6uv779/X+/fTx//zx7f/58e7+ura1/kRCQf1XV1ea8fHxCQAA 562 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEDAAAACXDg4O2Tc3N/k3Nzb5Dg4O2QAAAJcQEBAwAAAAAAAA 563 | AAAAAAAAAAAAAPAPAADAAwAAgAEAAIABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAB 564 | AACAAQAAwAMAAPAPAAA= 565 | 566 | 567 | -------------------------------------------------------------------------------- /KeyManagerUI/Keyring.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Security.Cryptography.X509Certificates; 5 | using System.Xml; 6 | using System.Xml.Linq; 7 | using System.Xml.Serialization; 8 | 9 | namespace KeyManagerUI 10 | { 11 | class Keyring 12 | { 13 | public void SerializeKeyring(X509Certificate2Collection collection, string filename) 14 | { 15 | List certlist = new List(); 16 | 17 | foreach (X509Certificate2 cert in collection) 18 | { 19 | certlist.Add(Convert.ToBase64String(cert.RawData)); 20 | } 21 | 22 | XmlSerializer serializer = new XmlSerializer(typeof(List)); 23 | StringWriter sw = new StringWriter(); 24 | XmlSerializerNamespaces ns = new XmlSerializerNamespaces(); 25 | 26 | serializer.Serialize(sw, certlist, ns); 27 | File.WriteAllText(filename, sw.ToString()); 28 | } 29 | public X509Certificate2Collection DeserializeKeyring(string filename) 30 | { 31 | string KeyringXML = File.ReadAllText(filename); 32 | X509Certificate2Collection collection = new X509Certificate2Collection(); 33 | XmlSerializer xs = new XmlSerializer(typeof(List)); 34 | 35 | StringReader sr = new StringReader(KeyringXML); 36 | List templist = (List)xs.Deserialize(sr); 37 | 38 | foreach (string rawdata in templist) 39 | { 40 | collection.Add(new X509Certificate2(Convert.FromBase64String(rawdata))); 41 | } 42 | return collection; 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /KeyManagerUI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("KeyManagerUI")] 9 | [assembly: AssemblyDescription("KeyManager UI")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Stephan Traub - audius GmbH")] 12 | [assembly: AssemblyProduct("KeePass Plugin")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("20add178-adf3-4589-ad7b-ee38e02e861d")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.4.0.0")] 36 | [assembly: AssemblyFileVersion("1.4.0.0")] 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Open_DB.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sbidy/KeePass-KeyManager/80fec19e116a93ca4631017f8a80c5c78a6308f7/Open_DB.gif -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KeePass-KeyManager 2 | The manager provides a crypto. authentication provider for the KeePass and also a GUI for the management. Based of the usage of X509-Certificates one KeePass-Database can encrypted for multiple users. 3 | 4 | It allows KeePass to use an AES-Key (master key), which is encrypted with the X509-Certificate (use RSA-Keys) from the Windows certificate store and flat key files (*.crt) of one or more users stored in a 7mkey-file, as a master key source. 5 | 6 | After the selection of a X509-Certificate, it search through the 7mkey-file for the certificates subject, gets the respective, encrypted AES-Key and decrypt it with the certificate. KeePass will use the returned decrypted AES-Key along with the other given credentials (like password, keyfile) for open the database. 7 | 8 | The GUI helps you to manage the certificates and the keys. 9 | 10 | For more information about KeePass Security, please have a look at the KeePass Security Page. 11 | 12 | Technics and idea based on the plugins form Dirk Heitzmann, creative-webdesign.de and Mark Buchler, https://github.com/markbott/CertKeyProvider 13 | 14 | # Installation 15 | Link to the PLGX file --> [Download](https://github.com/sbidy/KeePass-KeyManager/releases/download/1.3/KeyManagerUI.plgx) 16 | 17 | Copy the PLGX file to the plugin folder where KeePass lives. Next time you start KeePass, KeePass should load the plugin. 18 | 19 | To uninstall, remove the PLGX file and consult KeePass documentation. 20 | 21 | For Yubikey users: Please install the latest MiniDriver for the Yubikey! --> [Website](https://www.yubico.com/products/services-software/download/smart-card-drivers-tools/) 22 | 23 | # Usage 24 | When creating a new database, select "Key file / provider" and choose "KeePassX509Provider" from the drop-down list. 25 | 26 | This key provider can be combined with other key sources (master password, Windows user account). 27 | 28 | You will then be prompted to select the certificates via the KeyManagerUI for which the key should be encrypted. The certificates that are presented were retrieved from the Windows certificate (CAPI) store or you import a flat file (.crt). 29 | 30 | ![Screen shot](/Capture.PNG?raw=true "Screen shot") 31 | 32 | Encrypting the key for multiple certificates is useful in various scenarios -- you have two different keys and certificates on different machines, you want to share the password database with a group of people (e.g. in SharePoint, git) etc. 33 | 34 | IMPORTANT: Make sure you have access to at least one private key corresponding to the certificates. As well, be sure to back up those private keys or ensure that they are recoverable in some way. You will not be able to open the database without it. 35 | 36 | When opening the database, select the "KeePassX509Provider" key provider again. The system will automatically find a private key to decrypt the database. If a key is not found, you will see an error. 37 | 38 | ## Creat a new DB 39 | ![Create_DB](https://github.com/sbidy/KeePass-KeyManager/blob/master/Create_DB.gif) 40 | 41 | ## Add user 42 | ![Add_User](https://github.com/sbidy/KeePass-KeyManager/blob/master/Add_User.gif) 43 | 44 | ## Open a DB 45 | ![Open_DB](https://github.com/sbidy/KeePass-KeyManager/blob/master/Open_DB.gif) 46 | -------------------------------------------------------------------------------- /SmartCard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sbidy/KeePass-KeyManager/80fec19e116a93ca4631017f8a80c5c78a6308f7/SmartCard.gif --------------------------------------------------------------------------------