| 1 |
.TH SOFTHSM2-MIGRATE 1 "20 April 2016" "SoftHSM" |
| 2 |
.SH NAME |
| 3 |
softhsm2-migrate \- SoftHSM v1 migration tool |
| 4 |
.SH SYNOPSIS |
| 5 |
.PP |
| 6 |
.B softhsm2-migrate \-\-db |
| 7 |
.I path |
| 8 |
.B \-\-token |
| 9 |
.I label |
| 10 |
.RB [ \-\-pin |
| 11 |
.I PIN |
| 12 |
.B \-\-no\-public\-key] |
| 13 |
.SH DESCRIPTION |
| 14 |
.B softhsm2-migrate |
| 15 |
is a tool that can migrate SoftHSM v1 databases to PKCS#11. |
| 16 |
The default HSM is SoftHSM v2, but can be used with other |
| 17 |
PKCS#11 libraries by using the option |
| 18 |
.B \-\-module |
| 19 |
.LP |
| 20 |
.SH OPTIONS |
| 21 |
.TP |
| 22 |
.B \-\-db \fIpath\fR |
| 23 |
The SoftHSM v1 database that is going to be migrated. |
| 24 |
The location of the token database can be found in |
| 25 |
the configuration file for SoftHSM v1. |
| 26 |
.TP |
| 27 |
.B \-\-help\fR, \fB\-h\fR |
| 28 |
Show the help information. |
| 29 |
.TP |
| 30 |
.B \-\-module \fIpath\fR |
| 31 |
Use another PKCS#11 library than SoftHSM. |
| 32 |
.TP |
| 33 |
.B \-\-no\-public\-key |
| 34 |
Do not migrate the public key. |
| 35 |
.TP |
| 36 |
.B \-\-pin \fIPIN\fR |
| 37 |
The |
| 38 |
.I PIN |
| 39 |
for the normal user. |
| 40 |
.TP |
| 41 |
.B \-\-serial \fInumber\fR |
| 42 |
Will use the token with a matching serial number. |
| 43 |
.TP |
| 44 |
.B \-\-slot \fInumber\fR |
| 45 |
The database will be migrated to this slot. |
| 46 |
.TP |
| 47 |
.B \-\-token \fIlabel\fR |
| 48 |
Will use the token with a matching token label. |
| 49 |
.TP |
| 50 |
.B \-\-version\fR, \fB\-v\fR |
| 51 |
Show the version info. |
| 52 |
.SH EXAMPLE |
| 53 |
.LP |
| 54 |
A token database can be migrated with the following command: |
| 55 |
.LP |
| 56 |
.RS |
| 57 |
.nf |
| 58 |
softhsm2-migrate \-\-db /home/user/token.db \-\-token mytoken |
| 59 |
.fi |
| 60 |
.RE |
| 61 |
.SH AUTHORS |
| 62 |
Written by Rickard Bellgrim, Francis Dupont, René Post, and Roland van Rijswijk. |
| 63 |
.LP |
| 64 |
.SH "SEE ALSO" |
| 65 |
.IR softhsm2-keyconv (1), |
| 66 |
.IR softhsm2-util (1), |
| 67 |
.IR softhsm2.conf (5) |