cert_getTCert

获取节点颁发给用户的tcert证书。

Parameters

  1. <Object>
  • pubkey: <string> - 十六进制表示的pem格式公钥。

Returns

  1. <Object>
  • tcert: <string> - tcert证书。

Example:获取tcert失败

  1. # Request
  2. curl -X POST --data ' {"jsonrpc":"2.0", "namespace":"global", "method":"cert_getTCert","params":[{
  3. "pubkey":"2d2d2d2d2d424547494e204543445341205055424c4943204b45592d2d2d2d2d0a424a4b73413554414d2b5763446c79357250515a2b32595264574a664f446a62393658476a426b59367373352b346a67424f636834394e3064447744633877610a362b46434954436b7a584d4139436d392b436e68722b633d0a2d2d2d2d2d454e44204543445341205055424c4943204b45592d2d2d2d2d"}],"id":"1"}'
  4.  
  5. # Response
  6. {
  7. "jsonrpc": "2.0",
  8. "namespace":"global",
  9. "id": "1",
  10. "code": -32099,
  11. "message": "signed tcert failed"
  12. }