NAME
WWW::LetsEncrypt::Message::Certificate - ACME messages
SYNOPSIS
use WWW::LetsEncrypt::JWK;
use WWW::LetsEncrypt::Message::Certificate;
my $JWK = ...;
my $DER_encoded_ssl_cert_string = ...;
my $CertMsg = WWW::LetsEncrypt::Message::Certificate->new({
	cert  => $DER_encoded_csr_string,
	JWK   => $JWK,
	nonce => 'nonce_string',
});
my $result_ref = $CertMsg->do_request();
if ($result_ref->{successful}) {
	if ($result_ref->{finished}) {
		my $DER_encoded_cert_string = $result_ref->{cert};
		# do a thing with ^
	} else {
		sleep $CertMsg->retry_time;
		# while !sucessful
		$result_ref = $CertMsg->do_request();
		# then do a thing with $result_ref->{cert}
		# it contains the DER encoded signed certificate
	}
}
---------------------------
my $CertMsg = WWW::LetsEncrypt::Message::Certificate->new({
	cert   => $DER_encoded_cert_string,
	JWK    => $JWK,
	nonce  => 'nonce_string',
	revoke => 1,
});
my $result_ref = $CertMsg->do_request();
# Check successful if it will be revoked.
DESCRIPTION
This module implements certificate requests and revocation messages for the ACME protocol.
Attributes
- cert
 - 
a scalar string that is the DER encoded CSR for certificate requests OR DER encoded CERT for certificate revocation. Note: This MUST be a DER encoded string. PEM is not going to cut it. This attribute is required.
 - revoke
 - 
a scalar boolean that causes the message to perform revocation.
 
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 271:
 =back without =over