Re: Problem S/MIME and HTML content
On Wed, Jan 08, 2003, Dr. Stephen Henson wrote: > On Wed, Jan 08, 2003, Stephane Rozes wrote: > > > Hello the list, > > > > I have a problem when I want to sign with S/MIME an HTML mail content. > > > > When I sign HTML data (openssl smime -rc2-128 -text -sign -in > > example.htm -out result.txt -signer cert.pem), OpenSSL adds a Content-Type > > "text/plain" above my HTML part (see below). So when I receive the e-mail, > > the mail client displays the HTML code and does not "interpret" it. > > > > Do you know a way to force the "Content-Type" of the "content" section to be > > "text/html" in order to the HTML e-mail can be viewed correctly in a mail > > client ? or another way to display the signed HTML content correctly in a > > mail client ? > > > Use -notext as mentioned in the fine manual. > Seems like I should read the fine manual first before replying. There was a -notext option in a never-made-public version of my S/MIME code but not in OpenSSL. For OpenSSL don't use the -text option which is mentioned in the fine manual... Then you have to add your own MIME headers to the content. Steve. -- Dr. Stephen Henson [EMAIL PROTECTED] OpenSSL Project http://www.openssl.org/~steve/ __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Problem S/MIME and HTML content
On Wed, Jan 08, 2003, Stephane Rozes wrote: > Hello the list, > > I have a problem when I want to sign with S/MIME an HTML mail content. > > When I sign HTML data (openssl smime -rc2-128 -text -sign -in > example.htm -out result.txt -signer cert.pem), OpenSSL adds a Content-Type > "text/plain" above my HTML part (see below). So when I receive the e-mail, > the mail client displays the HTML code and does not "interpret" it. > > Do you know a way to force the "Content-Type" of the "content" section to be > "text/html" in order to the HTML e-mail can be viewed correctly in a mail > client ? or another way to display the signed HTML content correctly in a > mail client ? > Use -notext as mentioned in the fine manual. Steve. -- Dr. Stephen Henson [EMAIL PROTECTED] OpenSSL Project http://www.openssl.org/~steve/ __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Problem S/MIME and HTML content
Hello the list, I have a problem when I want to sign with S/MIME an HTML mail content. When I sign HTML data (openssl smime -rc2-128 -text -sign -in example.htm -out result.txt -signer cert.pem), OpenSSL adds a Content-Type "text/plain" above my HTML part (see below). So when I receive the e-mail, the mail client displays the HTML code and does not "interpret" it. Do you know a way to force the "Content-Type" of the "content" section to be "text/html" in order to the HTML e-mail can be viewed correctly in a mail client ? or another way to display the signed HTML content correctly in a mail client ? Thank you in advance for your help Stéphane Rozes Example : MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="1FDE4DC326C7942A34BE2E490714CEBD" This is an S/MIME signed message --1FDE4DC326C7942A34BE2E490714CEBD Content-Type: text/plain .. --1FDE4DC326C7942A34BE2E490714CEBD Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" . __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]