How to get existing keystore password? - react-native

I have keystore however I forget password of it so I cant get apk in react-native.
Is there a way to find password of keystore file ?

You can apply bruteforce, dictionary, mixed strategies with software tools like Android Keystore Password Recovery: anyway it will require time.
In the event that you are in the need of updating an app in Play store, consider also asking for an upload key reset by Google, by providing a new upload_certificate.pem from fresh keystore to them.

Related

how to change React native app SHA1 value?

I have a app along with keystore file and sha1 value. But due to some errors I have to rebuild the app to another app. Now my sha1 value has been changed and I want to give the google play update to same app. I have everything from keystore password to keystore alias name. The google play console is giving this error : "Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again. Your app bundle is expected to be signed with the certificate with fingerprint:". How can I overcome this problem?
The name of your given file must be the same "name" you have in your package.json.

ERROR ITMS-90163: "Invalid Code Signing Entitlements - expo build

I want to upload my apps using Expo to app store connect. Unfortunately, it failed and return this message
ERROR ITMS-90163: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. The bundle contains a key that is not included in the provisioning profile: 'com.apple.developer.icloud-services' in 'Payload/ExpoKitApp.app/ExpoKitApp'."
I already tried couple ways to build the apps by:
let expo handle the certificate
Manually generate the provisioning profile and certificate itself
Any thoughts to solve this problem?
notes: I already defined a unique bundle identifier name as well and already detected on bundle id in My App on appstore connect
Thanks :)
For anyone who finds this now. If you are having this problem in the expo managed workflow, you need to do 2 things.
First, in your apple developer account dashboard you must navigate to Certificates, Identfiers and Profiles.
In Identifiers, you must edit the identifier and check the box next to ICloud (or any other of the features listed there that you want, e.g. Associated Domains for Universal Links)
Second, you must build with a new provisioning profile using:
expo build:ios -t archive --clear-provisioning-profile
You may manually provide a new provisioning profile or let expo handle it. If you choose not to revoke the previous provisioning profile, you should choose to use a new one when asked.

Uploading my second app to the app store? What should i do?

The first time i uploaded an app to the app store i followed a youtube tutorial. Now i want to upload my second app. I have a lot of trouble understanding the process to upload an app. I've create a Provisioning profile, A certificate and a Distribution profile for my first app, am i supposed to use those again? Do i need to create a new provisioning profile, a new certificate and a new distribution profile? It's really confusing since i've been coding for less then 2 months.
Some step-by-step information would be very helpful. Thanks in advance.
The process is not as complicated as it seems
You need one developer certificate for testing and one distribution certificate for deployment (ad hoc or AppStore). If you have a valid certificate (given that you submitted an app already), then make sure you have it in your keychain (with the private key).
For a new app, you need to create a new appID. Remember that it should match the bundle identifier in your Xcode project.
With the distribution certificate and the appID, you can create a new distribution provisioning profile that needs to be downloaded to your machine. And should be used for the code signing in Xcode.
So, short answer. Use you current (valid) distribution certificate, add a new appID (matching your bundle identifier) to create a new Distribution Provisioning Profile. Use the profile to code signe your project.
Good luck... enrique
Definitely you need another provisioning profile connected to new APP ID for your second app
You dont need a new certificate though you need separate Appstore distribution provision profile.
Before creation of provision profile, you need to create APP ID.
After new APP ID you need to create new provision profile, you would be asked for select distribution certificate and you can select previous one there and also would be asked for APP ID and there you need to select your second app id (not older one).
Please check Apple Distribution Guide. It has clear instruction to do so.
And you can also checkout this tutorial. It may help you.

How to prevent message dialog "myapp wants to sign using privateKey ..." on OSX?

I've developed application which communicates with my own server over HTTPS. And I use .p12 certificate for mutual authorization. The problem is that after I send first request on server I receive OSX's dialog message:
I know that need to make code sign but:
Can I make some workaround/hack/trick to prevent it? Please note that my app is not going to go on Mac Store. So I could use any private API.
If we can't prevent this dialog then what should I do:
1. Code sign my application via Mac Developer Program?
2. Or make trusted my p12 certificate?
If need to make some of these items above please provide a quote as proof from Apple's documentation.
I use OSX 10.8 an later.
Code signing your application is the most straightforward way to avoid this dialog. When importing the certificate and private key your signed application and future versions that match its designated requirement will be given access to the key for all purposes. See Mac OS X Code Signing In Depth and the Code Signing Guide for more information.
On your development systems that have already imported the key into the keychain you may see the authorization prompt one additional time, on systems that do not yet have the key in the keychain the prompt shouldn't appear at all.

Retrieving data programmatically from a Configuration Profile in IOS

I have been searching all over the apple documentation, including these forums, yet was not able to retrieve a certificate from a configuration profile that I had created and installed on my iPhone.
More specifically:
Using the iPhone Configuration Utility, I created a simple configuration profile that contains a certificate under the Credentials tab.
I am now trying to retrieve this certificate using my iPhone app but without any luck of coming across useful documentation/examples.
I know how to extract PKCS12 data - I just don't know where to find the certificate data to begin with.
Is there a path to the certificate data or to an NSDictionary of configuration profile values?
It seems it is not possible currently to read a profile. See https://devforums.apple.com/message/533356 (requires login).
Was looking for the same thing, to authenticate user as an enterprise employee.