[openssl-users] openssl-users Digest, Vol 23, Issue 35

Hello Notelling hellonotelling at gmail.com
Sat Oct 29 10:59:53 UTC 2016


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 at openssl.org> wrote:

Send openssl-users mailing list submissions to
        openssl-users at openssl.org

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 at openssl.org

You can reach the person managing the list at
        openssl-users-owner at 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 at fit.be>
To: "openssl-users at openssl.org" <openssl-users at openssl.org>
Subject: Re: [openssl-users] Help
Message-ID:
        <1BF0BB099673884291E8E8CB1C42CAFD033C662BEB at FITSERV01.fit.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 at openssl.org] Namens Dmitry
Belyavsky
Verzonden: vrijdag 28 oktober 2016 14:52
Aan: openssl-users at openssl.org
Onderwerp: Re: [openssl-users] 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 at fit.be
<mailto:Lander at fit.be>> ???????:
Dear Dmitry,

The result must be as mentionned below?

Van: openssl-users [mailto:openssl-users-bounces at openssl.org<mailto:openssl-
users-bounces at openssl.org>] Namens Dmitry Belyavsky
Verzonden: donderdag 27 oktober 2016 19:09
Aan: openssl-users at openssl.org<mailto:openssl-users at openssl.org>
Onderwerp: Re: [openssl-users] 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 at fit.be<mailto:
Lander at 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 at nbb.be<mailto:michel.dombret at nbb.be>
To:
Message-ID: <28456974.01467361575985.JavaMail.feronan at PC0020881<mailto:
28456974.01467361575985.JavaMail.feronan at 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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMtzCCBXMw
ggNboAMCAQICAgCoMA0GCSqGSIb3DQEBBQUAMIG1MQswCQYDVQ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/daxB0MuckGaEBx3qn925Ac5pzM+6K1N1uKF3mTxiM4Ocd9nWpM
1TGCApgwggKUAgEBMIG8MIG1MQswCQYDVQQGEwJCRTERMA8GA1UECBMIQnJ1c3NlbHMxETAPBgNV
BAcTCEJydXNzZWxzMSEwHwYDVQQKExhOYXRpb25hbCBCYW5rIG9mIEJlbGdpdW0xITAfBgNVBAsT
GERhdGEgU2VjdXJpdHkgTWFuYWdlbWVudDEcMBoGA1UEAxMTTkJCIFNlY3VyZSBFbWFpbCBDQTEc
MBoGCSqGSIb3DQEJARYNZHNtb3BzQG5iYi5iZQICAKgwCQYFKw4DAhoFAKCBsTAYBgkqhkiG9w0B
CQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNjA3MDEwODI2MTVaMCMGCSqGSIb3DQEJ
BDEWBBRs4Ik9waWLNU/4OZ9TfT4yZZ0EljBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4G
CCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDANBggqhkiG9w0DAgIBKDAHBgUrDgMCBzANBgkq
hkiG9w0BAQEFAASCAQCSP5/h1v6feRr+ekK19tlI4zvm1Wy7hUtN+XmbWLJHOxSU4wJUBRj6ptph
Mb7AOm1JYy8+wWRQhgOcIegD74eXZoYfws+O3ADZ//feXYJAF/jqAyhs0r9CoGw2eUUeZR4KYILy
ZG5I3lcFJLDPHcElSe3NgRBOmfuFWD/mSLE2B2S+PqbnbugYPSN7mCSOqMZODPBlop9wczBUD1BI
K+kM1fP28541RfCFS6tGUXamWnKOdbxoHbPmnQDT1zzcbRIUvnLCV6MZ4KFNAXf5YxwggV3jjPiQ
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 at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-users


------------------------------

End of openssl-users Digest, Vol 23, Issue 35
*********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20161029/831a15c0/attachment-0001.html>


More information about the openssl-users mailing list