Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
S/MIME Multipart/signed Syntax
Old 05-07-2010, 08:16 PM S/MIME Multipart/signed Syntax
Junior Talker

Posts: 2
Trades: 0
Hi There,

I am trying to write a script that will upload an encrypted file to a remote server. The Content-Type must be multipart/signed and this is what I have but it does not work. Any thoughts on where I am going wrong? (I have taken out the actual remote host for privacy reasons)

POST <remote host> HTTP/1.1
Accept: application/pkcs7-mime; text/plain
connection: keep-alive
Content-Length: 3016
Content-Type: application/pkcs7-mime
Date: Fri, 07 May 2010 21:12:34 GMT
Disposition-Notification-Options: signed-receipt-protocol=required, pkcs7-signature; signed-receipt-micalg=required, sha1
Disposition-notification-to:
ver7_admin@123.com
From: ver7_admin@123.com
Host: <remote host>
Message-id: <
1273241554.0001.0058@www.123.com>
Mime-Version: 1.0
Receipt-delivery-option: <remote host>


Content-Type: multipart/signed;
protocol="Application/pkcs7-signature";
micalg=sha1;
boundary="--uKwscmW2Ru43XsnrT8xSZ7MockYi2C0N"


--uKwscmW2Ru43XsnrT8xSZ7MockYi2C0N
Content-Type: application/EDI-Consent
Content-Transfer-Encoding: Binary
Content-Disposition: attachment; filename=12484987654321.ent


--uKwscmW2Ru43XsnrT8xSZ7MockYi2C0N
Content-Type: application/pkcs7-signature


<encrypted file>

--uKwscmW2Ru43XsnrT8xSZ7MockYi2C0N--

Any direction is very much appeciated.
yvrMarc is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-08-2010, 09:02 AM Re: S/MIME Multipart/signed Syntax
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
"multipart-signed" is for SMTP (email protocol) transfers NOT HTTP
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-08-2010, 07:01 PM Re: S/MIME Multipart/signed Syntax
Junior Talker

Posts: 2
Trades: 0
Thanks Chris

However internet based web mail uses HTTP (like hotmail, gmail etc) ... I am under the impression that this is a very common method for secure EDI Transmissions and this is what I am trying to do.

Any help in getting this syntax correct is very much appreciated.

Marc
yvrMarc is offline
Reply With Quote
View Public Profile
 
Old 05-08-2010, 07:26 PM Re: S/MIME Multipart/signed Syntax
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Webmail is a HTTP (Web) interface to a mail server. The messages are received by the mail server over SMTP and stored in a format that the Webmail interface outputs as HTML and the POP3 or MAPI/IMAP interfaces can output to email clients.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to S/MIME Multipart/signed Syntax
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23212 seconds with 12 queries