[android-developers] Re: SSL Client Authentication Broken in Android 4.0
when I made the certificate in openssl I did not call X509_sign() to
sign it...for my use case it didn't need to be signed so I hadn't
bothered.
I changed my code so that I signed the certificate with its private
key and then added the signed certificate to the STACK_OF(X509)
certificate authority cert chain used to created the pkcs12
certificate with pkcs12_create().
I believe I didn't have to pass the SSLSocketFactory a truststore
because that information was included in the pkcs12 certificate via
the CA cert chain.
On Jan 9, 10:20 pm, Nikolay Elenkov <nikolay.elen...@gmail.com> wrote:
> On Tue, Jan 10, 2012 at 3:12 PM, Carl Minden <carlmin...@gmail.com> wrote:
>
> > On Jan 8, 9:04 pm, Nikolay Elenkov <nikolay.elen...@gmail.com> wrote:
> >> Are you using a self-signed certificate for the server? If you are, you
> >> need to either add it to the system trust store, or pass your custom
> >> trust store to SSLSocketFactory.
>
> > I was actually using an unsigned certificate which turned out to be
> > the problem...
>
> What do you mean by an 'unsigned certificate'?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home