Cannot find jssecacerts

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.

Key pair generator

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.

SSL from a port not a servlet

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

help! SSLContext, KeyManagerFactory, Keystore and a PEM file

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

JSSE SSL - widespread problems

4732 byte By DominiqueL at 2007-9-26 19:43:34
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 ...

Data over HTTPS using SSL......Just one Question

5933 byte By luthriaajay at 2007-9-26 19:44:53
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 ...

Execute an Application in a Web Container?

620 byte By luthriaajay at 2007-9-26 19:45:26
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 ...

Can I only identificate with ssl?

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

where is jsse1.0.2 examples directory

204 byte By deanhiller at 2007-9-26 19:55:23
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

jsse1.0.2 example is broken?

588 byte By deanhiller at 2007-9-26 19:55:32
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 ...

How to deal with the "Set-Cookie" field in HTTP header?

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

JSSE 1.0.2, where's the GET from the browser ?

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

400 error, ClassCastException in weblogic

198 byte By chris_2002 at 2007-9-26 20:08:07
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.

cant connect to yahoo using jsse

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

Can i use JSSE in my applet.?

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

Https Class for Encryption Message...One question on this

4926 byte By luthriaajay at 2007-9-26 20:13:01
(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 ...

java.net.SocketException: Default SSL context init failed: null

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

How can I export key pair from keystore to PFX file?

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?

"security alert" - pls help

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

self signed certificate

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

Problem with client authentication

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

https connection in JavaSDK 1.1.8

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

client authentification

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

SSLHandshakeException: unknown CA

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

Custom TrustManager called too often

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

SSL client authentication to LDAP

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

jsse 1.0.2 samples didn't work

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

Client Certificates v/s Server Certificates

813 byte By luthriaajay at 2007-9-26 21:08:59
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 ...

Using new 1.4 JSSE in older JRE's

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?

main, RECV SSLv3 ALERT: fatal, unexpected message

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

Using keytool to import a certificate

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

Invalid Server Handshake

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

1.4 Error - JSSE implementation is non-pluggable

1391 byte By rdesilets at 2007-9-26 21:32:17
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 ...

URGENT: Timeout on HTTPSURLCONNECTION

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

SSL Cipher Suite Control in JSSE

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

HTTPS over a Proxy!! Set up of username/password

617 byte By luthriaajay at 2007-9-26 21:48:14
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 = ...

SSLSocket: Access to raw unencrypted socket

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

HTTPSUrlConnection Timeout

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

JSSE

412 byte By mikeybeale at 2007-9-26 22:03:48
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 ...

Public keys in reply and keystore don't match

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

Random Peer Not Authenticated

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

HttpsURLConnection returning FileNotFoundException

2197 byte By dean_mcnabb at 2007-9-26 23:18:01
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 ...

FTP server supporting SSL

145 byte By fredlf1979 at 2007-9-26 23:34:36
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....

Client Authentication not working

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

JSSE source code

120 byte By anuramdas at 2007-9-26 23:44:04
Is Sun's JSSE reference implementation source code available to be downloaded?Thanks

Problem with SSL Version 3.1, JSSE 1.02

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

trusted of trusted certificate

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

Java Client-Server Sample for Secure File Exchange

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

Very Very Urgent. Please help me...

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

Converting a .pfx certificate to x509 format

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