/usr/lib/pkcs11/methods/pkcs11_startup要简化启动,建议您创建一个称之为 /etc/rc.pkcs11 的 shell 脚本。这个脚本的示例在 章节中。
这个实用程序是一个可执行的 shell 脚本,用来构建配置信息( /etc/pkcs11/pkcs11_config_data )。
/usr/lib/pkcs11/methods/4758_status 这个实用程序是一个二进制可执行文件,用来查询 4758 Coprocessor 以确定卡上是 shallow 还是 deep 固件装入。
/usr/lib/pkcs11/methods/pkcs_slot
这个实用程序是一个 shell 脚本,用来将配置文件写到磁盘的 /etc/pkcs11/config_data 。
1 2 3 4 5 6 7 8 9 10 | #!/bin/bash # Sample /etc/rc.pkcs11 # script for starting pkcs#11 at system IPL. # This should be added to the end of the rc.local script, or # whatever local startup script for your distribution applies # Generate the configuration information /usr/lib/pkcs11/methods/pkcs11_startup # start the subsystem /usr/sbin/pkcsslotd #end of startup script |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | [root@draeger /root]# /usr/lib/pkcs11/methods/pkcsconf -? /usr/lib/pkcs11/methods/pkcsconf: invalid option -- ? usage: /usr/lib/pkcs11/methods/pkcsconf [-itsmMIupP] [-c slotnumber -U userPIN -S SOPin -n newpin] -i display PKCS11 info -t display token info -s display slot info -m display mechanism list -M display shared memory -I initialize token -u initialize user PIN -p set the user PIN -P set the SO PIN Output of the GetSlotInfo call [root@draeger /root]# /usr/lib/pkcs11/methods/pkcsconf -s Slot #0 Info Description: Linux 2.4.2 Linux (ICA) Manufacturer: Linux 2.4.2 Flags: 0x1 Hardware Version: 0.0 Firmware Version: 1.1 An un-initialized ICA token, the information is obtained via the C_GetTokenInfo call [root@draeger /root]# /usr/lib/pkcs11/methods/pkcsconf -i PKCS#11 Info Version 2.1 Manufacuter: IBM AIX Software PKCS11 Flags: 0x0 Library Description: Meta PKCS11 LIBRARY Library VersionToken #0 Info: Label: IBM ICA PKCS #11 Manufacturer: IBM Corp. Model: IBM ICA Serial Number: 123 Flags: 0x45 Sessions: -1/-1 R/W Sessions: -1/-1 PIN Length: 4-8 Public Memory: 0xFFFFFFFF/0xFFFFFFFF Private Memory: 0xFFFFFFFF/0xFFFFFFFF Hardware Version: 1.0 Firmware Version: 1.0 Time: 11:11:17 AM |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |