Config::Apple::Profile::Payload::Certificate::PEM - Certificate payload with a PEM-format certificate.
use Config::Apple::Profile; use Config::Apple::Profile::Payload::Certificate::PEM; my $cert = new Config::Apple::Profile::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 Config::Apple::Profile; push @{$profile->content}, $cert; print $profile->export;
This class implements the PEM type of Certificate payload.
This payload contains a single certificate, in a PKCS#1 container, PEM-encoded. If you have 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.
The following instance methods are provided, or overridden, by this class.
Performs additional validation for a certain payload key in this class:
PayloadContent
This must be a PEM-format certificate that OpenSSL can recognize.
All other payload keys will be checked as usual by the parent class.
See also the documentation in Config::Apple::Profile::Payload::Common.
All of the payload keys defined in Config::Apple::Profile::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.
com.apple.security.pem
PayloadVersion
This is fixed to the value 1.
1
Refer to Config::Apple::Profile for acknowledgements.
A. Karl Kornel, <karl at kornel.us>
<karl at kornel.us>
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.
To install Config::Apple::Profile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::Apple::Profile
CPAN shell
perl -MCPAN -e shell install Config::Apple::Profile
For more information on module installation, please visit the detailed CPAN module installation guide.