iOS passkit unable to open .pkpass file on mac [closed] - ios

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I want to generate .pkpass file, but it gives following error on the Mac.
"The pass “Sample.pkpass” could not be opened."
All the files are generated correctly. but when I tried to generate pass key file, it is generated with empty content.
openssl pkcs12 -in Certificates.p12 -nocerts -out passkey.pem -passin pass:<import password> -passout pass:<key password>
I am assuming that might be the main issue due to which my manifest are not generated correctly resulting into the .pkpass error.
Can anyone tell me what could be the issue.
Reference:
https://tranzer.com/blogs/how-to-create-your-own-wallet-passes-pkpass/

Related

ActionMailer: Using multiple self-signed certificates

I found this question about how to use a self-signed certificate with ActionMailer on stackoverflow.
According to an answer, it can be done with the code below.
config.action_mailer.smtp_setting = {
...
ssl: true
enable_starttls_auto: false,
openssl_verify_mode: OpenSSL::SSL::VERIFY_PEER,
ca_file: "/etc/ssl/certs/ca-certificates.crt",
...
}
As you can see, a ca_file can be specified with this line ca_file: "/etc/ssl/certs/ca-certificates.crt".
Though the answer is really concise and helped me figure out how to send emails with a self-signed certificate using ActionMailer, it still left me the two following questions.
1) Is it possible to set more than one ,in my case three, different self-signed certificates? If the answer is yes, how?
2) Is it possible to use a .der file as a self-signed certificate instead of a .crt file? or Should I always convert a .der file into a .crt file when I use it as a self-signed certificate?
I couldn't find much information regarding this matter, I would appreciate any help!!
1) Is it possible to set more than one ,in my case three, different self-signed certificates? If the answer is yes, how?
The ca_file can contain multiple CA certificates in PEM format. Just put them one after each other into the file, i.e. cat cert1.pem cert2.pem > ca.pem. Make sure that each of the input files has a line end at the end though.
2) Is it possible to use a .der file as a self-signed certificate instead of a .crt file? or Should I always convert a .der file into a .crt file when I use it as a self-signed certificate?
DER and PEM are both essentially the same data only with a different encoding (binary vs. base64 with some ASCII envelope) and it is easy to convert one into the other. ca_file expects a list of PEM, not DER.

Create PGP key to use with ObjectivePGP in iOS app

I'm making an application that needs encrypt/decrypt GPG messages but it needs generate its own keys (public/private).
I'm using ObjectivePGP and it works great, but it doesn't generate the keys by itself (or I don't know how to do it), so I need to generate it via command line with gpg or some online tools.
My question is: Is there some way to create these keys inside my app? Maybe some framework with appstore friendly license.
Notes:
I've tried with UNNetPGP, but it doesn't work when I try to encrypt messages with public keys generated by other applications or decrypt messages encrypted by these applications. I have even tried just use UNNetPGP just to generate the keys and import them to ObjectivePGP, but I receive messages like "Decrypt key doesn't exist" or similar (this doesn't happen when I use another keys).

Autocomplete search from (json file) works locally not in production rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have implemented a autocomplete functionality using Tokeninput.js. The autocomplete functionality works fine on local but fails to give updated json file in production, the json file gets updated whenever user visits the page. In local it works because i get data from updated json file but in production, the file is getting updated but autocomplete renders old data as if it is rendering from precompiled assets. Json file that is being generated is stored in assets folder. any help is greatly appreciated
Thanks in advance for any help.
Solved it by changing file location to public folder and in production.rb specify config.serve_static_assets = true so that application can server this file. i also gave permission to public folder as specified in comment by #chitranksamaiya
You should give permissions ie read,write,execute to json file generating...
chmod -R 777 yourfolder

Internet explorer 9 version on Rails [duplicate]

This question already exists:
Closed 10 years ago.
Possible Duplicate:
Issues in Internet Explorer 9
IE->not reading file and as in firefox----> s(input_id).files is giving file details and IE----> it is null or undefined value. so let me know how to read file in IE. how do i get file size, file name etc in IE9
I assume that you are trying to access the FileList on the client side using something like document.getElementById("input_id").files.
The files method is part of the File API and not supported by IE9. However, IE10 supports it.

Did Apple change the .mobileprovision file format, and how can I view the current format?

I'm finding many articles on the web where it is implied that you can view the .mobileprovision file contents in a text editor. For example, this Urban Airship post:
When push notifications are enabled for an app, the aps-environment key will appear in the .mobileprovision file specifying the provisioning profile:
<key>Entitlements</key>
<dict>
<key>application-identifier</key>
...
However the mobilprovision files I have (obtained within the last few days) contain 466 1/2 rows of 8 groups of 4 hex digits, (e.g. 4851 3842 4176 2845 0a09 01a2 404d 4382). How can I view this type of file?
Provisioning Profiles are encoded. To decode them and examine the XML you can use this via command line:
security cms -D -i #{#profilePath}
where #{#profilePath} is the filepath to your .mobileprovision file.
A fuller Ruby example is:
require 'plist'
profile = `security cms -D -i #{#profilePath}`
xml = Plist::parse_xml(profile)
appID = xml['Entitlements']['application-identifier']
If you want Sublime Text 2 to be able to read .mobileprovision profiles this is the setting
"enable_hexadecimal_encoding": false,
You are using a text-editor that is a bit too clever for you :D.
Your editor finds out that the file actually is binary and shows it as a hex-dump - for example Sublime 2 does it that way. Open that same file using TextEdit. You will see a couple of lines of binary garbledegock and then some plain-text (XML) that should contain the information you are looking for.
However, do not edit that file using TextEdit, that will render it unusable!
You can use openssl to output the contents of the signed profile.
openssl smime -in /path/to/your.mobileprovision -inform der -verify

Resources