Hi, Wondering if you will be able to help me. I would like to find out how you can create a keystore file programmatically without using the keytool command. What I'm trying to do is generate KeyPairs for the SSL connections. After the keys are signed, I would like to insert the keys into a ...
1951 byte By
Jquima at 2007-9-28 3:57:34
Hi I'm realy need some help.I'm trying to establish an ssl client connection. I have been given a .p12 certificate store by the organization who has the server I'm trying to connect to.It's possible I get programmatically from file .p12 the client certificate and the trusted server certs.I ...
Hi,I am relatively new to JSSE and SSL in general. I am creating a client and server that need to talk securely, but I am running into errors. Could someone point me in the right direction. My code and output is below:Server--System.out.println("Starting server...");try { ...
3263 byte By
DaveJ1a at 2007-9-28 4:03:37
Hi,I have a requirement to develop a server component (gateway) that connects to a web service over SSL (using mutual authentication - server and client certificates). Clients will then connect to the gateway and request data (sourced by the gateway from the web service).The web service will ...
This is urgent !I am running this code on JDK1.4 and using jsse for https where destinationURL = "https://....//...Client Code :URL url = new URL(destinationURL);HttpURLConnection anHttpURLConnection = (HttpURLConnection) ...
I can parse this no problem using the URL classURL url = new URL("https://www.mydomain.com");I however cannot parse this:URL url = new URL("https://username:pass@www.mydomain.com");Keep getting error:java.io.FileNotFoundException: https://username:pass@www.mydomain.comWhat the heck is wrong. It ...
Hello,Is it possible automatically import certificate from HTTPS/LDAPS server?I wrote simple java client to connect to LDAP server via SSL, the only problem here that certificate should be manually downloaded from server and manualy imported to JRE keystore using keytool ...Thank ...
Hi, I would like to have a java client to a secure FTP server.is there a simple way to connect to a FTP server using SSL ?or do I have to implement the protocol and work with SSLSocket ?Thanks in advance(any sample code welcome)
1729 byte By
haraldpa at 2007-9-28 5:10:43
hi,i'm trying to connect to a website via https and receive an error 403java.io.IOException: Server returned HTTP response code: 403 for URL: https://...at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:709)when using the same command in internet explorer or ...
7395 byte By
sridha9a at 2007-9-28 5:16:03
Hi,Could some expert please point me in the right direction. I'm running into problems trying to get a https URL working properly in a java proxy that uses JSSE.My environment is - OS is Windows 2000, Browser is Internet Explorer (ver 6.0.x), and I've tried both JSDK 1.4.1_01 as well as JSDK ...
236 byte By
CMLAM88a at 2007-9-28 5:32:58
people knows JSSE secure an HTML web pages....When I attach an Applet to a HTML page, does JSSE secure those transactions done by this Applet ? Please note this Applet will make JDBC call to 3rd-tier database.....:p
Hi,I have a query about JSSE. When JSSE apis are called to communicate over a SSL channel, does JSSE use any fixed port/range of ports? To give a background, assuming a machine hosting JSSE apis is behind a firewall and need to open only the ports specified, then can we specify communication ...
Hi,Hopefully someone can help me. I have seen a couple of very similar problems posted to this forum although none of them have had much response - so if anyone can help then I would be very grateful if you could reply as soon as possible.I am trying to get my Java application (running on ...
Hi,I am using a self signed certificate in our intranet Server. I used jdk1.2.2 for creating the same.Now from a client side application I am trying to connect to the server. While trying to connect, I am getting this error. CertificateException: CA certificate does not include basic ...
I am running with https and try to get client authentication working. When my web page is requested the server requests the certificate, but the client appears to send a null certificate chain. Error as follows:*** Certificate chain***Send ssl v3.1 alert: fatal, description = bad_certificateI ...
This is probably more a UNIX question then a java question but I would like to know if it is possible to run a java server on port 443 in a non-privileged account sandbox. I don齮 like the idea of running my server as root but would like use port 443 for my HTTPS server.Can this be done? Any ...
Setting a truststore to access a HTTPS server works on windows 2000 but not on Windows 98. Does anyone know why?
3716 byte By
skajana at 2007-9-28 6:27:59
Hi GeniesI found a CLient/Server application to transfer file from one machine to another. Also i did some modification and It is working fine.I am hard coding the input file name in one class (in this case Server.java) and outpot file in client side code (Client.java).Now I would like to set ...
332 byte By
psalaa at 2007-9-28 6:35:05
I have used JSSE to read web pages from SSL websites. Is there a way I can use JSSE to read the public information in a website's certificate? What I need to read is how long the website's certifate is valid for. I can view these dates in a website's certificate using a broswer, but I need ...
100832 byte By
jlusk4a at 2007-9-28 7:03:17
Hey crew.I have a problem with GETs after the first failing, frequentlybut not always. I get two different failure modes: SocketException("Software caused connection abort") and bad_record_mac.I'm using the instructions and code samples from the JSSE Ref Guideand the 1.4 Java Almanac to ...
Hi, The aim is to use a server ( Tomcat ) to authenticate web users thanks to their certificate. I've imported with keytool trusted certificates made by OpenSsl when Iuse -list option I have for each certificate a 'trustedCertEntry' indication ( the CA certificate have been imported with ...
2186 byte By
Ggalia at 2007-9-28 7:10:00
Hi.I am writing a SOAP client application which connects to a HTTPS server with mutual authentication (ie both server and client authentication). The server authentication is working OK, as I have correctly imported the web server Root CA certificate into the truststore I am using.But, from the ...
I've spent the last 2 days searching every forum/website for some information to show me that this actually works, and so far I'm not convinced.I've downloaded and installed JSSE (1.0.3_01) and am using it with JSDK1.2 trying to talk to an OpenSSL implementation.The server side works and ...
2350 byte By
Karamata at 2007-9-28 7:22:02
Hi, I am very new to JSSE thing and just got it up on my machine. Well Alomst up. I followed the installation documentation from sun and got the JSSE_install_check.java file to work and give the following out put:Cipher Suite 0 = SSL_RSA_WITH_RC4_128_SHACipher Suite 1 = ...
496 byte By
MohsenMa at 2007-9-28 7:24:10
I have a simple chat room that works successfully, but on a single computer and local address such as:F:\chat\classes\client.htmlWhen I use my applet on a LAN or IIS this exception is throwing out:java.security.AccessControlException : Access is denied.I am using WinXP and Win2k.I think that my ...
Hi all! I'm having trobules with a Certificate, it's date has expired. Is it any way to use the SSL without cheking the certificate's expiration date, so that it's still a secure socket connection?The exception is as follows:javax.net.ssl.SSLHandshakeException: ...
473 byte By
Karamata at 2007-9-28 7:34:57
Hello,I am having a bit of a problem in my code. I am new to JSSE and am using JDK 1.4. I am getting a Compiler Error of: import javax.net.ssl.* cannot be resolvedBut why I dont know? I offcourse have the jsse.jar file as I am using 1.4 in the correct place. Any help or suggestions. I can get ...
2143 byte By
wermaa at 2007-9-28 7:36:10
Hi thereFor at least 7 days I am trying to get rid of my SSLHandshakeException! (java.security.cert.CertificateException: Could not find trusted certificate; nested exception is: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Could not find trusted ...
Hi all,i have this simple server-client program.when i connect the client to the server within the same server, there is no problem.but when the server is a remote server (thru IP address),i received the following runtime error:java.security.AccessControlException: access denied ...
409 byte By
egonneta at 2007-9-28 7:59:54
I am trying to compile a very simple class and it fails on "Cannot resolve symbol SSLSession). What package do I have to import ?import javax.net.ssl.HttpsURLConnection;import javax.net.ssl.HostnameVerifier;public class MyHostnameVerifier implements HostnameVerifier{synchronized public boolean ...
143 byte By
shaiwa at 2007-9-28 8:00:35
Hi,Does JSSE support PEM or CER certificate formats as well?It is for Client-Side authentication.Thanks,Shai
2726 byte By
neil27a at 2007-9-28 8:04:22
Hello:When I try to use the javax.net.ssl classes to open a URL to mydevelopment server at https://dsl.JAMMConsulting.com, I get this error:Exception in thread "main" javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?at ...
936 byte By
Starixa at 2007-9-28 8:25:42
Hi there, I read some about this stuff... but i still don't get it because it does not start from basic.First of all, i really a 1 day born in this SSL stuff and Https Stuff, so i hope someone can help me by some tutorial or usefull link ?i write one program, and it gave me this following ...
as title, anything from Sun
Am I correct in believing that the best/only way to perform my own custom steps for authenticating a server using SSL is to write my own implementation of X509TrustManager and override the isServerTrusted method?
1688 byte By
psalaa at 2007-9-28 8:38:22
I can can successfully get the subjectDN from a certificate by using this code: SSLSocketFactory factory = HttpsURLConnection.getDefaultSSLSocketFactory();SSLSocket socket = (SSLSocket)factory.createSocket(host, port);// Connect to the serversocket.startHandshake();SSLSession session = ...
Dear All,I want to write a servlet client which access a https url and pass parameters and then accept the response.To use https i have added following lines:Security.addProvider(new ...
648 byte By
roncorca at 2007-9-28 8:41:09
I'm using JSSE to implement https for our server side java client. I use the URL.openConnection() and cast that to HttpsURLConnection to open the url connection. I then write to the output stream to send the data to the https server. I use the HttpsURLConnection.getResponseMessage() to grab ...
Hi, all!How to request client's authentication in https session after retrieving of request data from client?In other words - how to make secure sections of web-sitelike it made in http://www.apache-ssl.org/cgi/cert-exportin my web server?Thanks
I used the following example to open an HTTPS connection to a web site:System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());URL url = new URL("https://www.sun.com");BufferedReader in = new ...
I am running Weblogic 6.1 on HP-UX 11.11/JDK 1.3.1_05 and JSSE 1.0.3_01. I have a client class which uses JSSE to connect to an openssl web server. I get the foll: error message<Stack>javax.net.ssl.SSLException: Can't support cipher suite [0, 5] at ...
19624 byte By
anisssa at 2007-9-28 9:14:15
I wrote a servlet that communicates with a secure server. I am using JDK 1.4. The communication needs 3 steps: login request, then logout. For each step i connect to the server, send the needed function in the HTTP-Content, then read the answer.Login and request work, but at the third step the ...
I am using java1.3. I have downloaded all the jars in JSSE..however when i am using the HttpsURLConnection class i get ClassCase exception at HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();I don't get any error while compiling however get the error when executingAny ...
2110 byte By
gamigoa at 2007-9-28 9:22:52
I am using the following code to attempt to connect to an SSL-secured webserver, but all I receive as response from this specific webserver is something like "Your browser does not support 128-Bit encryption", though this code has already been tested and verified with other SSL-encrypted sites, ...
Hi Everyone;FIRST QUESTION=============== First, I would like to double check my premises regarding SSL and asp form data submission.Premise #1A Form Submission is only secure when the form's page is initially secure, the user fills in the form (ei social security, credit card#) and then ...
I'm trying to use this package in skd 1.4.1_01 but I can't make the import. It seems it dosen't exists. Can anyone tell me what do I have to do to "see" the package?Thanks in advanceEmanuel Moreira
I am writing a java application (jdk 1.4.1) which will connect to a secure website from behind a company firewall. The secure website requires client authentication. I have done the proxy tunneling and handshake stuff. The secure site's server administrator (Microsoft IIS Server) has provided ...
5061 byte By
deorsa at 2007-9-28 10:08:21
Hello everyone,I am trying to established an SSL connection to a OC4J Server. The server is correctly configured, as the communications using Internet Explorer goes well.I am using JDK 1.3.1_06 with JSSE 1.0.3 and OC4J 9.0.3.But now I have a stand-alone java program that sends SOAP messages to ...
4060 byte By
dipwada at 2007-9-28 10:12:55
/*I have a servlet that makes an XMLRPC call to a remote machineover an SSL connection. The servlet works fine on my testmachine (windows 2K and tomcat 4.1.12) but fails with the exception below on the production server (an intel box running redhat 7.3 and tomcat 4.1.17 from the rpm).The ...
hi I am trying to use JSSE (provided by IBM) on AIX. I used the sample keystore provided by IBM it works fine through stanalone application. In the next step I signed the jar (for signed applet) using the private key, which exists in the sample keystore the java pluging gives following ...