iOS Question Mac Hosted Issue?

nicieri

Active Member
Licensed User
Longtime User
1. Everything was working fine, I could test my apps on my iphone.
2. Suddenly I got the message: "could not connect to...10.37.129.2"
3. Whit this problem I uninstalled the application for try to install again B4iBridge.

4. All works great in the simulator but not in the iphone, i have installed correctly the certificate.

Note that the IP of Server is 10.37.129.2, the realy ip of my mac is 192.168.15.3.

http://192.168.15.3:51041/test This work! but i can see this =
Mac SSL Key
Invalid key!!!
SSL port: 51042 ???? ¿Invalid Key?

In the mac:
http://10.37.129.2:51041/test ---- This Work
http://192.168.15.3:51041/test --- This Work

In my WindowsPC (Parallels):
http://10.37.129.2:51041/test ---- This Work
http://192.168.15.3:51041/test --- This NOT Work


In my iPhone:
http://10.37.129.2:51041/test ---- This Work
http://192.168.15.3:51041/test --- This NOT Work

When I try to install the B4i Bridge in my iphone "Build B4i Bridge App" works great:
Open mobile Safari and navigate to: 192.168.15.3:51041/myuser
Then click on the Install button.
Troubleshooting:
1. Make sure that B4I certificate is installed (www.b4x.com/ca.pem).
2. Make sure that the provisioning file includes the target device UDID.
3. Check the link for typos.
Completed successfully


This open the page on safari for install, but when i clicked the button the answer is "could not connect to 10.37.129.2"

Any Idea? Why I have an "Invalid Key" SSL? Why cannot connect?

This is the mac server log on server started:


.1.z-SNAPSHOT
-bash: 2016-01-18: command not found
CieriPro:macserver cieri$ 2016-01-18 20:00:00.329:WARN:eek:ejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale es_ES
> 2016-01-18 20:00:00.339:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@2c677b56{/,file:/Users/cieri/Documents/macserver/www,AVAILABLE}
> 2016-01-18 20:00:00.341:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened /Users/cieri/Documents/macserver/logs/b4j-2016_01_19.request.log
> 2016-01-18 20:00:00.352:INFO:eek:ejs.ServerConnector:main: Started ServerConnector@12c12bfd{HTTP/1.1}{0.0.0.0:51041}
> 2016-01-18 20:00:00.521:INFO:eek:ejs.ServerConnector:main: Started ServerConnector@5cc145f9{SSL-http/1.1}{0.0.0.0:51042}
> 2016-01-18 20:00:00.522:INFO:eek:ejs.Server:main: Started @362ms
> Build server is ready
> https://10.37.129.2:51042
> http://10.37.129.2:51041
> Build server version: 2.3

This is the log for the command "keytool -list -v -keystore key.jks -storepass 123456" in Key Folder:

Tipo de Almacén de Claves: JKS
Proveedor de Almacén de Claves: SUN

Su almacén de claves contiene 2 entradas

Nombre de Alias: rootca
Fecha de Creación: 18/01/2016
Tipo de Entrada: trustedCertEntry

Propietario: EMAILADDRESS=[email protected], CN=B4I, OU=B4I, O=Anywhere Software, ST=Some-State, C=IL
Emisor: EMAILADDRESS=[email protected], CN=B4I, OU=B4I, O=Anywhere Software, ST=Some-State, C=IL
Número de serie: 92425c6446286aef
Válido desde: Tue Jul 22 02:37:28 CDT 2014 hasta: Fri Jul 19 02:37:28 CDT 2024
Huellas digitales del Certificado:
MD5: BC:DE:EC:52:AD:15:92:F0:E2:C4:F0:67:03:02:A6:24
SHA1: EE:99:4D:77:D1:96:B9:05:2E:45:62:C9:2A:E3:4E:77:0C:7E:01:E1
SHA256: FE:B2:BE:0F:AA:78:08:DD:D2:FE:FF:48:13:27:B0:08:A6:18:E0:16:BF:0D:95:3C:15:B4:F9:7A:63:3C:29:A1
Nombre del Algoritmo de Firma: SHA1withRSA
Versión: 3

Extensiones:

#1: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
0000: 6F 9F DF FD 2D 56 17 00 34 02 26 AA 95 33 37 80 o...-V..4.&..37.
0010: 74 79 6A B5 tyj.
]
[EMAILADDRESS=[email][email protected][/email], CN=B4I, OU=B4I, O=Anywhere Software, ST=Some-State, C=IL]
SerialNumber: [ 92425c64 46286aef]
]

#2: ObjectId: 2.5.29.19 Criticality=false
BasicConstraints:[
CA:true
PathLen:2147483647
]

#3: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 6F 9F DF FD 2D 56 17 00 34 02 26 AA 95 33 37 80 o...-V..4.&..37.
0010: 74 79 6A B5 tyj.
]
]



*******************************************
*******************************************


Nombre de Alias: jetty
Fecha de Creación: 18/01/2016
Tipo de Entrada: PrivateKeyEntry
Longitud de la Cadena de Certificado: 2
Certificado[1]:
Propietario: CN=10.37.129.2, OU=B4I, O=Anywhere Software, ST=Some-State, C=IL
Emisor: EMAILADDRESS=[email protected], CN=B4I, OU=B4I, O=Anywhere Software, ST=Some-State, C=IL
Número de serie: 4
Válido desde: Mon Jan 18 19:38:24 CST 2016 hasta: Thu Jan 15 19:38:24 CST 2026
Huellas digitales del Certificado:
MD5: DE:E7:23:90:AA:FA:4C:BA:9E:CD:72:9E:AF:0F:1F:AA
SHA1: B6:B5:8A:7F:82:74:90:69:DB:A4:E7:CE:96:7C:C3:DA:EC:0E:49:92
SHA256: DB:2D:01:FD:4B:12:75:57:61:7B:D4:1F:26:21:E5:65:FA:0A:5F:53:42:B5:BA:B1:56:13:9D:35:93:4E:2E:D4
Nombre del Algoritmo de Firma: SHA1withRSA
Versión: 3

Extensiones:

#1: ObjectId: 2.16.840.1.113730.1.13 Criticality=false
0000: 16 1D 4F 70 65 6E 53 53 4C 20 47 65 6E 65 72 61 ..OpenSSL Genera
0010: 74 65 64 20 43 65 72 74 69 66 69 63 61 74 65 ted Certificate


#2: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
0000: 6F 9F DF FD 2D 56 17 00 34 02 26 AA 95 33 37 80 o...-V..4.&..37.
0010: 74 79 6A B5 tyj.
]
]

#3: ObjectId: 2.5.29.19 Criticality=false
BasicConstraints:[
CA:false
PathLen: undefined
]

#4: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 39 57 E3 E3 29 BC 55 62 E8 27 67 62 75 8C 92 16 9W..).Ub.'gbu...
0010: FE 1D F5 F2 ....
]
]

Certificado[2]:
Propietario: EMAILADDRESS=[email protected], CN=B4I, OU=B4I, O=Anywhere Software, ST=Some-State, C=IL
Emisor: EMAILADDRESS=[email protected], CN=B4I, OU=B4I, O=Anywhere Software, ST=Some-State, C=IL
Número de serie: 92425c6446286aef
Válido desde: Tue Jul 22 02:37:28 CDT 2014 hasta: Fri Jul 19 02:37:28 CDT 2024
Huellas digitales del Certificado:
MD5: BC:DE:EC:52:AD:15:92:F0:E2:C4:F0:67:03:02:A6:24
SHA1: EE:99:4D:77:D1:96:B9:05:2E:45:62:C9:2A:E3:4E:77:0C:7E:01:E1
SHA256: FE:B2:BE:0F:AA:78:08:DD:D2:FE:FF:48:13:27:B0:08:A6:18:E0:16:BF:0D:95:3C:15:B4:F9:7A:63:3C:29:A1
Nombre del Algoritmo de Firma: SHA1withRSA
Versión: 3

Extensiones:

#1: ObjectId: 2.5.29.35 Criticality=false
AuthorityKeyIdentifier [
KeyIdentifier [
0000: 6F 9F DF FD 2D 56 17 00 34 02 26 AA 95 33 37 80 o...-V..4.&..37.
0010: 74 79 6A B5 tyj.
]
[EMAILADDRESS=[email][email protected][/email], CN=B4I, OU=B4I, O=Anywhere Software, ST=Some-State, C=IL]
SerialNumber: [ 92425c64 46286aef]
]

#2: ObjectId: 2.5.29.19 Criticality=false
BasicConstraints:[
CA:true
PathLen:2147483647
]

#3: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 6F 9F DF FD 2D 56 17 00 34 02 26 AA 95 33 37 80 o...-V..4.&..37.
0010: 74 79 6A B5 tyj.
]
]



*******************************************
*******************************************

Any idea?
 

nicieri

Active Member
Licensed User
Longtime User
This not work:

I tryed:

manual:192.168.15.3 (the same as the mac address)
manual:192.168.15.8
manual:192.168.15.16

Is the same, "could not connect to... "
 
Upvote 0

nicieri

Active Member
Licensed User
Longtime User
Now, I manually installed the "B4i Bridge" from iTunes.


The design mode works fine. I can see the changes of my designer in the iPhone.

But when I try to Run the proyect in the iPhone, the message in the iPhone is: "could not connect to.. 192.168..."

Why?

Maybe this?
Mac SSL Key
Invalid key!!!
SSL port: 51042 ???? ¿Invalid Key?



The strangest thing is that before worked very well.
 
Upvote 0

nicieri

Active Member
Licensed User
Longtime User
I've tried it and nothing.


I was created again the certificate and the provisioning profile.

The problem persists. "could not connect to..."

and

Mac SSL Key

Invalid key!!!
SSL port: 51042
 
Upvote 0

nicieri

Active Member
Licensed User
Longtime User
Just to be documented.

If someone were to have the same problem, this is the only solution I found:


Updating in Mac Computer the server to Build 2.5 the problem was fixed!.. now.. I can develop again directly to my iPhone.
 
Upvote 0
Top