UniToken Integration TrueCrypt Keyfile: Difference between revisions

From SecuTech Wiki
Jump to navigationJump to search
Bao (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[category:UniToken_Integration_Guide]]
[[category:UniToken_Integration_Guide]]


== Install the PKI package  ==
== Install the PKI Package ==


This part explains how to install the PKI package that you can find inside the SDK. The End User package can be found inside the folder Redist/Enduser.  
This section explains how to install the PKI package that can be found inside the UniToken SDK. The End User package can be found inside the folder "Redist/Enduser/".


{| cellspacing="0" cellpadding="0" border="0" width=""
{| class="wikitable"
|-
|-
| width="50" |  '''1'''  
| width="50" | '''1'''  
| width="400" | Right-Click on the PKI package installation file and choose “Run as administrator”<br>Execute the file with an account that has administrator rights on this computer.<br><br>
| width="400" | Right-click on the PKI package installation file and choose [Run as administrator].Execute the file with an account that has administrator rights on this computer.
| [[Image:Bitlocker img01.jpg|370x259px]]<br><br>
| [[Image:Bitlocker img01.jpg|370x259px]]
|-
|-
| width="50" | &nbsp;'''2'''  
| width="50" | '''2'''  
| width="400" | Click on [Next] in the welcome screen.<br>
| width="400" | Click on [Next] in the InstallShield Wizard welcome screen.
| [[Image:Bitlocker img02.jpg|370px]]<br><br>
| [[Image:Bitlocker img02.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''3'''  
| width="50" | '''3'''  
| width="400" | Input your username and Company Name and click on [Next].<br>
| width="400" | Input your User Name and Company Name and click on [Next].
| [[Image:Bitlocker img03.jpg|370px]]<br><br>
| [[Image:Bitlocker img03.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''4'''  
| width="50" | '''4'''  
| width="400" | Select [Complete] and click on [Next].<br>
| width="400" | Select [Complete] and click on [Next].
| [[Image:Bitlocker img04.jpg|370px]]<br><br>
| [[Image:Bitlocker img04.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''5'''  
| width="50" | '''5'''  
| width="400" | Click on [Install] to begin the installation of the PKI package.<br>
| width="400" | Click on [Install] to begin the installation of the PKI package.
| [[Image:Bitlocker img05.jpg|370px]]<br><br>
| [[Image:Bitlocker img05.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''6'''  
| width="50" | '''6'''  
| width="400" | Verify that the install wizard completed correctly and click on [Finish].<br>
| width="400" | Verify that the InstallShield Wizard completed successfully and click on [Finish].
| [[Image:Bitlocker img06.jpg|370px]]<br><br>
| [[Image:Bitlocker img06.jpg|370px]]
|}
|}


<br>
== Configure PKCS Support in TrueCrypt ==


== Configure PKCS support in TrueCrypt ==
{| class="wikitable"
 
{| cellspacing="0" cellpadding="0" border="0" width=""
|-
|-
| width="50" | &nbsp;'''1'''  
| width="50" | '''1'''  
| width="400" | In the main menu, go to [Settings],[Security Tokens]. <br><br>
| width="400" | In the main menu of TrueCrypt, click on [Settings],[Security Tokens].
| <center>[[Image:truecrypt img01.jpg|370px]]</center><br><br>
| <center>[[Image:truecrypt img01.jpg|370px]]</center>
|-
|-
| width="50" | &nbsp;'''2'''  
| width="50" | '''2'''  
| width="400" | In the [TrueCrypt –  Security Token Preferences] window, click [Select Library] and choose the library file. By default the PKI package will install this file in the Windows¥System32¥ folder. (utp11.dll)<br><br>
| width="400" | In the [TrueCrypt - Security Token Preferences] window, click [Select Library...] and select the library file to be used. By default, the PKI package will install this file in the Windows%System32% directory, library file "utp11.dll". Click [OK].
Once done, click [OK] to confirm your choice.<br>
| [[Image:truecrypt img02.jpg|370px]]
| [[Image:truecrypt img02.jpg|370px]]<br><br>
|}
|}


== Create an encrypted volume with FreeOTFE ==
== Create an Encrypted Volume with TrueCrypt ==


{| cellspacing="0" cellpadding="0" border="0" width=""
{| class="wikitable"
|-
|-
| width="50" | &nbsp;'''1'''  
| width="50" | '''1'''  
| width="400" | To create a new encrypted volume, click on [New].<br>
| width="400" | To create a new encrypted volume, in the main window, click [Create Volume]. Then, on the first page of the wizard, click [New].
| [[Image:freeotfe img03.jpg|370px]]<br><br>
| [[Image:freeotfe img03.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''2'''  
| width="50" | '''2'''  
| width="400" | On the [FreeOTFE Volume Creation Wizard] welcome page, click on [Next] to start the volume creation procedure.<br>
| width="400" | On the [Volume Type] page, click on [Next] to continue the volume creation procedure.
 
| [[Image:freeotfe img04.jpg|370px]]
| [[Image:freeotfe img04.jpg|370px]]<br><br>
|-
|-
| width="50" | &nbsp;'''3'''  
| width="50" | '''3'''  
| width="400" | You can choose to store the encrypted volume as a file or to encrypt a whole partition/disk. Choose the one that fits the best to your needs. <br>
| width="400" | Click [Select File] to choose where to store the encrypted volume. Click [Next] to continue.  
In our case, we chose to store the encrypted volume as a file.<br>
| [[Image:freeotfe img05.jpg|370px]]
Click on [Next] to continue.<br>
| [[Image:freeotfe img05.jpg|370px]]<br><br>
|-
|-
| width="50" | &nbsp;'''4'''  
| width="50" | '''4'''  
| width="400" | Choose where you want to store the volume and click on [Next] to continue.<br>
| width="400" | Choose a file name for your encrypted volume and click [Next] to continue.
| [[Image:freeotfe img06.jpg|370px]]<br><br>
| [[Image:freeotfe img06.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''5'''  
| width="50" | '''5'''  
| width="400" | Choose the size of your encrypted volume and click on [Next] to continue.<br>
| width="400" | Once you’ve chosen where to save your file. Click [Next] to continue.
| [[Image:freeotfe img07.jpg|370px]]<br><br>
| [[Image:freeotfe img07.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''6'''  
| width="50" | '''6'''  
| width="400" | Keep the default encryption algorithms or change it depending on your needs. Click on [Next] to continue.<br>
| width="400" | Keep the default encryption algorithms or change it depending on your needs. Click on [Next] to continue.
| [[Image:freeotfe img08.jpg|370px]]<br><br>
| [[Image:freeotfe img08.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''7'''  
| width="50" | '''7'''  
| width="400" | Choose the elements to use to secure your volume, the more you use elements, the more you can secure your volume.<br>
| width="400" | Choose the size for your volume. Click [Next].
We have chosen to use Microsoft CryptoAPI and PKCS#11 token.<br>
| [[Image:freeotfe img09.jpg|370px]]
| [[Image:freeotfe img09.jpg|370px]]<br><br>
|-
|-
| width="50" | &nbsp;'''8'''  
| width="50" | '''8'''  
| width="400" | Check that you have selected the right UniToken and click on [Next] to continue.<br>
| width="400" | Choose a password for your volume, make sure that [Use keyfiles] is checked and click on [Keyfiles] in order to create a keyfile for your volume (later we will store this keyfile inside the UniToken).
| [[Image:freeotfe img10.jpg|370px]]<br><br>
| [[Image:freeotfe img10.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''9'''  
| width="50" | '''9'''  
| width="400" | Input a password for your encrypted volume. This doesn’t have to be the same password with your UniToken. Click on [Next] to continue.<br>
| width="400" | Click [Generate Random Keyfile…] to generate a new keyfile.
| [[Image:freeotfe img11.jpg|370px]]<br><br>
| [[Image:freeotfe img11.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''10'''  
| width="50" | '''10'''  
| width="400" | Check that the details for the new volume creation are correct and click on [Finish] to create the volume.<br>
| width="400" | Click [Generate and Save Keyfile] to save the file.
| [[Image:freeotfe img12.jpg|370px]]<br><br>
| [[Image:freeotfe img12.jpg|370px]]
|}
|}


== Create a keyfile for the encrypted volume and store it inside UniToken ==
== Create a keyfile for the encrypted volume and store it inside UniToken ==


{| cellspacing="0" cellpadding="0" border="0" width=""
{| class="wikitable"
|-
|-
| width="50" | &nbsp;'''1'''  
| width="50" | '''1'''  
| width="400" | In the main menu, click on [Tools] [Create keyfile…]<br>
| width="400" | In the main menu, click on [Tools] [Create keyfile…]
| [[Image:freeotfe img13.jpg|370px]]<br><br>
| [[Image:freeotfe img13.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''2'''  
| width="50" | '''2'''  
| width="400" | Choose the type of your encrypted volume (file or partition) and click on [Next].<br>
| width="400" | Choose the type of your encrypted volume (file or partition) and click on [Next].
| [[Image:freeotfe img14.jpg|370px]]<br><br>
| [[Image:freeotfe img14.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''3'''  
| width="50" | '''3'''  
| width="400" | Indicate where your encrypted volume is located and click on [Next].<br>
| width="400" | Indicate where your encrypted volume is located and click on [Next].
| [[Image:freeotfe img15.jpg|370px]]<br><br>
| [[Image:freeotfe img15.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''4'''  
| width="50" | '''4'''  
| width="400" | Input the password of your volume and click on [Next].<br>
| width="400" | Input the password of your volume and click on [Next].
| [[Image:freeotfe img16.jpg|370px]]<br><br>
| [[Image:freeotfe img16.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''5'''  
| width="50" | '''5'''  
| width="400" | Choose where you want to store the keyfile (At this step you cannot directly store the keyfile directly to the Token, you first have to save it to your computer and import it to your Token later).<br>
| width="400" | Choose where you want to store the keyfile (At this step you cannot directly store the keyfile directly to the Token, you first have to save it to your computer and import it to your Token later).
| [[Image:freeotfe img17.jpg|370px]]<br><br>
| [[Image:freeotfe img17.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''6'''  
| width="50" | '''6'''  
| width="400" | Input a password for your keyfile and confirm it. Click on [Next] to continue.<br>
| width="400" | Input a password for your keyfile and confirm it. Click on [Next] to continue.
| [[Image:freeotfe img18.jpg|370px]]<br><br>
| [[Image:freeotfe img18.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''7'''  
| width="50" | '''7'''  
| width="400" | Choose the elements that you want to use for password salting and random padding data.<br>
| width="400" | Choose the elements that you want to use for password salting and random padding data. We have decided to choose Microsoft CrytoAPI and PKCS#11 Token. Click on [Next].
We have decided to choose Microsoft CrytoAPI and PKCS#11 Token.<br>
| [[Image:freeotfe img19.jpg|370px]]
Click on [Next].<br>
| [[Image:freeotfe img19.jpg|370px]]<br><br>
|-
|-
| width="50" | &nbsp;'''8'''  
| width="50" | '''8'''  
| width="400" | Check that the correct UniToken is selected and click on [Finish].<br>
| width="400" | Check that the correct UniToken is selected and click on [Finish].
| [[Image:freeotfe img20.jpg|370px]]<br><br>
| [[Image:freeotfe img20.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''9'''  
| width="50" | '''9'''  
| width="400" | In the main menu, choose [Tools] [PKCS#11 token management].<br>
| width="400" | In the main menu, choose [Tools] [PKCS#11 token management].
| [[Image:freeotfe img21.jpg|370px]]<br><br>
| [[Image:freeotfe img21.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''10'''  
| width="50" | '''10'''  
| width="400" | Input the PIN for the UniToken and click on [OK].<br>
| width="400" | Input the PIN for the UniToken and click on [OK].
| [[Image:freeotfe img22.jpg|370px]]<br><br>
| [[Image:freeotfe img22.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''11'''  
| width="50" | '''11'''  
| width="400" | In the [Keyfiles] tab, click on [Import] and select the keyfile that you just created.<br>
| width="400" | In the [Keyfiles] tab, click on [Import] and select the keyfile that you just created.
| [[Image:freeotfe img23.jpg|370px]]<br><br>
| [[Image:freeotfe img23.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''12'''  
| width="50" | '''12'''  
| width="400" | When the dialog box [Keyfile imported successfully as : (name of the keyfile)] appears, the import is finished.<br>
| width="400" | When the dialog box [Keyfile imported successfully as : (name of the keyfile)] appears, the import is finished. For more security, you can choose to delete the keyfile stored on your computer and keep only the one inside the UniToken.
<br>
| [[Image:freeotfe img24.jpg|370px]]
For more security, you can choose to delete the keyfile stored on your computer and keep only the one inside the UniToken.
<br>
| [[Image:freeotfe img24.jpg|370px]]<br><br>
|}
|}


== Unlock the encrypted volume with the keyfile stored in UniToken ==
== Unlock the encrypted volume with the keyfile stored in UniToken ==


{| cellspacing="0" cellpadding="0" border="0" width=""
{| class="wikitable"
|-
|-
| width="50" | &nbsp;'''1'''  
| width="50" | '''1'''  
| width="400" | If you lost the password for your volume, you can now use your UniToken to access the data. Click on [Mount file] (or [Mount Partition] if you encrypted a whole partition). <br><br>
| width="400" | If you lost the password for your volume, you can now use your UniToken to access the data. Click on [Mount file] (or [Mount Partition] if you encrypted a whole partition).  
| <center>[[Image:freeotfe img25.jpg|370px]]</center><br><br>
| <center>[[Image:freeotfe img25.jpg|370px]]</center>
|-
|-
| width="50" | &nbsp;'''2'''  
| width="50" | '''2'''  
| width="400" | Check [PKCS#11] and when the [Security Token/SmartCard PIN] dialog box appears, fill in your PIN and click on OK.<br><br>
| width="400" | Check [PKCS#11] and when the [Security Token/SmartCard PIN] dialog box appears, fill in your PIN and click on OK.
| [[Image:freeotfe img26.jpg|370px]]<br><br>
| [[Image:freeotfe img26.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''3'''  
| width="50" | '''3'''  
| width="400" | Input the password for the keyfile in the password field and select the right keyfile in the PKCS#11 file. Click on [OK] to confirm and get access to your encrypted volume.<br>
| width="400" | Input the password for the keyfile in the password field and select the right keyfile in the PKCS#11 file. Click on [OK] to confirm and get access to your encrypted volume.
| [[Image:freeotfe img27.jpg|370px]]<br><br>
| [[Image:freeotfe img27.jpg|370px]]
|}
|}


== Glossary ==
== Glossary ==


'''Public Key Infrastructure (PKI)''' is a set of hardware, software, people, policies, and procedures needed to create, manage, distribute, use, store, and revoke digital certificates.
'''Public Key Infrastructure (PKI)''': a set of hardware, software, people, policies, and procedures needed to create, manage, distribute, use, store, and revoke digital certificates.


'''Microsoft Cryptography API, MS-CAPI''' is an application programming interface included with Microsoft Windows operating systems that provides services to enable developers to secure Windows-based applications using cryptography.
'''Microsoft Cryptography API, MS-CAPI''': an application programming interface included with Microsoft Windows operating systems that provides services to enable developers to secure Windows-based applications using cryptography.


'''PKCS''' refers to a group of public-key cryptography standards devised and published by RSA Security.
'''PKCS''': refers to a group of public-key cryptography standards devised and published by RSA Security.

Latest revision as of 17:05, 23 August 2016


Install the PKI Package

This section explains how to install the PKI package that can be found inside the UniToken SDK. The End User package can be found inside the folder "Redist/Enduser/".

1 Right-click on the PKI package installation file and choose [Run as administrator].Execute the file with an account that has administrator rights on this computer.
2 Click on [Next] in the InstallShield Wizard welcome screen.
3 Input your User Name and Company Name and click on [Next].
4 Select [Complete] and click on [Next].
5 Click on [Install] to begin the installation of the PKI package.
6 Verify that the InstallShield Wizard completed successfully and click on [Finish].

Configure PKCS Support in TrueCrypt

1 In the main menu of TrueCrypt, click on [Settings],[Security Tokens].
2 In the [TrueCrypt - Security Token Preferences] window, click [Select Library...] and select the library file to be used. By default, the PKI package will install this file in the Windows%System32% directory, library file "utp11.dll". Click [OK].

Create an Encrypted Volume with TrueCrypt

1 To create a new encrypted volume, in the main window, click [Create Volume]. Then, on the first page of the wizard, click [New].
2 On the [Volume Type] page, click on [Next] to continue the volume creation procedure.
3 Click [Select File] to choose where to store the encrypted volume. Click [Next] to continue.
4 Choose a file name for your encrypted volume and click [Next] to continue.
5 Once you’ve chosen where to save your file. Click [Next] to continue.
6 Keep the default encryption algorithms or change it depending on your needs. Click on [Next] to continue.
7 Choose the size for your volume. Click [Next].
8 Choose a password for your volume, make sure that [Use keyfiles] is checked and click on [Keyfiles] in order to create a keyfile for your volume (later we will store this keyfile inside the UniToken).
9 Click [Generate Random Keyfile…] to generate a new keyfile.
10 Click [Generate and Save Keyfile] to save the file.

Create a keyfile for the encrypted volume and store it inside UniToken

1 In the main menu, click on [Tools] [Create keyfile…]
2 Choose the type of your encrypted volume (file or partition) and click on [Next].
3 Indicate where your encrypted volume is located and click on [Next].
4 Input the password of your volume and click on [Next].
5 Choose where you want to store the keyfile (At this step you cannot directly store the keyfile directly to the Token, you first have to save it to your computer and import it to your Token later).
6 Input a password for your keyfile and confirm it. Click on [Next] to continue.
7 Choose the elements that you want to use for password salting and random padding data. We have decided to choose Microsoft CrytoAPI and PKCS#11 Token. Click on [Next].
8 Check that the correct UniToken is selected and click on [Finish].
9 In the main menu, choose [Tools] [PKCS#11 token management].
10 Input the PIN for the UniToken and click on [OK].
11 In the [Keyfiles] tab, click on [Import] and select the keyfile that you just created.
12 When the dialog box [Keyfile imported successfully as : (name of the keyfile)] appears, the import is finished. For more security, you can choose to delete the keyfile stored on your computer and keep only the one inside the UniToken.

Unlock the encrypted volume with the keyfile stored in UniToken

1 If you lost the password for your volume, you can now use your UniToken to access the data. Click on [Mount file] (or [Mount Partition] if you encrypted a whole partition).
2 Check [PKCS#11] and when the [Security Token/SmartCard PIN] dialog box appears, fill in your PIN and click on OK.
3 Input the password for the keyfile in the password field and select the right keyfile in the PKCS#11 file. Click on [OK] to confirm and get access to your encrypted volume.

Glossary

Public Key Infrastructure (PKI): a set of hardware, software, people, policies, and procedures needed to create, manage, distribute, use, store, and revoke digital certificates.

Microsoft Cryptography API, MS-CAPI: an application programming interface included with Microsoft Windows operating systems that provides services to enable developers to secure Windows-based applications using cryptography.

PKCS: refers to a group of public-key cryptography standards devised and published by RSA Security.