Re: Invalid RSA modulus size

2004-07-13 Thread Tim Wild
1.4 or 3rd party JCE/JSSE implementations which _may_ not exhibit the same limitation HTH Oleg On Sat, 2004-06-12 at 05:36, Tim Wild wrote: Hi, I'm using HttpClient to connect to an apache server that requires certificates. When I use client and server certificates from my own CA with 1024 bit

Re: SSL and server using self-signed certificate

2004-07-07 Thread Tim Wild
Further to earlier comments, here's the command line I use to import the cert into my keystore. You need to be in your JAVA_HOME/jre/lib/security directory when you run this command. keytool -import -trustcacerts -file certificat_name -keystore .\cacerts -alias alias-name Hope this helps. Tim

HttpClient and streaming xml out

2004-07-07 Thread Tim Wild
Hi all, We have the need to connect to a server and authenticate using client certificates, then stream an xml request out to it. I can do the client cert stuff, but can streaming out the xml be done with HttpClient? Our current code (without client cert support) is below. The other method

Re: Invalid RSA modulus size

2004-06-22 Thread Tim Wild
using IBM Java 1.4 or 3rd party JCE/JSSE implementations which _may_ not exhibit the same limitation HTH Oleg On Sat, 2004-06-12 at 05:36, Tim Wild wrote: Hi, I'm using HttpClient to connect to an apache server that requires certificates. When I use client and server

Re: Invalid RSA modulus size

2004-06-20 Thread Tim Wild
, Tim Wild wrote: Hi, I'm using HttpClient to connect to an apache server that requires certificates. When I use client and server certificates from my own CA with 1024 bit keys it works perfectly. When I get a commercial certificate with a longer key (4096 bits), I get the following error

Re: Invalid RSA modulus size

2004-06-20 Thread Tim Wild
of the JDK, or a non-US implementation of the library which is not subject to US or other export restrictions on cryptography. cheers, Roland Tim Wild [EMAIL PROTECTED] 21.06.2004 05:19 Please respond to Commons HttpClient Project To Commons HttpClient Project [EMAIL

Re: Invalid RSA modulus size

2004-06-14 Thread Tim Wild
_may_ not exhibit the same limitation HTH Oleg On Sat, 2004-06-12 at 05:36, Tim Wild wrote: Hi, I'm using HttpClient to connect to an apache server that requires certificates. When I use client and server certificates from my own CA with 1024 bit keys it works perfectly. When I get

Re: Invalid RSA modulus size

2004-06-14 Thread Tim Wild
with a CA that is trusted by JSSE. Please take a look at the JSSE docs for info about which CAs are trusted. Mike On Jun 14, 2004, at 10:19 PM, Tim Wild wrote: Thanks for that Oleg. Using JDK 1.5.0b2 does indeed get past the invalid modulus size error. I've got another error

Invalid RSA modulus size

2004-06-11 Thread Tim Wild
suggested getting the unrestricted policy files, so I got and installed them, but it doesn't seem to make any difference at all. Does anyone have any thought or suggestions? Half formed thoughs or ideas are welcome as it might give me a lead that I can follow myself. Thanks Tim Wild

importing certs with private key into keystore

2004-05-25 Thread Tim Wild
Hi, Can anyone tell me how to get my client certificate, complete with private key, into my Java keystore? I have my openssl generated certificate and private key in .pem files. I can get it in sometimes, but never with private key, and if I do get it in I get errors when I try to use Java to

Re: importing certs with private key into keystore

2004-05-25 Thread Tim Wild
), replace_with_your_JKS_passphrase.toCharArray() ); System.out.println( New keystore saved ); 5) I then repeat the same process for each PKCS12 file. Tim Wild wrote: Hi, Can anyone tell me how to get my client certificate, complete with private key, into my Java keystore? I have my openssl

client certificates: contribution

2004-05-24 Thread Tim Wild
Hi, I have a simple class that i've created that deals with client certificates, based on the sample sun code, which i'd like to contribute. It'd work fine for simple applications, and would be a good starting point for more complex client cert requirements. Should I contribute this, and if

Re: client certificates: contribution

2004-05-24 Thread Tim Wild
I was thinking more the cvs contrib directory, how would I get it in there? bagas wrote: IMHO .. Yes you should contribute this. Would you just send it in mail attachment for a while? -Original Message- From: Tim Wild [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 11:28 AM

Re: client certs - how to choose which cert to use?

2004-05-24 Thread Tim Wild
specifying an https server. I also tried specifying the SSLProtocolSocketFactory. Do I still need to use a SecureProtocolSocketFactory, or should the default one work? If the default one should work, could you think what I might have missed? Thanks Tim Jesus M. Salvo Jr. wrote: Tim Wild wrote

Re: client certs - how to choose which cert to use?

2004-05-24 Thread Tim Wild
) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529) at Test1.testHttpClient(Test1.java:50) at Test1.main(Test1.java:33) Process terminated with exit code 0 Jesus M. Salvo Jr. wrote: Tim Wild wrote: Thanks Jesus, I gave this a try, but I think I missed something, as it didn't work - I

client certs - how to choose which cert to use?

2004-05-23 Thread Tim Wild
Hi all, Using a link to Sun code that a few people have posted before, I have client authentication working using HttpClient by creating my own SecureProtocolSocketFactory. The problem i'm having is that it seems to automatically choose a certificate without asking me which one to use. Does

client certs - how to choose which cert to use?

2004-05-23 Thread Tim Wild
Hi all, Using a link to Sun code that a few people have posted before, I have client authentication working using HttpClient by creating my own SecureProtocolSocketFactory. The problem i'm having is that it seems to automatically choose a certificate without asking me which one to use. Does