Problem with HttpServletResponse.getOutputStream() and SSL
I use the Apache 2.0.43 / mod_jk2 / mod_ssl and Tomcat 4.1.12. I created a servlet which can read a pdf file and write it in the response output stream in byte format. When i call https://localhost:445/GetPDFServlet with Mozilla 1.0.1 the acrobat reader 4.0 plug-in appear with the pdf in. If i do the same thing on the same machine with IE5.5, it opens an alert which try to download https://localhost:445/GetPDFServlet. If i do the same thing without ssl all working very well with IE5.5. Do you know how to resolve this problem? Patrick GIRY -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with HttpServletResponse.getOutputStream() and SSL
If I understood you correctly I think the problem sounds like its related to the cert itself and you're probably using a self-signed cert. On Netscape you can accept the dummy cert and it won't prompt you again until the cert expires, on IE its the same thing but its a little bit more complicated. A quick search on the Internet yielded this: http://www.ph.utexas.edu/~help/cert/cert-ie.html and that might help you. Just port over your cert using certutil.exe (on my system its in c:\win2000\system32\dllcache\) The other alternative albeit a more costly one is to get a real certificate and you won't have this problem. Hope that helps. Jan-Michael - Original Message - From: Patrick GIRY [EMAIL PROTECTED] Date: Tuesday, December 17, 2002 1:12 pm Subject: Problem with HttpServletResponse.getOutputStream() and SSL I use the Apache 2.0.43 / mod_jk2 / mod_ssl and Tomcat 4.1.12. I created a servlet which can read a pdf file and write it in the responseoutput stream in byte format. When i call https://localhost:445/GetPDFServlet with Mozilla 1.0.1 the acrobat reader 4.0 plug-in appear with the pdf in. If i do the same thing on the same machine with IE5.5, it opens an alert which try to download https://localhost:445/GetPDFServlet. If i do the same thing without ssl all working very well with IE5.5. Do you know how to resolve this problem? Patrick GIRY -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED]For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with HttpServletResponse.getOutputStream() and SSL
finally i also forgot to add that the cert is name sensitive so unless your cert is called localhost you'll have problems. sorry for the extra e-mail. that one totally slipped my mind. jan-michael - Original Message - From: [EMAIL PROTECTED] Date: Tuesday, December 17, 2002 1:28 pm Subject: Re: Problem with HttpServletResponse.getOutputStream() and SSL If I understood you correctly I think the problem sounds like its related to the cert itself and you're probably using a self-signed cert. On Netscape you can accept the dummy cert and it won't prompt you againuntil the cert expires, on IE its the same thing but its a little bit more complicated. A quick search on the Internet yielded this: http://www.ph.utexas.edu/~help/cert/cert-ie.html and that might help you. Just port over your cert using certutil.exe (on my system its in c:\win2000\system32\dllcache\) The other alternative albeit a more costly one is to get a real certificate and you won't have this problem. Hope that helps. Jan-Michael - Original Message - From: Patrick GIRY [EMAIL PROTECTED] Date: Tuesday, December 17, 2002 1:12 pm Subject: Problem with HttpServletResponse.getOutputStream() and SSL I use the Apache 2.0.43 / mod_jk2 / mod_ssl and Tomcat 4.1.12. I created a servlet which can read a pdf file and write it in the responseoutput stream in byte format. When i call https://localhost:445/GetPDFServlet with Mozilla 1.0.1 the acrobat reader 4.0 plug-in appear with the pdf in. If i do the same thing on the same machine with IE5.5, it opens an alert which try to download https://localhost:445/GetPDFServlet. If i do the same thing without ssl all working very well with IE5.5. Do you know how to resolve this problem? Patrick GIRY -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED]For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED]For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]