How to create a XAdES-BES Envelope

May 8, 2012 at 1:49 PM
Edited May 8, 2012 at 1:50 PM

Can anyone help me with the following:

For the project I'm working on, I need to sign some data and put in the following format:


<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="urn:envelope">
  <Gegevenslevering Id="idGegevenslevering">
    <!-- Resultaat bericht gegevenslevering -->
  <Signature xmlns="">
      <CanonicalizationMethod Algorithm=""/>
      <SignatureMethod Algorithm=""/>
      <Reference URI="#idGegevenslevering">
          <Transform Algorithm=""/>
        <DigestMethod Algorithm=""/>
          <!-- Waarde van de digest over het element Gegevenslevering -->
      <Reference URI="#idKeyInfo">
        <DigestMethod Algorithm=""/>
          <!-- Waarde van de digest over het element KeyInfo -->
      <!-- Elektronische handtekening -->
    <KeyInfo Id="idKeyInfo">
          <!-- Certificaat -->

Can the XadesNet library help me with this? I have the data to enter between the <Gegevenslevering> tags and that's the data I need to sign. I also can grab a certificate. Do I need to do some extra work to get this specific format?

Basically what I'm looking for is a way to go from "XMLtobeSigned" -> "Output specified in example".

Any help is appreciated!