1、导入RequestsLibrary库
2、使用Create Client Cert Session关键字
Arguments:
[ alias | url | headers={} | cookies={} | client_certs=None | timeout=None | proxies=None | verify=False | debug=0 | max_retries=3 | backoff_factor=0.1 | disable_warnings=0 | retry_status_list=[] | retry_method_list=['GET', 'HEAD', 'OPTIONS', 'DELETE', 'TRACE', 'PUT'] ]
client_certs ['client certificate', 'client key'] PEM files containing the client key and certificate
client_certs参数要设置为list(使用关键字Create List) client_certs=@{client certs}
client certificate 是 D:\\key\\client.crt
client key 是 D:\\key\\client.pem
verify Whether the SSL cert will be verified. A CA_BUNDLE path can also be provided. Defaults to False.
varify 参数 设置为 D:\\key\\root.crt
3、使用POST On Session关键字发送请求
请求数据用 json=${data}