Group
Extension

Matches 5

Net-ACME ( F/FE/FELIPE/Net-ACME-0.17.tar.gz, FELIPE, 2019; MetaCPAN )
Net-ACME/lib/Net/ACME.pm ( view source; MetaCPAN )
sed under the same terms as Perl.

=cut

use strict;
use warnings;

use Crypt::Format     ();
use JSON              ();
use MIME::Base64      ();

use Net::ACME::Authorization::Pending      ();
use Ne
E::Utils::get_jws_data(
#                $new_key,
#                undef,
#                JSON::encode_json($sub_payload),
#            ),
#        },
#    );
#
#    if ($resp->status() != 200) {
# 
st_url(
        $authz->uri(),
        {
            resource => 'authz',
            delete   => JSON::true(),
        },
    );

    $resp->die_because_unexpected() if $resp->status() != 200;

    r
Net-ACME ( F/FE/FELIPE/Net-ACME-0.17.tar.gz, FELIPE, 2019; MetaCPAN )
Net-ACME/lib/Net/ACME/HTTP/Response.pm ( view source; MetaCPAN )

use strict;
use warnings;

use parent qw( HTTP::Tiny::UA::Response );

use Call::Context ();
use JSON          ();

use Net::ACME::X ();

sub die_because_unexpected {
    my ($self) = @_;

    die Ne
thing but certificate issuance, apparently?
sub content_struct {
    my ($self) = @_;

    return JSON->new()->allow_nonref()->decode( $self->content() );
}

#A “poor man’s Link header parser” t
Net-ACME ( F/FE/FELIPE/Net-ACME-0.17.tar.gz, FELIPE, 2019; MetaCPAN )
Net-ACME/lib/Net/ACME/HTTP.pm ( view source; MetaCPAN )
s communication with an ACME server at the HTTP level.
It handles the wrapping of POSTs in JWSes (JSON Wed Signatures).

Failure responses prompt exceptions. This includes cases like HTTP 409
from “
 an B<error> case so much as just
something to accommodate.

=cut

use strict;
use warnings;

use JSON ();

use Net::ACME::Crypt          ();
use Net::ACME::Error          ();
use Net::ACME::HTTP_Tiny
needed “key” to do POST! ($url)" if !$self->{'_acme_key'};

    my $jws = $self->_create_jws( JSON->new()->allow_nonref()->encode($data) );

    return $self->_request_and_set_last_nonce(
        
Net-ACME ( F/FE/FELIPE/Net-ACME-0.17.tar.gz, FELIPE, 2019; MetaCPAN )
Net-ACME/lib/Net/ACME/X/HashBase.pm ( view source; MetaCPAN )
attrs ], $class;
}

sub get {
    my ( $self, $attr ) = @_;

    #Do we need to clone this? Could JSON suffice, or do we need Clone?
    return $self->[1]{$attr};
}

sub to_string {
    my ($self) = @
Net-ACME ( F/FE/FELIPE/Net-ACME-0.17.tar.gz, FELIPE, 2019; MetaCPAN )
Net-ACME/lib/Net/ACME/Crypt.pm ( view source; MetaCPAN )
-----------------------------------------------------------------

use strict;
use warnings;

use JSON              ();
use MIME::Base64      ();

use Crypt::Perl::PK ();

use Net::ACME::X ();

#As pe
eader
    $header->{alg} = $alg;

    # encode header
    my $json_header = _encode_json($header);
    my $b64u_header = _encode_b64u($json_header);

    my $signer_cr = $args{'signer_cr'};

    my $b
e);
}

sub _encode_json {
    my ($payload) = @_;

    #Always do a canonical encode so that we can test more easily.
    #Note that JWS itself does NOT require this.
    return JSON->new()->canonical

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.