lib/puppet/provider/mobileconfig.rb
def process_certificate_payload(payload)
    data = case payload['PayloadContent']
    when CFPropertyList::Blob
      parse_cert_data_from_blob(payload['PayloadContent'])
    when String
      parse_cert_data_from_string(payload['PayloadContent'])
    else
      raise Puppet::Error, "Invalid Certificate Data!"
    end
    payload['PayloadContent'] = CFPropertyList::Blob.new data
    payload
  end
# Processes the com.apple.security.pkcs1 PayloadContent as required
#
# This provider allows PayloadContent for com.apple.security.pkcs1
# to be expressed as PEM (ASCII), Base64 Encoded binary, or a Base64
# encoded CFPropertyList::Blob.
#
# Parsable data is validated using OpenSSL.
#
# It should be able to determine what you are passing in, but if it
# can't, an Exception is raised.
#
Processes the com.apple.security.pkcs1 PayloadContent as required
This provider allows PayloadContent for com.apple.security.pkcs1
to be expressed as PEM (ASCII), Base64 Encoded binary, or a Base64
encoded CFPropertyList::Blob.

Parsable data is validated using OpenSSL.

It should be able to determine what you are passing in, but if it
can't, an Exception is raised.
Processes the com . apple . security . pkcs1 PayloadContent as required This provider allows PayloadContent for com . apple . security . pkcs1 to be expressed as PEM ( ASCII ) Base64 Encoded binary or a Base64 encoded CFPropertyList :: Blob . Parsable data is validated using OpenSSL . It should be able to determine what you are passing in but if it can ' t an Exception is raised .
def process_certificate_payload(payload)
    data = case payload['PayloadContent']
    when CFPropertyList::Blob
      parse_cert_data_from_blob(payload['PayloadContent'])
    when String
      parse_cert_data_from_string(payload['PayloadContent'])
    else
      raise Puppet::Error, "Invalid Certificate Data!"
    end
    payload['PayloadContent'] = CFPropertyList::Blob.new data
    payload
  end
def process_certificate_payload ( payload ) data = case payload [ 'PayloadContent' ] when CFPropertyList :: Blob parse_cert_data_from_blob ( payload [ 'PayloadContent' ] ) when String parse_cert_data_from_string ( payload [ 'PayloadContent' ] ) else raise Puppet :: Error , "Invalid Certificate Data!" end payload [ 'PayloadContent' ] = CFPropertyList :: Blob . new data payload end
Processes the com.apple.security.pkcs1 PayloadContent as required
This provider allows PayloadContent for com.apple.security.pkcs1
to be expressed as PEM (ASCII), Base64 Encoded binary, or a Base64
encoded CFPropertyList::Blob.
Processes the com . apple . security . pkcs1 PayloadContent as required This provider allows PayloadContent for com . apple . security . pkcs1 to be expressed as PEM ( ASCII ) Base64 Encoded binary or a Base64 encoded CFPropertyList :: Blob .
payload