122 byte By
qmqasim at 2007-9-26 19:35:11
HiI cannot seem to find jssecacerts file in my PC. Do I need it, and if so where can I get it.
263 byte By
kon01 at 2007-9-26 19:39:03
How can I generate a key pair dynamically? There is a "keytool" utility but it generates keys "statically". I've found KeyGenerator class in sun's JCE, but this class allows to generate only one secret key for symmetric cryptography.Thanks.
470 byte By
gduque at 2007-9-26 19:42:34
I am very new to SSL but I want to write an application that listens in a certain port for requests but I don't want it to accept requests unless they've been properly authenticated through SSL. We already have SSL and use it through our web server but this application would be listening at a ...
3353 byte By
sachikoH at 2007-9-26 19:43:05
I am using jdk1.4.0b3 on solaris 5.7.I have a PEM file with the following 4 sections, each preceded by an Attributes section as shown below. Bag AttributesfriendlyName: Sachiko Halper's Grid IDlocalKeyID: 27 EE 43 96 76 B6 5E 8F AD 4F 03 9C 0A 01 EE 2D 8A 39 C0 C6Key Attributes: <No ...
Hi,I have been trying to implement Java SSL communication to a C++ OpenSSL based system (also tested using IE as the client) without success and from reading the postings here on the subject it seems that may people are faced with this problem and although some potential solutions are suggested ...
Folks, I have written 2 servlets,one for sending username and password over https to another servlet which decrypts this. For this,I have configured Tomcat to act as an HTTPS server. a) Servlet : UserPwd2- for sending data over HTTPS b) Servlet : SecureServer2 - receiving the encrypted data and ...
Hiya,How can i execute an application in a Web Container?If I write a Java Code:public class Test{public static void main(String args[]){ System.out.println("Testing a Java Application");}}Now,how do I execute this thru a Web Browser?How can I say : http://localhost:8080/TestIs there a way to ...
456 byte By
pashkaM at 2007-9-26 19:46:35
my clients work over IE or NC with installed certificate generated by my own CA. On the server I already install server certificate and then give certificates all my users. Data already are transferred over the secure protocol (https) and it does not need, to make secure connection with ...
I downloaded jsse1.0.2, and in the api guide it says there should be an examples directory. In particular, I wanted to see the https connection example.thanks for any info.Dean
When using the URLReader example that can be downloaded with jsse1.0.2, it seems to be broken.It says it is a Malformed URL, but it was hardcoded by whoever wrote the sun jsse examples. Here is the exceptionException in thread "main" java.net.MalformedURLException: unknown protocol: httpsat ...
362 byte By
modelart at 2007-9-26 20:00:04
I follow the RFC-2616 specification to write a socket program to fetch web pages. I have to deal with all the fields included in the HTTP header.But the RFC-2616 doesn't talk anything about the "Set-Cookie" field.Does anyone know how to handle this field or provide me any useful documentation. ...
1219 byte By
DavidJay at 2007-9-26 20:05:27
Hi,I'm using a simple SSLServerSocket for a testapp I've done. Just creating it on port 443,and when I get somebody connecting, I relaythe socket to a thread.My problem only occurs with a browser(in this case, ie 5.5.). When I connect to mytest app using https://localhost for address,I get a ...
I'm getting a classcast exception when i get attributes from HttpSession and assigning them to String in weblogic when ssl is enabled. Any help is greatly appretiated. This is urgent.
1103 byte By
celon at 2007-9-26 20:09:47
i have write an email application using javamail and jsse. the problem is i cant access to yahoo.com. is it the server didnt recognize jsse? must the server side support jsse b4 the transaction can start? pls help.Security.addProvider( new ...
361 byte By
rg2418 at 2007-9-26 20:12:24
Hi All,With JSSE being a standard API in jdk1.4 i was wondering whether i can use JSSE in my applet to talk SSL to a server?. Basically i want to use SSLSocket instead of using brower's HTTPS support. Will jvm's security manager(for applet) allow me to open a SSL socket?. Please give me your ...
(1)I have written a java code that connects to an https server.Do I always need to have a client certificate in my code for the browserto recognize the Server Certificate? like the example I have written below?(the try-catch block..)Is it possible to write a normal class that makes an https ...
619 byte By
bangalo at 2007-9-26 20:29:27
I just developed a client (usingin jdk1.4) to send secureinformation to a server .When I use the functionSSLSocketFactory factory =(SSLSocketFactory)SSLSocketFactory.getDefault();I got the errorjava.net.SocketException: Default SSL context init failed: nulli use the client and server giving ...
128 byte By
zmistr at 2007-9-26 20:29:38
I've created a key pair using keytool -genkey. How can Iexport both public and private keys into pfx file?
924 byte By
ymshah at 2007-9-26 20:31:53
Hi,I am very new to SSL and want to make my applciation to secure. I have set up apache tomcat 4.0.1 so that i can use https. i am using JSSE1.0.2. I used the keytool to create a key store. When I start the server and go to http://localhost:8443/myapp/index.jsp, I get a "Security Alert" which ...
272 byte By
ymshah at 2007-9-26 20:35:14
HiWhen u make a keystore using the keytoolkeytool -genkey -alias tomcat -keyalg RSA does that automatically create a self-signed certificate or do u need to explicitly create it some other way. THanxyaz
2725 byte By
kon01 at 2007-9-26 20:36:24
I want to implement HTTPS connection with client authentication using JSSE. Using keytool utility I've done the following1)Generated keys and stored them in "mykeystore" file2)Using cert request from keytool I've got certificate signed by my own CA (based on win2000 server)3)I've added this ...
806 byte By
baaz1 at 2007-9-26 20:43:18
Hi everybody,I want to make a https connection to a secure site and I normally do: Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());Properties properties = System.getProperties();properties.put("java.protocol.handler.pkgs", ...
604 byte By
nmetayer at 2007-9-26 20:43:22
Hello, I'm trying to use jsse whit an Apache-mod_ssl server.I want the server to authenticate the client but it doesn't work.First question : The KeyManagerFactory is the only way to authenticate a client ?Second question : my certificate are generated with openssl.How do I create a ...
526 byte By
A10kamp at 2007-9-26 20:43:57
Hi,Using ibmjsse i am trying to reach an https server. I hoped to contact it directly, after installing ibmjsse with the given example, but no way.At this moment I get stuck on a javax.net.ssl.SSLHandshakeException: unknown CADoes anybody know what this excatly means? I think I have to install ...
738 byte By
dhay at 2007-9-26 20:45:01
Greetings,I'm trying to write a custom TrustManager that will display a dialog to the user giving the opportunity to accept or decline certificates. My problem is that "isServerTrusted" gets called entirely too often for this to work as desired. What happens is that isServerTrusted get's ...
1944 byte By
pascale4 at 2007-9-26 21:01:31
Salve,sto untilizzando J2sdk1.4 (che contiene JSSE) e NetscapeLDAP come server LDAP.Vorrei effettuare una comunicazione SSL con il server LDAP.Mentre riesco a fare la Server authentication, non riesco a fare la client authentication.Ho visto che con il JSSE vengono allegati un esempio di ...
2540 byte By
nmetayer at 2007-9-26 21:08:29
hello I'm trying to make a connection between the sample client and the sample server of jsse 1.0.2When The server need the client authentification I've got the following exception :server side : java.net.SocketException: Socket closedclient side : java.lang.IllegalArgumentException: 69The ...
1) I have created my own Server Certificate with the keytool command,and my client application is sending sensitive data over https toa Servlet. 2) Now,if the Servlet is sending back sensitive information back to the client : 2.a) How do I create a Client Certificate so that the server can ...
170 byte By
sbelsly at 2007-9-26 21:11:27
We are trying to use the new JSSE classes included with JDK 1.4 in 1.2.2 or 1.3.x. Anyone know how to register the SSL protocol to work in this environment?
4162 byte By
jvramana at 2007-9-26 21:11:39
Hi,I got the same problem.Can u please inform how did you solve this problem?so I did attached the posted by someone in this forum.thanks in advance...Ramana> Please help!> > During the handshake i get a SSLException: fatal,> unexcepted message.> I'm trying to get a Https ...
990 byte By
spirito at 2007-9-26 21:17:45
I'm trying to import in the samplecacerts file a seft signed certificate generated for test purposes on my test web server.The command I issued was:keytool -import -alias mycert -file mycert.cer -keystore samplecacerts -trustcacert -storepass changeit and the answer was:keytool error: ...
16949 byte By
g_montel at 2007-9-26 21:26:32
Hi I have a problem.I can access www.verisign.com through a proxy and an URLReader but I can't directly send a request to the proxy through a socket.Here is the code I'm using :SSLSocketFactory factory = (SSLSocketFactory)SSLSocketFactory.getDefault();Wap.log.println ("HttpContext : ...
Hi,Today I migrated our software from jdk 1.3.1 to 1.4 (released version). I recompiled everything and started my program. I had to replace all "com.sun.net.ssl.SSLContext" with "javax.net.ssl.SSLContext" because the former was deprecated. The first thing the program does is open an SSL ...
1168 byte By
claude34 at 2007-9-26 21:37:55
I've scoured the web and these fora for a solution to my problem, and I can't seem to find a solution, so would really appreciate any help/pointers/examples to assist me.I've managed to read from a secure web page, using JSSE to set up an httpsurlconnection called connect, and can read and ...
501 byte By
gboyd at 2007-9-26 21:43:06
There are a large number of examples available for programatically controlling the cipher suites available to a socket or server socket for a SSL negotiation.I was wondering however, is there was a way to configure available cipher suites in the SUN JSSE implementation? I have been searching ...
I am transferring over https to a receving servlet over a Proxy.How do I specify the username and password for the Proxy in myapplication ,if the proxy server supports this.I have configured my application to send it over a Proxy with:https.proxyHost = <Proxy Host>https.proxyPort = ...
907 byte By
gboyd at 2007-9-26 21:58:29
Hello to the JCognecenti,This probably sounds stupid but bear with me a moment.If I have created a SSLSocket, and it has completed the SSL handshake providing me with server authentication (and client authentication if requested from the server's point of view). Is there any way I can then ...
308 byte By
scul77 at 2007-9-26 22:03:18
Hello !I tried to set sun.net.client.defaultConnectTimeout,sun.net.client.defaultReadTimeout for HTTPUrlConnections, which works fine. But this does not seem to work with HTTPSUrlConnections !I am using JDK 1.4.Does someone know why ?Many ThanksAndreas ...
Hi, I'm looking for help finding a JSSE (preferably free!) which supports the TLS_RSA_WITH_AES_128_CBC_SHA ciphersuite?I know that the Sun JSSE 1.0.2 and JDK 1.4 do not support it....As I'm new to cryptography, would any kind soul fill me in on licensing restrictions associated with any ...
732 byte By
spieler at 2007-9-26 22:49:54
Hi,I try to sign a certrequest wiht open ssl and import the result in my keystore.But it doesn't work, I get the error message:keytool error: java.lang.Exception: Public keys in reply and keystore don't matchhere is what I do (obmitting aliases, filenames, and passwords):- I create a keypair ...
15128 byte By
Yosarian at 2007-9-26 22:53:36
We've encountered a rather delicious problem that we believe might be a bug in JSSE. We have a URL with valid Verisign certificate. We have a Java client that uses Inovention's HTTPClient library which in turn is set to use Sun's JSSE for HTTPS. We can run for days with no problems and then ...
I have a servlet that retrieves information from another Servlet using https protocol.The code I use works when it runs by itself in an application, works when using the GET method in the servlet, but returns a FileNotFoundException when I try to use POST.The code works if only using http ...
How could I apply SSL on a FTP server developed by myself? May any one give me some example or provide me some reference? thanx....
8174 byte By
chughvk at 2007-9-26 23:41:14
Hi,I am writing a java client that needs to post data to an ISS server. The ISS server requires client authentication. The code fails during SSL handshake.I am developing my application using Visual Age. Please look at the extract of my console output. Does this mean that my code is not able to ...
Is Sun's JSSE reference implementation source code available to be downloaded?Thanks
3910 byte By
montyny at 2007-9-26 23:47:41
It seems that others have this problem, although no-one appears to have published any answers! I am basing my work off of Javaworlds tip 111.I am trying to access a site using https. I can access some but not others, including the one I need!I have used javax.net.debug=all to get the output ...
897 byte By
scee at 2007-9-26 23:48:48
I am building an RMI application that will use SSLServerSockets. I am new to security so bear with me. I have successfully completed an example that opens an SSL connection between my client and server. To do this I created a certificate on my server, ftp-ed it to my client machine and imported ...
337 byte By
fporoli at 2007-9-26 23:52:35
I just posted on Sourceforge a new project with source code for the exchange of files between server and client in both ways based on Java JSSE and SSL. You can find more info on:https://sourceforge.net/projects/sslfiletransferI would appreciate any commentsFabio Porolifporoli@ticino.com ...
2299 byte By
sjeelani at 2007-9-27 0:01:32
Hi,I am trying to do two way authentication (SSL) using JDK1.4. I am using verisign certificates. my client application makes a connection to the server using HTTURLConnection object.I am using the JSSE that comes with JDK1.4. When I try to connect the server, I am getting the following ...
570 byte By
armoses at 2007-9-27 0:03:28
Hi Java Gurus,I am not able to convert .pfx certificate to x509 format. The jdk1.3 keytool command is not recognizing it.I have to do the following.1. Open internet explorer2. Type website address, click on go3. Browser pops a "Client Authencitation" window. I click the required certificate and ...