Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
4262eb81
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4262eb81
编写于
6月 29, 2023
作者:
Z
zhao_zhen_zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改证书算法库框架示例的证书数据
Signed-off-by:
N
zhao_zhen_zhou
<
zhaozhenzhou@huawei.com
>
上级
f26599dd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
11 deletion
+23
-11
zh-cn/application-dev/security/cert-guidelines.md
zh-cn/application-dev/security/cert-guidelines.md
+23
-11
未找到文件。
zh-cn/application-dev/security/cert-guidelines.md
浏览文件 @
4262eb81
...
...
@@ -59,16 +59,28 @@ import cryptoFramework from '@ohos.security.cryptoFramework';
// 证书数据,此处仅示例,业务需根据场景自行设置
let
certData
=
"
-----BEGIN CERTIFICATE-----
\n
"
+
"
IBzTCCAXCgAwIBAgIGAXKnMKNyMAwGCCqBHM9VAYN1BQAwSTELMAkGA1UEBhMC
\n
"
+
"
04xDjAMBgNVBAoTBUdNU1NMMRAwDgYDVQQLEwdQS0kvU00yMRgwFgYDVQQDEw9S
\n
"
+
"
290Q0EgZm9yIFRlc3QwIhgPMjAxNTEyMzExNjAwMDBaGA8yMDM1MTIzMDE2MDAw
\n
"
+
"
FowSTELMAkGA1UEBhMCQ04xDjAMBgNVBAoTBUdNU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XdtzoUL53j587oI+IXelOr7dg020zPyun0cmZHZ4y
\n
"
+
"
l/qAcrWbDjZeEGcbbb5UtQtn1WOEnv8pkXluO355mbZQUKK9L3gFWseXJKGbIXw0
\n
"
+
"
NRpaJZzqvPor4m3a5pmJKPHOlivUdYfLaKSkNj3DlaFzCWKV82k5ee6gzVyETtG+
\n
"
+
"
XN+vq8qLybT+fIFsLNMmAHzRxlqz3NiH7yh+1/p/Knvf8bkkRVR2btH51RyX2RSu
\n
"
+
"
DjPM0/VRL8fxDSDeWBq+Gvn/E6AbOVMmkx63tcyWHhklCSaZtyz7kq39TQMCAwEA
\n
"
+
"
AaN7MHkwCQYDVR0TBAIwADAsBglghkgBhvhCAQ0EHxYdT3BlblNTTCBHZW5lcmF0
\n
"
+
"
ZWQgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFFiFDysfADQCzRZCOSPupQxFicwzMB8G
\n
"
+
"
A1UdIwQYMBaAFNYQRQiPsG8HefOTsmsVhaVjY7IPMA0GCSqGSIb3DQEBCwUAA4IB
\n
"
+
"
AQAeppxf6sKQJxJQXKPTT3xHKaskidNwDBbOSIvnVvWXicZXDs+1sF6tUaRgvPxL
\n
"
+
"
OL58+P2Jy0tfSwj2WhqQRGe9MvQ5iFHcdelZc0ciW6EQ0VDHIaDAQc2nQzej/79w
\n
"
+
"
UE7BJJV3b9n1be2iCsuodKO14pOkMb84WcIxng+8SD+MiFqV5BPO1QyKGdO1PE1b
\n
"
+
"
+evjyTpFSTgZf2Mw3fGtu5hfEXyHw1lnsFY2MlSwiRlAym/gm4aXy+4H6LyXKd56
\n
"
+
"
UYQ6fituD0ziaw3RI6liyIe7aENHCkZf6bAvMRhk4QiU4xu6emwX8Qt1bT7RthP0
\n
"
+
"
1Vsro0IOeXT9WAcqEtQUegsi
\n
"
+
"
-----END CERTIFICATE-----
\n
"
;
// string转Uint8Array
...
...
@@ -133,7 +145,7 @@ function certSample() {
});
// 时间字符串
let
date
=
"
150527
000001Z
"
;
let
date
=
"
20220830
000001Z
"
;
// 校验证书有效期
try
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录