[xmlsec] xmlsec
Aleksey Sanin
aleksey at aleksey.com
Tue Nov 8 16:31:41 PST 2011
xmlsec is not designed for this so there is no easy way to do it.
Aleksey
On 11/8/11 3:35 PM, Baltazar Moreno wrote:
> Thanks for your response.
>
> My english is so bad.. i'm sorry.
>
> I'll try to explain:
>
> I have a key file this file is in PKCS-8 format specifically DER
> and i need to obtain his xml signature format, like this:
>
>
> <RSAKeyValue>
> <Modulus>1KHjZtqkEv1ECTgubPkBz6KrF2oVycKyjtDCHGOsr0iSc8pSRVU8L0BFIxMX5X3bc00C6BxrZDo/f/CIjusnmSX7dO7SXM0EC6VBeBh4PcHz9cVTQ9tLJMnuxH60xkyQXQCmoYPUxWNtLX5N8NWmwRUGlfo9SFL8VgsP3X8bnZk=</Modulus>
> <Exponent>AQAB</Exponent>
> <P>9g3MtFSVVE9iYOyiTWuX9OqeTfPDGcm7XVaEyE5dvVk6lP3XvTo4w7vN5CpbrD4fpg4Bw3zZ6Yu9bm68+HIobw==</P>
> <Q>3To87MOrKL7RvKPI3Iy1j1c4aSDOY7GQOs/iZJW8eRrE0qEF9ja6MqY5zhMRXndcma3FcPFxfqf7FczWRFdOdw==</Q>
> <DP>jXOpdxIZNvrcJ7RiKffsx9QJZe74/l5G5IXUmALVSQF++CBmYlaSQ5Q37S+cvAyKzT/IK8Ye0HCRWmc3I+0c6Q==</DP>
> <DQ>VlB8qNwHEdSxvGoi2npD9HNRXSMho6AJ6AhoClqpuI6LMKsGynO73jsg3pht9G+Zv5QfLtvlLkeYHX9YMj3mLQ==</DQ>
> <InverseQ>EtwABGpy/cumIxHI5QGPHM70ttRMvK8zCmTgJajLE33zrXfqKnSHU1LBsnJx20Pi+nGosBct8GihFu/NRMvWmQ==</InverseQ>
> <D>PEg5RCuwYIHVDBgVcWeXD9q6TsUQsEa2gK7GmW3Yw0j73D/72xQzH+JEt5DuMW3hDWtD67JC8ANjhU4YKQyaCNi1bTJ4FRbGR/h8RYJIWz/ig9NyCvd1ucnXWD2dv2v1VsPP47/szPeFNY4JEJQ0mqMttjl2WVXm0mIrRXJQABE=</D>
> </RSAKeyValue>
>
> I try with this command, but is not completly functionally:
>
> xmlsec.exe --keys --pkcs8-der goya780416gm0_1011181055s.key AnyFile.xml
>
> and i have:
>
> <?xml version="1.0"?>
> <Keys xmlns="http://www.aleksey.com/xmlsec/2002">
> <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
> <KeyValue>
> <RSAKeyValue>
> <Modulus>
> 1KHjZtqkEv1ECTgubPkBz6KrF2oVycKyjtDCHGOsr0iSc8pSRVU8L0BFIxMX5X3b
> c00C6BxrZDo/f/CIjusnmSX7dO7SXM0EC6VBeBh4PcHz9cVTQ9tLJMnuxH60xkyQ
> XQCmoYPUxWNtLX5N8NWmwRUGlfo9SFL8VgsP3X8bnZk=
> </Modulus>
> <Exponent>
> AQAB
> </Exponent>
> <PrivateExponent xmlns="http://www.aleksey.com/xmlsec/2002">
> PEg5RCuwYIHVDBgVcWeXD9q6TsUQsEa2gK7GmW3Yw0j73D/72xQzH+JEt5DuMW3h
> DWtD67JC8ANjhU4YKQyaCNi1bTJ4FRbGR/h8RYJIWz/ig9NyCvd1ucnXWD2dv2v1
> VsPP47/szPeFNY4JEJQ0mqMttjl2WVXm0mIrRXJQABE=
> </PrivateExponent>
> </RSAKeyValue>
> </KeyValue>
> </KeyInfo>
> </Keys>
>
> But is incomplete.
>
> Have you any suggestion?
>
> Thanks a lot.
>
> Best Regards.
>
> *Ing. Baltazar Moreno Juárez*
> Documentos Electrónicos
> SITE S. DE R.L. DE C.V.
> Lorenzana 710 Jardines del Bosque
> Guadalajara, Jalisco.
> Tels: +52 (33) 3122 4005
> +52 (33) 3121 1881
>
>
>
> SITE <http://www.sitegdl.com>
>
> CuidaElPlanetaImprima este correo sólo si es necesario
>
>
> El 08/11/2011 04:52 p.m., Aleksey Sanin escribió:
>> Baltazar,
>>
>> I am not sure I understand your question but you might
>> want to check the online documentation
>>
>> http://www.aleksey.com/xmlsec
>>
>> Aleksey
>>
>> On 11/8/11 2:45 PM, Baltazar Moreno wrote:
>>> Hi, i'm tried to convert a key (pkcs8-der format) file to his xml
>>> signature format, can i do this with xmlsec? how?
>>>
>>> Thanks a lot!
>>>
>>> Best Regards!
>>> --
>>>
>>> *Ing. Baltazar Moreno Juárez*
>>> Documentos Electrónicos
>>> SITE S. DE R.L. DE C.V.
>>> Lorenzana 710 Jardines del Bosque
>>> Guadalajara, Jalisco.
>>> Tels: +52 (33) 3122 4005
>>> +52 (33) 3121 1881
>>>
>>>
>>>
>>> SITE <http://www.sitegdl.com>
>>>
>>> CuidaElPlanetaImprima este correo sólo si es necesario
>>>
More information about the xmlsec
mailing list