|
1 '\" te |
|
2 .\" Portions Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. |
|
3 .\" This manual page is derived from documentation obtained from the OpenSC organization (www.opensc-project.org). This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
4 .TH pkcs11_inspect 1 "2012 年 1 月 18 日" "SunOS 5.12" "用户命令" |
|
5 .SH 名称 |
|
6 pkcs11_inspect \- 打印证书内容 |
|
7 .SH 用法概要 |
|
8 .LP |
|
9 .nf |
|
10 \fB/usr/lib/pam_pkcs11/pkcs11_inspect\fR [debug] [config_file=\fIfilename\fR] |
|
11 .fi |
|
12 |
|
13 .SH 描述 |
|
14 .sp |
|
15 .LP |
|
16 \fBpkcs11_inspect\fR 使用 \fBpam_pkcs11\fR 库基础结构获取及显示证书内容。 |
|
17 .sp |
|
18 .LP |
|
19 \fBpkcs11_inspect\fR 使用与 \fBpam_pkcs11\fR(5) PAM 模块相同的配置文件及参数。它装入定义的映射器模块,并使用它们在证书中查看需要的条目,即 \fBms_mapper\fR 查找 \fBms UPN\fR 条目等。 |
|
20 .sp |
|
21 .LP |
|
22 映射器模块在证书中找到正确的条目时,它会转换为 \fBUTF-8\fR 并将其打印到 \fBstdout\fR。 |
|
23 .SH 选项 |
|
24 .sp |
|
25 .LP |
|
26 支持以下选项: |
|
27 .sp |
|
28 .ne 2 |
|
29 .mk |
|
30 .na |
|
31 \fB\fBconfig_file=\fR\fIfileame\fR\fR |
|
32 .ad |
|
33 .RS 23n |
|
34 .rt |
|
35 设置配置文件。缺省值是 \fB/etc/security/pam_pkcs11/pam_pkcs11.conf\fR。 |
|
36 .RE |
|
37 |
|
38 .sp |
|
39 .ne 2 |
|
40 .mk |
|
41 .na |
|
42 \fB\fBdebug\fR\fR |
|
43 .ad |
|
44 .RS 23n |
|
45 .rt |
|
46 启用调试输出。 |
|
47 .RE |
|
48 |
|
49 .sp |
|
50 .LP |
|
51 因为它使用与 \fBpam_pkcs11\fR(5) 相同的配置文件,所以所有 \fBpam_pkcs11\fR 选项均可用。其中某些选项在非 PAM 环境中没有意义,因此被忽略。某些映射器选项(\fBmapfile\fR、\fBignorecase\fR)对证书内容不起作用,因此也被忽略。 |
|
52 .SH 退出状态 |
|
53 .sp |
|
54 .LP |
|
55 将返回以下退出值: |
|
56 .sp |
|
57 .ne 2 |
|
58 .mk |
|
59 .na |
|
60 \fB\fB0\fR\fR |
|
61 .ad |
|
62 .RS 5n |
|
63 .rt |
|
64 成功完成。 |
|
65 .sp |
|
66 \fBpkcs11_inspect\fR 在 \fBstdout\fR 中打印为映射器找到的所有证书内容。 |
|
67 .RE |
|
68 |
|
69 .sp |
|
70 .ne 2 |
|
71 .mk |
|
72 .na |
|
73 \fB\fB1\fR\fR |
|
74 .ad |
|
75 .RS 5n |
|
76 .rt |
|
77 出现错误。 |
|
78 .RE |
|
79 |
|
80 .SH 示例 |
|
81 .LP |
|
82 \fB示例 1 \fR使用 \fBpkcs_inspect\fR |
|
83 .sp |
|
84 .LP |
|
85 以下示例运行 \fBpkcs_inspect\fR 命令而没有任何选项: |
|
86 |
|
87 .sp |
|
88 .in +2 |
|
89 .nf |
|
90 % pkcs11_inspect |
|
91 .fi |
|
92 .in -2 |
|
93 .sp |
|
94 |
|
95 .LP |
|
96 \fB示例 2 \fR使用具有选项的 \fBpkcs_inspect\fR |
|
97 .sp |
|
98 .LP |
|
99 以下示例运行 \fBpkcs_inspect\fR 命令时具有选项: |
|
100 |
|
101 .sp |
|
102 .in +2 |
|
103 .nf |
|
104 % pkcs11_inspect debug config_file=${HOME}/.pam_pkcs11.conf |
|
105 .fi |
|
106 .in -2 |
|
107 .sp |
|
108 |
|
109 .SH 文件 |
|
110 .sp |
|
111 .ne 2 |
|
112 .mk |
|
113 .na |
|
114 \fB\fB/etc/security/pam_pkcs11/pam_pkcs11.conf\fR\fR |
|
115 .ad |
|
116 .sp .6 |
|
117 .RS 4n |
|
118 |
|
119 .RE |
|
120 |
|
121 .SH 作者 |
|
122 .sp |
|
123 .LP |
|
124 Juan Antonio Martinez,\[email protected]\fR |
|
125 .SH 属性 |
|
126 .sp |
|
127 .LP |
|
128 有关下列属性的说明,请参见 \fBattributes\fR(5): |
|
129 .sp |
|
130 |
|
131 .sp |
|
132 .TS |
|
133 tab() box; |
|
134 cw(2.75i) |cw(2.75i) |
|
135 lw(2.75i) |lw(2.75i) |
|
136 . |
|
137 属性类型属性值 |
|
138 _ |
|
139 可用性library/security/pam/module/pam-pkcs11 |
|
140 _ |
|
141 接口稳定性Uncommitted(未确定) |
|
142 .TE |
|
143 |
|
144 .SH 另请参见 |
|
145 .sp |
|
146 .LP |
|
147 \fBpklogin_finder\fR(1)、\fBattributes\fR(5)、\fBpam_pkcs11\fR(5) |
|
148 .sp |
|
149 .LP |
|
150 \fIPAM-PKCS11 用户手册\fR,http://www.opensc-project.org/pam_pkcs11 |