Thank you, Nikolay, for your reply to my question.  I downloaded and
installed spongycastle. However, it still didn't work because the jar
does not include the classes specifically for the certification
generation.  I saw the POM exclude those packages explicitly.  So, I
commented out the exclusion and tried to recompile   I could not do
maven install because the many tests failed, event though I exclude
all the tests.
Do you know what's the best way to recompile the jar which include the
cms, operator, cert, jcejca packages?

QD

On Feb 11, 11:31 pm, Qin Ding <[email protected]> wrote:
> I have a need to generate X509v3Certificate on Android device.  Since
> android supports Bouncycastle, I downloaded the latest BC library (1.46)
> and installed onto Android.  I have code already that generates the X509v3
> cert. I modified the existing code by explicitly include the BC provider.
>  It works only outside Android. The code creates self-signed certificate
> that can be viewed via cert standard cert viewer.  When I moved the code
> inside the android activity class, it does not work anymore.  First the
> android dumps so many "ambicuouse classes" message and discovered old
> classes and block the code message in the catlog.  All these message are
> related to the bouncycastle.  Then there are a few messages related to my
> code, generally, it does not recognize some methods, and static fields....
>
> Since we are supporting our app in Android 2.2 and up, I am testing my code
> in android 2.2.  My requirement is to generate a self-signed cert and then
> post it via json.  I realized that the android 2.2 has bouncycastle 1.35.
>  If anyone has the experience that writes the cert using BC in Android, can
> you share your experience in terms of BC version you used and whether your
> code works in other android versions.
>
> Thank you very much.
>
> QD

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to