NAME

WWW::Hetzner::Cloud::Certificate - Hetzner Cloud Certificate object

VERSION

version 0.002

SYNOPSIS

my $cert = $cloud->certificates->get($id);

print $cert->name, "\n";
print $cert->type, "\n";  # uploaded or managed
print join(", ", @{$cert->domain_names}), "\n";

# Update
$cert->name('new-name');
$cert->update;

# Delete
$cert->delete;

DESCRIPTION

This class represents a Hetzner Cloud certificate. Objects are returned by WWW::Hetzner::Cloud::API::Certificates methods.

id

Certificate ID (read-only).

name

Certificate name (read-write).

certificate

Certificate PEM content (read-only).

domain_names

Arrayref of domain names covered by this certificate (read-only).

fingerprint

Certificate fingerprint (read-only).

status

Certificate status hash (read-only).

type

Certificate type: uploaded or managed (read-only).

labels

Labels hash (read-write).

created

Creation timestamp (read-only).

not_valid_before

Certificate validity start timestamp (read-only).

not_valid_after

Certificate validity end timestamp (read-only).

is_managed

Returns true if this is a managed certificate.

is_valid

Returns true if certificate issuance is completed.

update

$cert->name('new-name');
$cert->update;

Saves changes to name and labels.

delete

$cert->delete;

Deletes the certificate.

retry

$cert->retry;

Retries issuance for a managed certificate.

data

my $hashref = $cert->data;

Returns all certificate data as a hashref (for JSON serialization).

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-hetzner/issues.

IRC

Join #kubernetes on irc.perl.org or message Getty directly.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.