Re: [android-developers] Public Key to XMLDSIG sign

2013-01-10 Thread mbarbiero
Thanks Nikolay, I think you are right because the publickey that returned from android contains extra HEX code before and after the code generated by my other application. However, i don't understood how to work your code. Can you help me again? Thanks a lot. -- You received this message

Re: [android-developers] Public Key to XMLDSIG sign

2013-01-10 Thread Nikolay Elenkov
On Thu, Jan 10, 2013 at 10:03 PM, mbarbiero marco.barbi...@gmail.com wrote: Thanks Nikolay, I think you are right because the publickey that returned from android contains extra HEX code before and after the code generated by my other application. However, i don't understood how to work your

Re: [android-developers] Public Key to XMLDSIG sign

2013-01-10 Thread mbarbiero
I finally discovered what kind of public key I need: is a PEM format like below. How I do this? Thanks code-BEGIN CERTIFICATE- MIIDuDCCAqACCQDxZX5jygcxvzANBgkqhkiG9w0BAQUFADCBnTELMAkGA1UEBhMC VE4xEDAOBgNVBAgMB1RVTklTSUUxDTALBgNVBAcMBFNGQVgxFTATBgNVBAoMDElu

Re: [android-developers] Public Key to XMLDSIG sign

2013-01-10 Thread mbarbiero
Em quinta-feira, 10 de janeiro de 2013 21h21min36s UTC-2, mbarbiero escreveu: I finally discovered what kind of public key I need: is a PEM format like below. How I do this? Thanks code-BEGIN CERTIFICATE- MIIDuDCCAqACCQDxZX5jygcxvzANBgkqhkiG9w0BAQUFADCBnTELMAkGA1UEBhMC

[android-developers] Public Key to XMLDSIG sign

2013-01-07 Thread mbarbiero
Dear... I need to create a app to generate XML DSIG compliance signature . My first options, obviously, is use a magic Java class that sign XML in one pass, but not exist in Android. Then, I need create a code to: 1 - read a certificate into keystore; 2 - extract private key and public key; 3 -

Re: [android-developers] Public Key to XMLDSIG sign

2013-01-07 Thread Nikolay Elenkov
On Thu, Dec 27, 2012 at 9:47 PM, mbarbiero marco.barbi...@gmail.com wrote: My problem is in the pass 2... I extract public key from certificate, but It is not equal to the PublicKey XML DSIG generated by other aplications. If you don't get exceptions while creating the keys, you are probably