philipparndt / mqtt-analyzer

Apache License 2.0
92 stars 6 forks source link

p12 file not showing in app after selecting it #174

Open mmreneb86 opened 1 year ago

mmreneb86 commented 1 year ago

I created a p12 file using the suggested commandline (using OpenSSL on Windows11). pem.cert and private.key came from AWS IOT thing creation wizard.

When I try to select it as a Client PKCS#12 file in MQTTAnalyzer, the app does not show it as being selected/loaded. No confirmation is given that the .p12 file I just selected will be used by the app. The same issue for both local and icloud options.

App doesn't show to need any specific iOS permissions, so there is nothing to experiment with there for me.

I tried; Recreating the .p12 file Rebooting Making sure I had 500MB left on iCloud, clearing sync queue, and rebooting. Uninstalling and reinstalling app.

None of it works.

I can try creating the .p12 file from Ubuntu tomorrow, but the complete lack of response from the app makes me think that is not the culprit here.

Any suggestions?

philipparndt commented 1 year ago

Hi @mmreneb86 Do you see the p12 file in the "files" list? Can you show me a screenshot?

mmreneb86 commented 1 year ago

Hi @philipparndt, sure.

CC530D5C-131D-42A2-9D60-B967F4B88F23 08325358-791F-4295-9FDD-40B63C729897 32EB8103-E1F8-4EC9-BD25-5224625FAB71

The filebrowser sees it. Both on iCloud and on iPhone. But selecting it results in no change to the screen you're returning to. It's almost as if I choose to "Cancel".

philipparndt commented 1 year ago

What happens when you open the file in the iOS file browser outside of the MQTTAnalyzer app? It should show you the file type to be a PKCS#12 file.

The file browser should also show a certificate symbol for the file:

image

I've create an example file by following this guide: https://github.com/philipparndt/mqtt-analyzer/tree/main/Docs/examples/client-certs

Maybe you can try if you can see this file (it is useless as the ca.crt is untrusted but you can check the file type): mqtt-example.p12.zip

I don't expect Windows to be the problem because you mentioned that you have used OpenSSL which is totally fine.

mmreneb86 commented 1 year ago

Thanks @philipparndt, I'll have a look at the link you've provided. In the mean time.

This is how it looks when I single tap in the file browser. 2FBAC324-F58E-4097-A672-DC0DBF163E6E

This is how it looks when I "Get Info". BA781AB9-9133-433D-B0FC-7CBB4A845DA2

This is when I "Quick Look" it. 701E771B-1A3B-47BA-B9F9-43404463EC04

Perhaps it is because my iPhone is not in developer mode? I only want to run MQTTAnalyzer to monitor Topics as a debug tool for my IoT device. I'm not doing any iOS app development.

mmreneb86 commented 1 year ago

Maybe you can try if you can see this file (it is useless as the ca.crt is untrusted but you can check the file type): mqtt-example.p12.zip

This sadly shows the same behaviour. The p12 is not shown in the app.

mmreneb86 commented 1 year ago

Just tested this on an iPhone 12 (previously an iPhone XR). Still doesn't work.

Has the iOS version regressed recently?

I don't have another broker + client keystore to confirm whether the app works over TLS. I know my broker works. And I know the keys are valid, since my ESP32 devices and MQTTX on Windows 11 can use their respective certs to connect to my broker. I've seen this app work over unsecured connections. But I've never seen this app work over TLS. Is there any test environment I can receive a keystore for and connect to?

philipparndt commented 1 year ago

Somehow the file browser does not recognize the file type when it is opened from the App. I do not have a idea why this happens yet.

Can you try to copy the file on your device. I think this can still be done using iTunes on Windows https://support.apple.com/en-us/HT201301. On macOS this can be done using the Finder.

mmreneb86 commented 1 year ago

No dice.

Would it help if I created a temporary certificate to my AWS IOT broker to try?

Running out of ideas here.

ajongen commented 10 months ago

I am having the same issues. Is there any progress on this subject?

philipparndt commented 10 months ago

Hi @ajongen at the moment there is no progress here sorry.

Bara03 commented 5 months ago

same problem here, any progress?

patspam commented 2 months ago

Any updates on this?