Create certificate
bycloud certificates create --name <name> --type <type> [flags]Create a new certificate. Supports two types: - **ACME**: Automatically issues a certificate using DNS-01 challenge. Supports multi-domain and wildcard certificates. After creation, configure the DNS CNAME records as specified in the response, then call the validate endpoint. - **Uploaded**: Upload your own certificate, private key, and optional chain.
Options
--output
(-o)
stringoptionalOutput format: text, json, or yaml
Values: "text", "json", "yaml"
Default: "text"
Body Options
--name
stringrequiredName of the certificate
--type
stringrequiredValues: "acme", "uploaded"
--certificate
stringoptionalPEM-encoded certificate (required when type is 'uploaded')
--chain
stringoptionalPEM-encoded certificate chain (optional for uploaded certificates)
--domains
arrayoptionalList of domains for ACME certificate (supports multi-domain and wildcard certs)
--private_key
stringoptionalPEM-encoded private key (required when type is 'uploaded')
Command
bycloud certificates create \--name "my-resource" \--type acme
Output
ID 550e8400-e29b-41d4-a716-446655440000CRN crn:sao1:certificate:certificate:550e8400-e29b-41d4-a716-446655440000NAME my-certificateTYPE acmeDOMAINS example.com, *.example.comSTATUS activeEXPIRES_AT 2024-01-15T10:30:00ZRENEW_AFTER 2024-01-15T10:30:00ZERROR_MESSAGE stringCREATED_AT 2024-01-15T10:30:00ZUPDATED_AT 2024-01-15T10:30:00ZDNS_SETUPRECORDS[0]RECORD_NAME _acme-challenge.example.comRECORD_TYPE CNAMERECORD_VALUE example.com.acme.bycloud.io[1]RECORD_NAME _acme-challenge.example.comRECORD_TYPE CNAMERECORD_VALUE example.com.acme.bycloud.ioINSTRUCTIONS Create the following CNAME records to validate domain ownershipBINDINGS[0]ID 550e8400-e29b-41d4-a716-446655440000CRN crn:sao1:certificate:binding:550e8400-e29b-41d4-a716-446655440000CERTIFICATE_ID 550e8400-e29b-41d4-a716-446655440001RESOURCE_TYPE octavia:listenerRESOURCE_ID 550e8400-e29b-41d4-a716-446655440002OPTIONSSNI falseSTATUS activeERROR_MESSAGE stringCREATED_AT 2024-01-15T10:30:00ZUPDATED_AT 2024-01-15T10:30:00Z[1]ID 550e8400-e29b-41d4-a716-446655440000CRN crn:sao1:certificate:binding:550e8400-e29b-41d4-a716-446655440000CERTIFICATE_ID 550e8400-e29b-41d4-a716-446655440001RESOURCE_TYPE octavia:listenerRESOURCE_ID 550e8400-e29b-41d4-a716-446655440002OPTIONSSNI falseSTATUS activeERROR_MESSAGE stringCREATED_AT 2024-01-15T10:30:00ZUPDATED_AT 2024-01-15T10:30:00Z