Your query is currently being processed by our team. Your query number is#000001
On 28 Oct 2016 1:58 p.m., <openssl-users-request@xxxxxxxxxxx> wrote:
Send openssl-users mailing list submissions to
openssl-users@xxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
https://mta.openssl.org/mailman/listinfo/openssl-users
or, via email, send a message with subject or body 'help' to
openssl-users-request@openssl.org
You can reach the person managing the list at
openssl-users-owner@openssl.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of openssl-users digest..."
Today's Topics:
1. Re: Help (Lander Bulckaen)
------------------------------------------------------------ ----------
Message: 1
Date: Fri, 28 Oct 2016 12:55:43 +0000
From: Lander Bulckaen <Lander@xxxxxx>
To: "openssl-users@xxxxxxxxxxx" <openssl-users@xxxxxxxxxxx>
Subject: Re: Help
Message-ID:
<1BF0BB099673884291E8E8CB1C42CA FD033C662BEB@xxxxxxxxxxxxx. local>
Content-Type: text/plain; charset="utf-8"
Dear,
Yes I know.
I already extracted both keys from the .p12 file.
My biggest problem is how you can add the original file (in this case ?RequestFeedbacks.xml?) as attachment? (the signature ?smime.p7s? is already attached)
Thanks for you quick reply and support!
Kind regards,
Lander
Van: openssl-users [mailto:openssl-users-bounces@openssl.org ] Namens Dmitry Belyavsky
Verzonden: vrijdag 28 oktober 2016 14:52
Aan: openssl-users@xxxxxxxxxxx
Onderwerp: Re: Help
Sorry, my fault.
I think you should use the openssl smime command, but it doesn't work with PKCS12, so you will have to extract the private and public keys using the openssl pkcs12 command.
28 ???. 2016 ?. 2:34 PM ???????????? "Lander Bulckaen" <Lander@xxxxxx<mailto:Lander@fit.be >> ???????:
Dear Dmitry,
The result must be as mentionned below?
Van: openssl-users [mailto:openssl-users-bounces@openssl.org <mailto:openssl-users-bounces@xxxxxxxxxxx >] Namens Dmitry Belyavsky
Verzonden: donderdag 27 oktober 2016 19:09
Aan: openssl-users@xxxxxxxxxxx<mailto:openssl-users@openssl. org >
Onderwerp: Re: Help
Hello
You should use the XMLSec library and the corresponding command-line tool.
On Thu, Oct 27, 2016 at 5:05 PM, Lander Bulckaen <Lander@xxxxxx<mailto:Lander@fit.be >> wrote:
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<mailto:michel.dombret@xxxxxx >
To:
Message-ID: <28456974.01467361575985.JavaMail.feronan@PC0020881< mailto: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
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIMtzCCBXMw
ggNboAMCAQICAgCoMA0GCSqGSIb3DQEBBQUAMIG1MQswCQYDVQQGEwJCRTER MA8GA1UECBMIQnJ1
c3NlbHMxETAPBgNVBAcTCEJydXNzZWxzMSEwHwYD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ac5pzM+ 6K1N1uKF3mTxiM4Ocd9nWpM
1TGCApgwggKUAgEBMIG8MIG1MQswCQYDVQQGEwJCRTERMA8GA1UECBMIQnJ1 c3NlbHMxETAPBgNV
BAcTCEJydXNzZWxzMSEwHwYDVQQKExhOYXRpb25hbCBCYW5rIG9mIEJlbGdp dW0xITAfBgNVBAsT
GERhdGEgU2VjdXJpdHkgTWFuYWdlbWVudDEcMBoGA1UEAxMTTkJCIFNlY3Vy ZSBFbWFpbCBDQTEc
MBoGCSqGSIb3DQEJARYNZHNtb3BzQG5iYi5iZQICAKgwCQYFKw4DAhoFAKCB sTAYBgkqhkiG9w0B
CQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNjA3MDEwODI2MTVa MCMGCSqGSIb3DQEJ
BDEWBBRs4Ik9waWLNU/4OZ9TfT4yZZ0EljBSBgkqhkiG9w0BC Q8xRTBDMAoGCCqGSIb3DQMHMA4G
CCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDANBggqhkiG9w0DAgIBKDAH BgUrDgMCBzANBgkq
hkiG9w0BAQEFAASCAQCSP5/h1v6feRr+ekK19tlI4zvm1Wy7hUtN+ XmbWLJHOxSU4wJUBRj6ptph
Mb7AOm1JYy8+wWRQhgOcIegD74eXZoYfws+O3ADZ// feXYJAF/ jqAyhs0r9CoGw2eUUeZR4KYILy
ZG5I3lcFJLDPHcElSe3NgRBOmfuFWD/mSLE2B2S+ PqbnbugYPSN7mCSOqMZODPBlop9wcz BUD1BI
K+kM1fP28541RfCFS6tGUXamWnKOdbxo HbPmnQDT1zzcbRIUvnLCV6MZ4KFNAX f5YxwggV3jjPiQ
vyzr8EdFzmaWpoOFEtCLmQw4hpSEPJO8yGxQ5/ 29MWg6Ypy62bjMfs54AAAAAAAA
------=_Part_1_6142443.1467361575963--
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
--
SY, Dmitry Belyavsky
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/ >attachments/20161028/66e0fc06/ attachment.html
------------------------------
Subject: Digest Footer
_______________________________________________
openssl-users mailing list
openssl-users@xxxxxxxxxxx
https://mta.openssl.org/mailman/listinfo/openssl-users
------------------------------
End of openssl-users Digest, Vol 23, Issue 35
*********************************************
-- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users