Hi there,
I need to exchange the keys with our bank so we can start using their EBICS system.
I generated 3 different keys where one is for signature, second one for authentication and the third one for encryption.
using (var provider = new RSACryptoServiceProvider(keySize))
{
publicKey = provider.ToXmlString(false);
}
Then I try to send the Modulus element from the exported XML for the signature key:
<?xml version="1.0" encoding="utf-8"?>
<ebicsUnsecuredRequest xmlns="urn:org:ebics:H005"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:org:ebics:H005 ebics_request_H005.xsd"
Version="H005" Revision="1">
<header authenticate="true">
<static>
<HostID>HOST-ID</HostID>
<PartnerID>PARTNER-ID</PartnerID>
<UserID>USER-ID</UserID>
<OrderDetails>
<AdminOrderType>INI</AdminOrderType>
<OrderID>A001</OrderID>
<OrderAttribute>DZNNN</OrderAttribute>
</OrderDetails>
<SecurityMedium>0200</SecurityMedium>
</static>
<mutable/>
</header>
<body>
<DataTransfer>
<OrderData>MODULUS-VALUE-HERE</OrderData>
</DataTransfer>
</body>
</ebicsUnsecuredRequest>
Then I get an error message saying that XML data is not well formatted/formed. No further explanation unfortunately.
I wonder if I should encode the key or manipulate the key string in another way. However, like this it won't work :(
Is there anyone familiar with EBICS system that could help me with this? Would be greatly appreciated.
Thanks!