I'm trying to resign an ipa which is already signed with the developer certificate. Now I'm resigning with the enterprise distribution certificate. I've got proper provisioning profile, ios_distribution certificate to sign the app. I'm following this answer Re-sign IPA (iPhone) for the resigning steps. With this I'm successfully able to resign the ipa but when I try to install this via itools, I'm getting this error: verification failed as the authority is invalid.
Another thing is I'm resigning with the enterprise distribution certificate but still when i try to install the resigned ipa directly (keeping resigned ipa on dropbox) getting this error "safari can't download this file" which I believe should come when the app is not signed with the enterprise distribution certificate and someone try to download that file directly on iphone (not via appstore or itunes).This certificate says I can distribute this app outside the appstore, so I'm confused what I'm really missing.