UniToken Integration TrueCrypt Keyfile: Difference between revisions

From SecuTech Wiki
Jump to navigationJump to search
Joseph (talk | contribs)
No edit summary
Bao (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[category:UniToken_Integration_Guide]]
[[category:UniToken_Integration_Guide]]


== Install the PKI Package ==
== 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/".
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 InstallShield Wizard 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 User Name 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 InstallShield Wizard completed successfully 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 ==


{| cellspacing="0" cellpadding="0" border="0" width=""
{| class="wikitable"
|-
|-
| width="50" | &nbsp;'''1'''  
| width="50" | '''1'''  
| width="400" | In the main menu of TrueCrypt, click on [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 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".<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].
Click [OK].<br>
| [[Image:truecrypt img02.jpg|370px]]
| [[Image:truecrypt img02.jpg|370px]]<br><br>
|}
|}


== Create an Encrypted Volume with TrueCrypt ==
== Create an Encrypted Volume with TrueCrypt ==


{| cellspacing="0" cellpadding="0" border="0" width=""
{| class="wikitable"
|-
| width="50" | &nbsp;'''1'''
| 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].<br>
| [[Image:freeotfe img03.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''2'''
| width="400" | On the [Volume  Type]  page, click on [Next] to continue the volume creation procedure.<br>
 
| [[Image:freeotfe img04.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''3'''
| width="400" | Click  [Select  File]  to  choose  where  to store the encrypted volume. Click [Next] to continue. <br><br>
| [[Image:freeotfe img05.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''4'''
| width="400" | Choose  a  file  name  for  your  encrypted  volume  and
click [Next] to continue.<br>
| [[Image:freeotfe img06.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''5'''
| width="400" | Once  you’ve  chosen  where  to  save  your  file.  Click
[Next] to continue.<br>
| [[Image:freeotfe img07.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''6'''
| width="400" | Keep the default encryption algorithms or change it depending on your needs. Click on  [Next]  to continue.<br>
| [[Image:freeotfe img08.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''7'''
| width="400" | Choose the size for your volume. Click [Next].<br>
| [[Image:freeotfe img09.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''8'''
| 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).<br>
| [[Image:freeotfe img10.jpg|370px]]<br><br>
|-
|-
| width="50" | &nbsp;'''9'''  
| width="50" | '''1'''  
| width="400" | Click  [Generate  Random  Keyfile…] to  generate  a
| 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].
new keyfile.<br>
| [[Image:freeotfe img03.jpg|370px]]
| [[Image:freeotfe img11.jpg|370px]]<br><br>
|-
|-
| width="50" | &nbsp;'''10'''  
| width="50" | '''2'''  
| width="400" | Click [Generate and Save Keyfile] to save the file.<br>
| width="400" | On the [Volume Type] page, click on [Next] to continue the volume creation procedure.
| [[Image:freeotfe img12.jpg|370px]]<br><br>
| [[Image:freeotfe img04.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''11'''  
| width="50" | '''3'''  
| width="400" | Click [Generate and Save Keyfile] to save the file.<br>
| width="400" | Click [Select File] to choose where to store the encrypted volume. Click [Next] to continue.  
| [[Image:freeotfe img12.jpg|370px]]<br><br>
| [[Image:freeotfe img05.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''12'''  
| width="50" | '''4'''  
| width="400" | Click  [Generate  Random  Keyfile…] to generate  a
| width="400" | Choose a file name for your encrypted volume and click [Next] to continue.
new keyfile.<br>
| [[Image:freeotfe img06.jpg|370px]]
| [[Image:freeotfe img11.jpg|370px]]<br><br>
|-
|-
| width="50" | &nbsp;'''13'''  
| width="50" | '''5'''  
| width="400" | Click [Generate and Save Keyfile] to save the file.<br>
| width="400" | Once you’ve chosen where to save your file. Click [Next] to continue.
| [[Image:freeotfe img12.jpg|370px]]<br><br>
| [[Image:freeotfe img07.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''14'''  
| width="50" | '''6'''  
| width="400" | Click [Generate and Save Keyfile] to save the file.<br>
| width="400" | Keep the default encryption algorithms or change it depending on your needs. Click on [Next] to continue.
| [[Image:freeotfe img12.jpg|370px]]<br><br>
| [[Image:freeotfe img08.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''15'''  
| width="50" | '''7'''  
| width="400" | Click [Generate  Random  Keyfile…] to  generate  a
| width="400" | Choose the size for your volume. Click [Next].
new keyfile.<br>
| [[Image:freeotfe img09.jpg|370px]]
| [[Image:freeotfe img11.jpg|370px]]<br><br>
|-
|-
| width="50" | &nbsp;'''16'''  
| width="50" | '''8'''  
| width="400" | Click [Generate and Save Keyfile] to save the file.<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 img12.jpg|370px]]<br><br>
| [[Image:freeotfe img10.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''17'''  
| width="50" | '''9'''  
| width="400" | Click [Generate and Save Keyfile] to save the file.<br>
| width="400" | Click [Generate Random Keyfile…] to generate a new keyfile.
| [[Image:freeotfe img12.jpg|370px]]<br><br>
| [[Image:freeotfe img11.jpg|370px]]
|-
|-
| width="50" | &nbsp;'''18'''
| width="50" | '''10'''  
| width="400" | Click  [Generate  Random  Keyfile…]  to  generate  a
| width="400" | Click [Generate and Save Keyfile] to save the file.
new keyfile.<br>
| [[Image:freeotfe img12.jpg|370px]]
| [[Image:freeotfe img11.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''19'''  
| width="400" | Click [Generate and Save Keyfile] to save the file.<br>
| [[Image:freeotfe img12.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''20'''
| width="400" | Click [Generate and Save Keyfile] to save the file.<br>
| [[Image:freeotfe img12.jpg|370px]]<br><br>
|-
| width="50" | &nbsp;'''21'''
| width="400" | Click  [Generate  Random  Keyfile…]  to  generate  a
new keyfile.<br>
| [[Image:freeotfe img11.jpg|370px]]<br><br>
|}
|}


== 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.