Hetzner hcloud icon

Hetzner hcloud

Interact with the cloud api of the german infrastructure provider Hetzner.

Actions47

Certificate → Create

AI-generated

Summary

Create a new SSL certificate in Hetzner Cloud with specified details such as name, type (uploaded or managed), associated domain names, private key, and optional user-defined labels.

Inputs

  • Name (required) — Name of the Certificate.
  • Type — Type of the certificate, either 'uploaded' for user-provided certificates or 'managed' for Hetzner-managed certificates.
  • Domain Names — List of domain names to include in the certificate.
  • Private Key — Private key associated with the certificate, required for uploaded certificates.
  • Labels — Optional user-defined labels as key-value pairs to tag the certificate with.

Output shape

a single JSON object representing the newly created certificate including its properties and metadata.

The operation returns the details of the created certificate as provided by the Hetzner Cloud API response.

Examples

Example 1: Create an uploaded type certificate with custom domain names and private key.

Specify certificate 'Name', set 'Type' to 'uploaded', provide the 'Domain Names', and include the 'Private Key'. Optionally add labels as key-value pairs.

Example 2: Create a managed type certificate with domain names and labels but no private key.

Specify 'Name', set 'Type' to 'managed', provide the domain names, and optionally define labels. Do not provide a private key.

Links

Discussion