Android Question Certificates usage Example

Rabbit

Member
Licensed User
Hi,
Is there any example for certificate example usage?

the library is Encryption: but is there complete example for these functions?

Initialise (algorithm As String, mode As Int, key As java.security.Key)
Sign As Byte()
SIGNATURE_SIGN As Int
SIGNATURE_VERIFY As Int
Update (data() As Byte)
Verify (signature() As Byte) As Boolean
Version As Double [read only]


Regards,
 

Rabbit

Member
Licensed User
Hi Erel,
I checked the reference but still I need these answers plz:
1) The certificate type do I need to use PEM or CERT oor P12?
2) How I can extract the public key fro the cert?
3) How to extract the private key from my cert?
4) if I have chain of certs can I verify all of them as one cert?

Regards
 

Rabbit

Member
Licensed User
Do you suggest work around to resolve this issue?
I need the certificate for the public key and verification from USER1<-CA->USER2

Regards,
 
Top