W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > July to September 1999

PEM2XMLDSIG

From: Tomokazu ISHII <t-ishii@mken.co.jp>
Date: Thu, 19 Aug 1999 19:27:46 +0900
Message-ID: <B0000077109@dns2.mken.co.jp>
To: w3c-ietf-xmldsig@w3.org
Dear Sirs,
I am Tomokazu ISHII.

I want to write a signature and a certification like PEM
using XML.

Althouh I tried to write it reffering to
`draft-ietf-xmldsig-signature-00.txt,'
I had some questions as following.

Is there anybody to answer me?

(1) How to calculate the message digest.
    - Is the object of signature a file?
    - Do I have to convert <LF> to <CR><LF>?

(2) Is this algorithm right?
           <dsig:Algorithm type='urn:rsa-encryption'>
             <dsig:Parameter type='digest-algorithm'>
               <dsig:Algorithm type='urn:rsasdi-com:MD5'/>
    PEM(rfc2313):
      1) message digesting (MD5)
      2) RSA encryption
      3) binary to character conversion

(3) Can I put the result of (2)
    into <dsig:Value> in <dsig:Signature>?

(4) Can I put PEM Orginator-Certificate or Issuer-Certificate
    into <dsig:Value> in <dsig:Certificate>?

The following file is my trial.
If you find mistakes, please let me know them.

#================================
<?XML version="1.0"?>

<dsig:Document>

  <dsig:Signatures>
    <dsig:Signature>

      <dsig:Manifest>
        <dsig:SignatureAlgorithm>
          <dsig:Algorithm type='urn:rsa-encryption'>
            <dsig:Parameter type='digest-algorithm'>
              <dsig:Algorithm type='urn:rsasdi-com:MD5'/>
            </dsig:Parameter>
          </dsig:Algorithm>
        </dsig:SignatureAlgorithm>
      </dsig:Manifest>

      <dsig:Value>
CpaUUXK7Q5r9SKO5x/9ddZtryXdC00yc9g6PABpO7IH8rAqAJ8pk6xqmmg1Kv3zL
P+ulPu8CdVcYmsjNqPMmzg==
      </dsig:Value>

    </dsig:Signature>
  </dsig:Signatures>

  <dsig:Certificates>
    <dsig:Certificate type='urn:X500:X509v3'>
      <dsig:Value>
MIIDmDCCAwGgAwIBAgIBADANBgkqhkiG9w0BAQQFADCBlTELMAkGA1UEBhMCSlAx
DjAMBgNVBAg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W4gQ28uLEx0
ZDERMA8GA1UECxMIUmVzZWFyY2gxFzAVBgNVBAMTDlRvbW9rYXp1IElTSElJMSEw
HwYJKoZIhvcNAQkBFhJ0LWlzaGlpQG1rZW4uY28uanCCAQAwDQYJKoZIhvcNAQEE
BQADgYEAaLam06yaIlzzEI5UUIg4Pw8JEVwROkYEaqAoQ16uNUmv9TZ2Zpy6SU7f
gB4Bb0saJrqnpHzOlVzSqSJUm1c2UkxSRwMgUzT6KO7OoaniGYweq8sv5u/Hv9Q+
rfOu/Y8z+vaWG6l5wLXP+6LybBH32Ny25GVS+MSkjgPttVf5zys=
      </dsig:Value>
    </dsig:Certificate>
  </dsig:Certificates>

</dsig:Document>
#================================

Best regards,

----
Tomokazu ISHII  M.Ken Co.,Ltd.
Nichiwa Bldg., 31-1, Motoyoyogi-cho
Shibuya-ku, Tokyo 151-0062, Japan.
E-Mail t-ishii@mken.co.jp
Received on Thursday, 19 August 1999 06:26:47 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:07 GMT