WWW::LetsEncrypt::Message::Certificate - ACME messages
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.
This module implements certificate requests and revocation messages for the ACME protocol.
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.
a scalar boolean that causes the message to perform revocation.
1 POD Error
The following errors were encountered while parsing the POD:
=back without =over
To install WWW::LetsEncrypt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::LetsEncrypt
CPAN shell
perl -MCPAN -e shell install WWW::LetsEncrypt
For more information on module installation, please visit the detailed CPAN module installation guide.