Creating keystore file programmatically

412 byte By jewelkuoa at 2007-9-28 3:55:40
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 ...

SSL client

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 ...

Problem with bare bones client-server

1501 byte By dgreenbeana at 2007-9-28 3:57:47
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 { ...

Mutual Authentication,JAX-RPC -Setting Keystore not using System Properties

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 ...

Need help with Fatal Handshake execption

2056 byte By NFAROOQUIa at 2007-9-28 4:08:44
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) ...

Please help me read an SSL url with name/pass in URL!!

562 byte By ForumKida at 2007-9-28 4:28:05
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 ...

automatically import certificate from HTTPS server

324 byte By vladdevcona at 2007-9-28 4:38:50
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 ...

FTP SSL Client

263 byte By cyrilboyera at 2007-9-28 4:53:25
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)

java proxy error 403

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 ...

Help!!!

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 ...

JSSE secure Applet ?

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

JSSE Communication Port

361 byte By pmkotharea at 2007-9-28 5:40:18
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 ...

SSL Connection error - IOException: unsupported keyword OID.2.5.4.17

2862 byte By bentriska at 2007-9-28 5:51:33
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 ...

CertificateException: CA certificate does not include basic constraints ext

442 byte By sajanvellanickala at 2007-9-28 5:55:05
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 ...

client authentication bad_certificate

1588 byte By colleenOpena at 2007-9-28 6:07:49
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 ...

Port 443 on UNIX not run as root? Can it be done?

312 byte By nazerJeffa at 2007-9-28 6:24:52
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 ...

System.setProperty(javax.net.ssl.trustStore, file) doesn't work on Win 98?

126 byte By nazerJeffa at 2007-9-28 6:24:55
Setting a truststore to access a HTTPS server works on windows 2000 but not on Windows 98. Does anyone know why?

File transfer using Socket programming

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 ...

How To Read a Websites Certificate

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 ...

errors on requests *after* the first

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 ...

Not retrieving home made trusted certificates

899 byte By csebillea at 2007-9-28 7:08:29
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 ...

importing pfx certificate WITH private key into JKS keystore?

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 ...

Does JSSE HTTPS actually work?

1128 byte By slootwega at 2007-9-28 7:10:45
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 ...

Getting javax.net.ssl.SSLException: Please Help

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 = ...

Problem with ports & sockets

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 ...

Certificate

1703 byte By danlaggaa at 2007-9-28 7:34:40
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: ...

import javax.net.ssl.* cannot be resolved

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 ...

"Could not find trusted certificate" with javamail

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 ...

Server-Client Socket (AccessDenied)

1179 byte By jfkse7ena at 2007-9-28 7:49:35
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 ...

SSLSession not found?

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 ...

Certificate format support

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

javax.net.ssl.SSLException: Unrecognized SSL message

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 ...

Could not find trusted Certificate

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 ...

Is there an online titorial/code examples for ssl socket?

34 byte By shengtanga at 2007-9-28 8:29:17
as title, anything from Sun

overriding how a client authenticates a server

219 byte By dbates72a at 2007-9-28 8:33:02
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?

getSignature requires java.security.cert not javax

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 = ...

https client

1774 byte By peterabca at 2007-9-28 8:38:37
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 ...

JSSE vs. browser connection speed

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 ...

SSL Client Authentication after handshake

295 byte By igor_kima at 2007-9-28 8:53:24
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

Trying to clear up a few basic details

1226 byte By mjacobscaa at 2007-9-28 9:00:12
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 ...

javax.net.ssl.SSLException" ErrorDescription="Can't support cipher suite

1665 byte By krishashoka at 2007-9-28 9:12:03
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 ...

Unrecognized SSL handshake after 2 nd Hanshake!!

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 ...

Classcast exception while using HttpsURLConnection

385 byte By sudha1423a at 2007-9-28 9:14:57
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 ...

HttpsURLConnection with 128-Bit encryption

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, ...

SSL Basics - just double checking 3 premises

1487 byte By stephensutherlanda at 2007-9-28 9:33:43
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 ...

Package javax.net.ssl

221 byte By emanramora at 2007-9-28 9:37:15
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

https connection to secure site: Client certificate required

876 byte By tanay_guhaa at 2007-9-28 9:59:18
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 ...

SSL connection, KeyManager and TrustManager

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 ...

SSL connection failing only on Linux

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 ...

JSSE on AIX

763 byte By pras_javaa at 2007-9-28 10:25:07
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 ...