Android Question Certificates usage Example

Discussion in 'Android Questions' started by Rabbit, Mar 24, 2015.

  1. Rabbit

    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,
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. Rabbit

    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
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I don't think that the encryption library allows you to work with certificate files at all.
     
  5. Rabbit

    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,
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    I've reread Agraham's documentation about the Signature object. It may allow you to do it.

    You will need to parse the public key file. I think that most formats are not too complicated to parse.
     
    Peter Simpson likes this.
  7. Rabbit

    Rabbit Member Licensed User

    Thank you Erel,
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice