Hy,
Goal: add an xml file as attachment to a MIME message and sign the MIME message with the primary key (.p12 file).
The result must be like what you see below…?
Which openssl commands must I use in commandline?
(I already searched for ita bout 2 months but still not found any solution…!)
Date: Fri Jul 01 10:26:15 CEST 2016
From: michel.dombret@xxxxxx
To:
Message-ID: <28456974.01467361575985.
JavaMail.feronan@PC0020881> Subject: NBB signed file
MIME-Version: 1.0
Content-Type: multipart/signed;
boundary="----=_Part_1_
6142443.1467361575963"; protocol="application/pkcs7-
signature"; micalg=sha1
------=_Part_1_6142443.
1467361575963 Content-Type: multipart/mixed;
boundary="----=_Part_0_
25389802.1467361575861"
------=_Part_0_25389802.
1467361575861 Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message created by Offline Signing Tool of National bank of BELGIUM
------=_Part_0_25389802.
1467361575861 Content-Type: application/octet-stream; name=RequestFeedbacks.xml
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=RequestFeedbacks.xml
<?xml version="1.0" encoding="UTF-8"?>
<Request>
<Version>V01</Version>
<Criteria>
<DocDate>
<From>2016-08-01</From>
<To>2016-08-15</To>
</DocDate>
<DocType>ALL</DocType>
<UnrequestedDocOnly>true</
UnrequestedDocOnly> </Criteria>
</Request>
------=_Part_0_25389802.
1467361575861--
------=_Part_1_6142443.
1467361575963 Content-Type: application/pkcs7-signature; name=smime.p7s
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=smime.p7s
MIAGCSqGSIb3DQEHAqCAMIACAQExCz
AJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIMtzCCBXMw ggNboAMCAQICAgCoMA0GCSqGSIb3DQ
EBBQUAMIG1MQswCQYDVQQGEwJCRTER MA8GA1UECBMIQnJ1 c3NlbHMxETAPBgNVBAcTCEJydXNzZW
xzMSEwHwYDVQQKExhOYXRpb25hbCBC YW5rIG9mIEJlbGdp dW0xITAfBgNVBAsTGERhdGEgU2VjdX
JpdHkgTWFuYWdlbWVudDEcMBoGA1UE AxMT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ERMA8GA1UECBMIQnJ1 c3NlbHMxETAPBgNV BAcTCEJydXNzZWxzMSEwHwYDVQQKEx
hOYXRpb25hbCBCYW5rIG9mIEJlbGdp dW0xITAfBgNVBAsT GERhdGEgU2VjdXJpdHkgTWFuYWdlbW
VudDEcMBoGA1UEAxMTTkJCIFNlY3Vy ZSBFbWFpbCBDQTEc MBoGCSqGSIb3DQEJARYNZHNtb3BzQG
5iYi5iZQICAKgwCQYFKw4DAhoFAKCB sTAYBgkqhkiG9w0B CQMxCwYJKoZIhvcNAQcBMBwGCSqGSI
b3DQEJBTEPFw0xNjA3MDEwODI2MTVa MCMGCSqGSIb3DQEJ BDEWBBRs4Ik9waWLNU/
4OZ9TfT4yZZ0EljBSBgkqhkiG9w0BC Q8xRTBDMAoGCCqGSIb3DQMHMA4G CCqGSIb3DQMCAgIAgDANBggqhkiG9w
0DAgIBQDANBggqhkiG9w0DAgIBKDAH BgUrDgMCBzANBgkq hkiG9w0BAQEFAASCAQCSP5/
h1v6feRr+ekK19tlI4zvm1Wy7hUtN+ XmbWLJHOxSU4wJUBRj6ptph Mb7AOm1JYy8+
wWRQhgOcIegD74eXZoYfws+O3ADZ// feXYJAF/ jqAyhs0r9CoGw2eUUeZR4KYILy ZG5I3lcFJLDPHcElSe3NgRBOmfuFWD
/mSLE2B2S+ PqbnbugYPSN7mCSOqMZODPBlop9wcz BUD1BI K+
kM1fP28541RfCFS6tGUXamWnKOdbxo HbPmnQDT1zzcbRIUvnLCV6MZ4KFNAX f5YxwggV3jjPiQ vyzr8EdFzmaWpoOFEtCLmQw4hpSEPJ
O8yGxQ5/ 29MWg6Ypy62bjMfs54AAAAAAAA ------=_Part_1_6142443.
1467361575963--
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
-- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users