NAME

XML::AppleConfigProfile::Payload::Certificate::PEM - Certificate payload with a PEM-format certificate.

SYNOPSIS

use XML::AppleConfigProfile::Profile;
use XML::AppleConfigProfile::Payload::Certificate::PEM;

my $cert = new XML::AppleConfigProfile::Payload::Certificate::PEM;
$cert->payload->{PayloadIdentifier} = 'local.acme.CAcert';
$cert->payload->{PayloadDisplayName} = 'AcmeCorp internal CA';
$cert->payload->{PayloadDescription} = 'The certificate authority used for internal web sites.';
$cert->payload->{PayloadOrganization} = 'Acme, Inc.';
$cert->payload->{PayloadCertificateFileName} = 'acme.crt'; 
$cert->payload->{PayloadContent} = '.................'; # Long string here

my $profile = new XML::AppleConfigProfile::Profile;
push @{$profile->content}, $cert;

print $profile->string;

DESCRIPTION

This class implements the PEM type of Certificate payload.

This payload contains a single certificate, in a PKCS#1 container, PEM-encoded. In other words, if you've got a file that has "BEGIN CERTIFICATE" in it, you've probably got this type of certificate.

This payload is used to hold only one certificate. If you have multiple certificates, use multiple payloads.

PAYLOAD KEYS

All of the payload keys defined in XML::AppleConfigProfile::Payload::Common::Certificate are used by this payload.

This payload has the following additional keys:

PayloadType

This is fixed to the string com.apple.security.pem.

PayloadVersion

This is fixed to the value 1.

ACKNOWLEDGEMENTS

Refer to the XML::AppleConfigProfile for acknowledgements.

AUTHOR

A. Karl Kornel, <karl at kornel.us>

COPYRIGHT AND LICENSE

Copyright © 2014 A. Karl Kornel.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 107:

Non-ASCII character seen before =encoding in '©'. Assuming UTF-8