How can we improve Microsoft Azure Logic Apps?

Logic Apps AS2 encoding incorrectly creates a base64 MIME part without line breaks

A signed AS2 message, generated by the Logic Apps AS2 encode action, looks something like:

Content-Type: multipart/signed;
protocol="application/pkcs7-signature";
micalg="sha1";
boundary="_48c45571-a0d0-49cc-b980-72e58e45eb46_"

--_48c45571-a0d0-49cc-b980-72e58e45eb46_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: binary
Content-Description: body

<test/>
--_48c45571-a0d0-49cc-b980-72e58e45eb46_
Content-Type: application/pkcs7-signature;
name="smime.p7s"
Content-Transfer-Encoding: base64

[extremely long base64 string]

--_48c45571-a0d0-49cc-b980-72e58e45eb46_--
The trouble I am having is that I am trying to verify the signature of this message using OpenSSL and it is rightly rejecting it, because [extremely long base64 string] does not have line breaks as per the S/MIME standard. RFC1341 is unequivocal; it states:

The output stream (encoded bytes) must be represented in lines of no more than 76 characters each.
This is in section 5.2 Base64 Content-Transfer-Encoding

Therefore Logic Apps' generation of S/MIME signed messages is incorrect since standards-compliant S/MIME messages with base64 Content Transfer Encoding must contain line breaks.

4 votes
Vote
Sign in
(thinking…)
Sign in with: oidc
Signed in as (Sign out)
You have left! (?) (thinking…)
Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: oidc
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base