0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

windows10 +RC-S380+マイナバーカードPDFを署名

0
Posted at

利用するソフトとバージョン

OpenSCでマイナバーカードの状態を確認する

cd C:\Program Files\OpenSC Project\OpenSC\tools
pkcs15-tool --list-keys
Using reader with a card: Sony FeliCa Port/PaSoRi 3.0 0
Private RSA Key [User Authentication Key]
        Object Flags   : [0x01], private
        Usage          : [0x04], sign
        Access Flags   : [0x1D], sensitive, alwaysSensitive, neverExtract, local
Private RSA Key [Digital Signature Key]
        Object Flags   : [0x01], private
        Usage          : [0x204], sign, nonRepudiation
        Access Flags   : [0x1D], sensitive, alwaysSensitive, neverExtract, local

jSignPdfを設定する

  • jsignpdf-2.3.0\conf\conf.properties
    #pkcs11config.path=conf/pkcs11.cfgを下記に
    image.png

  • jsignpdf-2.3.0\conf\pkcs11.cfg
    下記の設定に
    image.png
    ※slotについて
    下記でslotを確認できます,今回は署名のキー使用するのでslot=1にする

pkcs11-tool -L
Available slots:
Slot 0 (0x0): Sony FeliCa Port/PaSoRi 3.0 0
  token label        : JPKI (User Authentication PIN)
Slot 1 (0x1): Sony FeliCa Port/PaSoRi 3.0 0
  token label        : JPKI (Digital Signature PIN)

jSignPdfで署名

Keystore passwordのどころは6桁以上のマイナバーカードの暗証番号。(4桁の数字ではない)

image.png

署名結果

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?