passbook icon indicating copy to clipboard operation
passbook copied to clipboard

certificate as binary

Open MinalSoni opened this issue 8 years ago • 1 comments

For multiple certificates which are saved on cloud, instead of creating TempFile we have binary data of certificate that is not Pathname.To add binary data as certificate support in signer.

MinalSoni avatar Apr 10 '17 11:04 MinalSoni

if you don't want to wait for merge add this code to your initializer

require 'passbook'

module Passbook
  class Signer
    class File
      def self.read(filename)
        filename
      end
    end
  end
end


Passbook.configure do |passbook|
  passbook.wwdc_cert       = ENV['PASSBOOK_INSURANCE_CARD_WWDC_CERT']
  ....
end

but after that you can't use files

pironim avatar Dec 15 '21 16:12 pironim