Using ContentAssurity

Key Manager - Importing Keys

You might want to import keys for the following reasons:

1. You want to use a key from a public authority (CA) rather than generating one in ContentAssurity.  You might want to do this if you want other people to be able to automatically verify your signature without having to import your key.  If you generate a key in ContentAssurity it is not automatically recognized by others (because it has been self-signed and cannot be checked back to a public authority).

2. You want to be able to send protected content to other people. If you do not import their protection key(s) then you will not be able to protect content for them.

3. A person who has sent you signed content has generated a self-signed key using ContentAssurity and you want to to be able to verify the content came from them and has not been tampered with.

NOTE: When you import other peoples keys, they can only be used to verify content and to protect content for them.


Importing Keys

Keys can be imported in two different ways:

1.  If someone sends you protected or signed content and you do not have their key in your keystore ContentAssurity automatically notifies you by displaying a flashing info button on the toolbar with the message text 'New key available for import'.  If you press this button the 'Import Public Key Certificates' dialog will be displayed where you can select the key(s) you want to add to your keystore.

Go to 'To import a key', step 3 below.

2.  You can use the Import Key File Import Key File option in Key Manager.  Use this option if someone emails you their key or hands it to you on a disk or you want to add your own private key(s) to you keystore.  

NOTE: If someone has e-mailed you a key it must first be saved to disk before it can be imported.

You may import keys stored in the file formats .p12, .pfx, .p7b, .cer. It does not matter what tab is selected in Key Manager when you import the key as ContentAssurity automatically works out where to store the key depending on the type of key file being imported.


To Import a key:

1.  From the File menu select 'Import Key File'

2.  The following dialog is displayed:

Import Key dialog

Locate the key, either by typing in the location and file name or browse for it using the directory tree.
Press  once you have selected a key file.

3.  The following dialog is then displayed:

NOTE: If you are importing a key file that contains a private key then the following dialog will have an additional field displayed - 'Secure Key File - Please enter password'. You must enter the password that protects the key file before any information about the key can be displayed.

Public Key import

Select the keys you want to add to Key Manager by checking the appropriate boxes in the 'Add' column.  Then press Add to Key Manager button to add the keys you have selected to your keystore.

NOTE: Where a key also has a chain, all the keys in the chain are shown.  Selecting the first key in the chain and checking the box in the 'Add' column automatically selects the chain.

If a key with an identical identity (the actual cryptographic key is the same) is already present in Key Manager, the key is not added and a warning is given. This is true regardless of whether the name of the key is different.  

If a key with an identical name (but the actual cryptographic key is different) to one already in Key Manager is added, it will be added, but it's name will be altered by the addition of '_n' where n is the current number of times that name occurs. This feature is provided to help you differentiate between keys of the same name in your keystore. You may change the name to anything you wish once the key has been added. For example, if you have a key called 'John Smith' in your keystore and you import a second key with the name 'John Smith', then providing the second key is cryptographically different it will be imported with the name 'JohnSmith_1'.



Buttons

Select All button selects all available keys (all of the check boxes in the 'Add' column are selected)

Clear Selection button removes all the selections currently made (the 'Add' column selections are cleared)

Advanced Info button shows advanced key information for the currently selected (highlighted) key.

NOTE: You do not need to add a key to your keystore to use this function.  You can use it to check information about the key before adding it. Where a key chain is shown you must highlight the specific key in the chain for which you wish to see advanced information.

Add to Key Manager button adds the selected key(s) to your keystore


Notes
Notes associated with each key can be edited at this stage, or at any time after the keys have been imported into Key Manager.  

Edit button  Highlight a key and then select this button to edit the key's notes

Save button  Select this button to save your edited notes

Cancel button  Select this
to remove any changes you have made

4.  On successful importation of the key(s) a dialog box is displayed informing you of the number of keys imported:

Keys added message dialog

NOTE:  When a chain has been imported, all the keys in it will be reported as being added, not just the one from the sender.



Invalid Keys

If keys you have selected are invalid for any reason, you will not be able to import them. A message will be displayed on the Key Import dialog explaining why they have failed - for example, 'Cannot add keys, key chain invalid'.  

The only option you can then select is Cancel button