capt-jk / android-rcs-ims-stack

Automatically exported from code.google.com/p/android-rcs-ims-stack
0 stars 0 forks source link

Using SIP over TLS #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi guys,

This is not really an issue, but a question. I'm trying to using SIPoTLS with 
this app. Is it possible to configure the App so it does not validate the 
Server Certificate?

I'm seing this error message, since I don't have a truststore. Btw, how can I 
create a truststore and how  to use it? is there a FAQ that explains it? 
06-24 15:37:24.728: W/System.err(7733): Caused by: 
javax.net.ssl.SSLHandshakeException: 
java.security.cert.CertPathValidatorException: Trust anchor for certification 
path not found.
06-24 15:37:24.728: W/System.err(7733):     at 
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSo
cketImpl.java:374)
06-24 15:37:24.728: W/System.err(7733):     at 
gov2.nist.javax2.sip.stack.IOHandler.sendBytes(IOHandler.java:308)
06-24 15:37:24.728: W/System.err(7733):     at 
gov2.nist.javax2.sip.stack.TLSMessageChannel.sendMessage(TLSMessageChannel.java:
309)
06-24 15:37:24.728: W/System.err(7733):     at 
gov2.nist.javax2.sip.stack.MessageChannel.sendMessage(MessageChannel.java:250)
06-24 15:37:24.728: W/System.err(7733):     at 
gov2.nist.javax2.sip.stack.SIPTransaction.sendMessage(SIPTransaction.java:734)
06-24 15:37:24.728: W/System.err(7733):     at 
gov2.nist.javax2.sip.stack.SIPClientTransaction.sendMessage(SIPClientTransaction
.java:476)
06-24 15:37:24.728: W/System.err(7733):     at 
gov2.nist.javax2.sip.stack.SIPClientTransaction.sendRequest(SIPClientTransaction
.java:968)
06-24 15:37:24.728: W/System.err(7733):     ... 8 more

Thanks,
Luis

Original issue reported on code.google.com by LuisFilS...@gmail.com on 24 Jun 2013 at 2:00

GoogleCodeExporter commented 9 years ago
This also appears to apply to MSRP over TLS.

Original comment by iiaGa...@gmail.com on 9 Aug 2013 at 4:29

GoogleCodeExporter commented 9 years ago
Can't delete the server certificate validation.
But in provisioning application (Stack tab), you can directly set certificates. 
Then, if the server doesn't use a trusted certificate, you can directly add it.

Original comment by benoit.j...@gmail.com on 12 Nov 2013 at 2:01