| 1 |
.\" pkcstok_migrate.1 |
| 2 |
.\" |
| 3 |
.\" Copyright IBM Corp. 2020 |
| 4 |
.\" See LICENSE for details. |
| 5 |
.\" |
| 6 |
.TH PKCSTOK_MIGRATE 1 "June 2020" "@PACKAGE_VERSION@" "openCryptoki" |
| 7 |
.SH NAME |
| 8 |
pkcstok_migrate \- utility to migrate an ICA, CCA, Soft, or EP11 token repository |
| 9 |
to the FIPS compliant format introduced with openCryptoki 3.12. |
| 10 |
|
| 11 |
.SH SYNOPSIS |
| 12 |
\fBpkcstok_migrate\fP [\fB-h\fP] |
| 13 |
.br |
| 14 |
\fBpkcstok_migrate\fP \fB--slotid\fP \fIslot-number\fP \fB--datastore\fP \fIdatastore\fP |
| 15 |
\fB--confdir\fP \fIconfdir\fP [\fB--sopin\fP \fIsopin\fP] [\fB--userpin\fP |
| 16 |
\fIuserpin\fP] [\fB--verbose\fP \fIlevel\fP] |
| 17 |
|
| 18 |
.SH DESCRIPTION |
| 19 |
Convert all objects inside a token repository to the new format introduced with |
| 20 |
version 3.12. All encrypted data inside the new format is stored using FIPS |
| 21 |
compliant methods. The new format affects the token's master key files (MK_SO |
| 22 |
and MK_USER), the NVTOK.DAT, and the token object files in the TOK_OBJ folder. |
| 23 |
|
| 24 |
While using this tool no process using the token to be migrated must be running. |
| 25 |
Especially the pkcsslotd must be stopped before running this tool. |
| 26 |
|
| 27 |
The tool creates a backup of the token repository to be migrated, and performs |
| 28 |
all migration actions on this backup, leaving the original repository folder |
| 29 |
completely untouched. The backup folder is located in the same directory as the |
| 30 |
original repository and is suffixed with _PKCSTOK_MIGRATE_TMP. |
| 31 |
|
| 32 |
After a successful migration, the original repository is renamed with a suffix |
| 33 |
of _BAK and the backup folder is renamed to the original repository name, so |
| 34 |
that the migrated repository can immediately be used. The old folder may be |
| 35 |
deleted by the user manually later. |
| 36 |
|
| 37 |
After a successful migration, the tool adds parameter 'tokversion = 3.12' to the |
| 38 |
token's slot configuration in the opencryptoki.conf file. The original config |
| 39 |
file is still available as opencryptoki.conf_BAK and may be removed by the user |
| 40 |
manually. |
| 41 |
|
| 42 |
After an unsuccessful migration, the original repository is still available |
| 43 |
unchanged. |
| 44 |
|
| 45 |
The \fBpkcstok_migrate\fP utility must be run as root. |
| 46 |
|
| 47 |
.SH "OPTIONS SUMMARY" |
| 48 |
.IP "\fB--slotid -s\fP \fISLOT-NUMBER\fP" 10 |
| 49 |
specifies the token slot number of the token repository to be migrated |
| 50 |
.IP "\fB--datastore -d\fP \fIDATASTORE\fP" 10 |
| 51 |
specifies the directory of the token repository to be migrated. |
| 52 |
.IP "\fB--confdir -c\fP \fICONFDIR\fP" 10 |
| 53 |
specifies the directory where the opencryptoki.conf file is located. |
| 54 |
.IP "\fB--sopin -p\fP \fISOPIN\fP" 10 |
| 55 |
specifies the SO pin. If not specified, the SO pin is prompted. |
| 56 |
.IP "\fB--userpin -u\fP \fIUSERPIN\fP" 10 |
| 57 |
specifies the user pin. If not specified, the user pin is prompted. |
| 58 |
.IP "\fB--verbose -v\fP \fILEVEL\fP" 10 |
| 59 |
specifies the verbose level: \fInone\fP, error, warn, info, devel, debug |
| 60 |
.IP "\fB--help -h\fP" 10 |
| 61 |
show usage information |
| 62 |
|
| 63 |
.SH SEE ALSO |
| 64 |
.PD 0 |
| 65 |
.TP |
| 66 |
\fBpkcsconf\fP(1), |
| 67 |
.TP |
| 68 |
\fBopencryptoki\fP(7), |
| 69 |
.TP |
| 70 |
\fBpkcsslotd\fP(8). |
| 71 |
.PD |