Home Decrypt apple-app-site-association in browser
Reply: 0

Decrypt apple-app-site-association in browser

user4771
1#
user4771 Published in September 20, 2018, 4:35 pm

I'm building a tool to verify deep links set up with Apple's apple-app-site-association files. In some cases, these files are pkcs7-mime encrypted.

Is there any way currently to decrypt these files entirely on the client? I've researched WebCrypto and similar tools but I can't find a solution.

Essentially, I'd like to replicate the following openssl command in JS:

openssl smime -verify -inform DER -noverify -in apple-app-site-association.p7m

This should successfully output valid JSON, such as:

{
"applinks": {
    "apps": [],
    "details": [
        {
            "appID": "4MU37S3E4Q.com.couchsurfing.CouchSurfing",
            "paths": [
                        "NOT /people/*/*",
                        "NOT /users/*/*",
                        "NOT /events/*/*",
                        "NOT /events/past",
                        "NOT /events/attending",
                        "NOT /events/organizing",
                        "NOT /events/featured",
                        "NOT /users/confirmation",
                        "/users/*",
                        "/people/*",
                        "/events/*",
                        "/get_verified",
                        "/messages/*",
                        "/hosting",
                        "/mobile-hangouts"
                     ]
        }
    ]
}
}

Any help is much appreciated!

share|improve this question

1 Answer 1

active oldest votes
up vote 2 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.349233 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO