lib/puppet/provider/mobileconfig.rb
def parse_cert_data_from_blob(blob)
    begin
      blob = Base64.decode64(blob)
      OpenSSL::X509::Certificate.new blob
    rescue OpenSSL::X509::CertificateError => e
      raise Puppet::Error, "##{__method__}:
        Could not parse certificate data! [#{e.message}]"
    end
    blob
  end
# Validates a Blob as a com.apple.security.pkcs1 Certificate Payload
Validates a Blob as a com.apple.security.pkcs1 Certificate Payload
Validates a Blob as a com . apple . security . pkcs1 Certificate Payload
def parse_cert_data_from_blob(blob)
    begin
      blob = Base64.decode64(blob)
      OpenSSL::X509::Certificate.new blob
    rescue OpenSSL::X509::CertificateError => e
      raise Puppet::Error, "##{__method__}:
        Could not parse certificate data! [#{e.message}]"
    end
    blob
  end
def parse_cert_data_from_blob ( blob ) begin blob = Base64 . decode64 ( blob ) OpenSSL :: X509 :: Certificate . new blob rescue OpenSSL :: X509 :: CertificateError => e raise Puppet :: Error , "##{__method__}:
        Could not parse certificate data! [#{e.message}]" end blob end
Validates a Blob as a com.apple.security.pkcs1 Certificate Payload
Validates a Blob as a com . apple . security . pkcs1 Certificate Payload
blob