导入用户证书密钥并切换用户
导入用户证书和私钥,切换sdk当前使用的用户。
- 调用方法
public function switchIdentityWithPem(string $algorithm, string $cert, string $key) throws Exception
- 参数说明
参数
类型
说明
algorithm
String
必填参数,生成密钥对应算法,对应密钥类型。默认 ecdsa_with_sha256。
cert
String
必填参数,用户证书。
key
String
必填参数,用户密钥。