You can call this operation to apply for the certificate to access a blockchain in Ant Blockchain by automatically generating the certificate signing request (CSR).
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
AntChainId | String | Yes | 1q8B5R9p | The ID of the blockchain that you want to access. |
CommonName | String | Yes | commonName | The domain name of your website. |
ConsortiumId | String | Yes | DV80nJXq | The ID of the consortium to which the blockchain that you want to access belongs. |
CountryName | String | Yes | countryName | The two-letter code of the country where you reside. |
LocalityName | String | Yes | localityName | The name of the city where you reside. |
OrganizationName | String | Yes | organizationName | The name of your organization. |
OrganizationUnitName | String | Yes | organizationUnitName | The name of your department. |
Password | String | Yes | password | The password for accessing the SSL private key. |
StateOrProvinceName | String | Yes | stateOrProvinceName | The name of the state or province where you reside. |
Action | String | No | ApplyAntChainCertificateWithKeyAutoCreation | The operation that you want to perform. Set the value to ApplyAntChainCertificateWithKeyAutoCreation. |
RegionId | String | No | cn-hangzhou | The ID of the region where Ant Blockchain is used. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 3E1894AF-FEE7-4C6C-8C2A-2B3EE0105B07 | The ID of the request. |
Result | The result of the operation. | ||
DownloadPath | The URLs used to download the certificate files and SDK. | ||
CaCrtUrl | String | https://***ca.crt | The URL used to download the ca.crt file. |
ClientCrtUrl | String | https://***client.crt | The URL used to download the client.crt file. |
SdkUrl | String | https://*** | The URL used to download the SDK. |
TrustCaUrl | String | https://***trustCa | The URL used to download the trustCA file. |
PrivateKey | String | ——-BEGIN ENCRYPTED PRIVATE KEY——-\nMIIA=\n——-END ENCRYPTED PRIVATE KEY——-\n | The private key that was automatically generated. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ApplyAntChainCertificateWithKeyAutoCreation&<Common request parameters>
Sample success responses
JSON
format
{ “successResponse”:true, “requestId”:”3E1894AF-FEE7-4C6C-8C2A-2B3EE0105B07”, “data”:{ “Result”:{ “DownloadPath”:{ “SdkUrl”:”https://“, “TrustCaUrl”:”https://***trustCa“, “CaCrtUrl”:”https://***ca.crt“, “ClientCrtUrl”:”https://***client.crt“ }, “PrivateKey”:”——-BEGIN ENCRYPTED PRIVATE KEY——-\nMII*A=\n——-END ENCRYPTED PRIVATE KEY——-\n” }, “RequestId”:”3E1894AF-FEE7-4C6C-8C2A-2B3EE0105B07” }, “code”:”200”}
Error codes
For a list of error codes, visit the API Error Center.
</article>
</main>