# 加密证书
new Thread(new Runnable() {
@Override
public void run() {
byte[] cer = cisssdk.readCer(getContext(), 1, 0, null);
Log.i("MainActivity", "证书: " + HexStringConvert.parseByte2HexStr(cer));
if (cer != null) {
// 签名证书
byte[] sign = cisssdk.privSign(getContext(), cer, 0, 1, null);
Log.i("MainActivity", "签名证书: " + HexStringConvert.parseByte2HexStr(sign));
if (sign != null) {
byte[] enc = cisssdk.pubKeyEncrypt(getContext(), false, sign, null);
Log.i("MainActivity", "加密证书: " + HexStringConvert.parseByte2HexStr(enc));
}
}
}
}).start();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21