Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
4bf4a650
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看板
提交
4bf4a650
编写于
6月 21, 2013
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update cms docs.
Document use of -keyopt to use RSA-PSS and RSA-OAEP modes.
上级
32b18e03
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
29 addition
and
2 deletion
+29
-2
doc/apps/cms.pod
doc/apps/cms.pod
+29
-2
未找到文件。
doc/apps/cms.pod
浏览文件 @
4bf4a650
...
@@ -316,8 +316,13 @@ verification was successful.
...
@@ -316,8 +316,13 @@ verification was successful.
=item B<-recip file>
=item B<-recip file>
the recipients certificate when decrypting a message. This certificate
when decrypting a message this specifies the recipients certificate. The
must match one of the recipients of the message or an error occurs.
certificate must match one of the recipients of the message or an error
occurs.
When encrypting a message this option may be used multiple times to specify
each recipient. This form B<must> be used if customised parameters are
required (for example to specify RSA-OAEP).
=item B<-keyid>
=item B<-keyid>
...
@@ -376,6 +381,12 @@ private key must be included in the certificate file specified with
...
@@ -376,6 +381,12 @@ private key must be included in the certificate file specified with
the B<-recip> or B<-signer> file. When signing this option can be used
the B<-recip> or B<-signer> file. When signing this option can be used
multiple times to specify successive keys.
multiple times to specify successive keys.
=item B<-keyopt name:opt>
for signing and encryption this option can be used multiple times to
set customised parameters for the preceding key or certificate. It can
currently be used to set RSA-PSS for signing or RSA-OAEP for encryption.
=item B<-passin arg>
=item B<-passin arg>
the private key password source. For more information about the format of B<arg>
the private key password source. For more information about the format of B<arg>
...
@@ -573,6 +584,16 @@ Add a signer to an existing message:
...
@@ -573,6 +584,16 @@ Add a signer to an existing message:
openssl cms -resign -in mail.msg -signer newsign.pem -out mail2.msg
openssl cms -resign -in mail.msg -signer newsign.pem -out mail2.msg
Sign mail using RSA-PSS:
openssl cms -sign -in message.txt -text -out mail.msg \
-signer mycert.pem -keyopt rsa_padding_mode:pss
Create encrypted mail using RSA-OAEP:
openssl cms -encrypt -in plain.txt -camellia128 -out mail.msg \
-recip cert.pem -keyopt rsa_padding_mode:oaep
=head1 BUGS
=head1 BUGS
The MIME parser isn't very clever: it seems to handle most messages that I've
The MIME parser isn't very clever: it seems to handle most messages that I've
...
@@ -598,5 +619,11 @@ No revocation checking is done on the signer's certificate.
...
@@ -598,5 +619,11 @@ No revocation checking is done on the signer's certificate.
The use of multiple B<-signer> options and the B<-resign> command were first
The use of multiple B<-signer> options and the B<-resign> command were first
added in OpenSSL 1.0.0
added in OpenSSL 1.0.0
The B<keyopt> option was first added in OpenSSL 1.1.0
The use of B<-recip> to specify the recipient when encrypting mail was first
added to OpenSSL 1.1.0
Support for RSA-OAEP and RSA-PSS was first added to OpenSSL 1.1.0.
=cut
=cut
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录