Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8f243018
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8f243018
编写于
1月 27, 2016
作者:
V
Viktor Dukhovni
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Doc fixes suggested by Claus Assmann
RT4264, RT4268 Reviewed-by:
N
Tim Hudson
<
tjh@openssl.org
>
上级
f006217b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
42 addition
and
34 deletion
+42
-34
doc/crypto/X509_LOOKUP_hash_dir.pod
doc/crypto/X509_LOOKUP_hash_dir.pod
+41
-33
doc/ssl/SSL_get_session.pod
doc/ssl/SSL_get_session.pod
+1
-1
未找到文件。
doc/crypto/X509_LOOKUP_hash_dir.pod
浏览文件 @
8f243018
...
@@ -24,7 +24,7 @@ lookup methods
...
@@ -24,7 +24,7 @@ lookup methods
B<X509_LOOKUP_hash_dir> and B<X509_LOOKUP_file> are two certificate
B<X509_LOOKUP_hash_dir> and B<X509_LOOKUP_file> are two certificate
lookup methods to use with B<X509_STORE>, provided by OpenSSL library.
lookup methods to use with B<X509_STORE>, provided by OpenSSL library.
Users of the library typically do not need to create instan
s
es of these
Users of the library typically do not need to create instan
c
es of these
methods manually, they would be created automatically by
methods manually, they would be created automatically by
L<X509_STORE_load_locations(3)> or
L<X509_STORE_load_locations(3)> or
L<SSL_CTX_load_verify_locations(3)>
L<SSL_CTX_load_verify_locations(3)>
...
@@ -61,47 +61,55 @@ caching policy.
...
@@ -61,47 +61,55 @@ caching policy.
=head2 FILE METHOD
=head2 FILE METHOD
B<X509_LOOKUP_file> method loads entire set of certificates and CRLs
The B<X509_LOOKUP_file> method loads all the certificates or CRLs
into memory immediately when file name is passed to it.
present in a file into memory at the time the file is added as a
lookup source.
File format is ASCII text which contains concatenated PEM certificates
File format is ASCII text which contains concatenated PEM certificates
and CRLs.
and CRLs.
This method should be used by applications which work with limited set
This method should be used by applications which work with a small
of CAs.
set of CAs.
=head2 HASHED DIR METHOD
=head2 HASHED DIR METHOD
B<X509_LOOKUP_hash_dir> is more sophisticated method, which loads
B<X509_LOOKUP_hash_dir> is a more advanced method, which loads
certificates and CRLs on demand, but caches them in the memory once they
certificates and CRLs on demand, and caches them in memory once
are loaded. However, since OpenSSL 1.0.0beta1 it checks for newer CRLs
they are loaded. As of OpenSSL 1.0.0, it also checks for newer CRLs
upon each lookup, so if newer CRL would appear in the directory, it
upon each lookup, so that newer CRLs are as soon as they appear in
would be loaded.
the directory.
Directory should contain each certificate and CRL in the separate file
The directory should contain one certificate or CRL per file in PEM format,
in the PEM format, with file name derived from certificate subject (or CRL
with a file name of the form I<hash>.I<N> for a certificate, or
issuer) hash, as returned by L<X509_NAME_hash(3)>
I<hash>.B<r>I<N> for a CRL.
function of with option B<-hash> of L<x509(1)> or
The I<hash> is the value returned by the L<X509_NAME_hash(3)> function applied
L<crl(1)> command.
to the subject name for certificates or issuer name for CRLs.
The hash can also be obtained via the B<-hash> option of the L<x509(1)> or
This hash value is appended by suffix .I<N> for certificates and
L<crl(1)> commands.
B<.r>I<N> for CRLs where I<N> is sequentual
number among certificates with same hash value, so it is possible to
The .I<N> or .B<r>I<N> suffix is a sequence number that starts at zero, and is
have in the store several certificates with same subject or several CRLs
incremented consecutively for each certificate or CRL with the same I<hash>
with same issuer (and, for example, different validity period).
value.
Gaps in the sequence numbers are not supported, it is assumed that there are no
When checking for new CRLs once one CRL for given hash value is loaded,
more objects with the same hash beyond the first missing number in the
hash_dir lookup method checks only for certificates with sequentual
sequence.
number greater than one of already cached CRL.
Sequence numbers make it possible for the directory to contain multiple
Note that hash algorithm used for subject hashing is changed in OpenSSL
certificates with same subject name hash value.
1.0, so all certificate stores have to be rehashed upon transitopn from
For example, it is possible to have in the store several certificates with same
subject or several CRLs with same issuer (and, for example, different validity
period).
When checking for new CRLs once one CRL for given hash value is
loaded, hash_dir lookup method checks only for certificates with
sequence number greater than that of the already cached CRL.
Note that the hash algorithm used for subject name hashing changed in OpenSSL
1.0.0, and all certificate stores have to be rehashed when moving from OpenSSL
0.9.8 to 1.0.0.
0.9.8 to 1.0.0.
OpenSSL includes utility L<c_rehash(1)> which creates
OpenSSL includes a L<c_rehash(1)> utility which creates symlinks with correct
symlinks with correct hashed names for all files with .pem suffix in the
hashed names for all files with .pem suffix in a given directory.
given directory.
=head1 SEE ALSO
=head1 SEE ALSO
...
...
doc/ssl/SSL_get_session.pod
浏览文件 @
8f243018
...
@@ -58,7 +58,7 @@ The following return values can occur:
...
@@ -58,7 +58,7 @@ The following return values can occur:
There is no session available in B<ssl>.
There is no session available in B<ssl>.
=item Pointer to an SSL
=item Pointer to an SSL
_SESSION
The return value points to the data of an SSL session.
The return value points to the data of an SSL session.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录