certificate signing authority is unknown or invalid

2008-06-19 Thread Gerhard Gappmeier
Hello I'm creating a self-signed x509 certificate with some extensions. I have to set DNS and URI in subjectAltName, keyUsage and extendedKeyUsage. Sample: subjectAltName = URI:opc.tcp://FOO:4840, DNS:FOO keyUsage = nonRepudiation, digitalSignature, keyEncipherment, dataEncipherment

Re: HTTPS put file in perl

2008-06-19 Thread Jim Lynch
I don't have any examples, but check out http://search.cpan.org/dist/libwww-perl/lib/HTTP/Request/Common.pm Using LWP and a PUT operation seems to be pretty straightforward if this document is to be believed. Jim. On Wed, Jun 18, 2008 at 3:40 PM, David M. Funk [EMAIL PROTECTED] wrote: Anybody

Unable to send a response packet to client browser

2008-06-19 Thread lakshmi prasanna
Hi, I tried to implement a simple HTTPS server using openssl. The Server establishes an SSL connection, receives input and searches the input for GET string. If string is found it is supposed to send a static response to the client. The client here can be any browser. I am able to establish the

Re: I'm having trouble getting an ssl client programmed in java

2008-06-19 Thread Jim Lynch
On Wed, Jun 18, 2008 at 5:33 PM, Julius Davies [EMAIL PROTECTED] wrote: Your very first code example (without the context) should be fine! There is no need to set any ciphers. Java has a list of ciphers it will automatically try to use. If you like downloading jar files, here's another way:

RE: HTTPS put file in perl

2008-06-19 Thread David M. Funk
Yea that's what I tried earlier and couldn't get to work.. Thanks for your reply though. David M. Funk President/CEO Tivoli Certified Enterprise Consultant Specializing in Network and Systems Management Solutions Trinity Solutions 604 Cassandra Dr. Cranberry Twp., PA 16066 From:

Re: certificate signing authority is unknown or invalid

2008-06-19 Thread Gerhard Gappmeier
You can see that error when you are opening the cert file in Konqueror or Windows Explorer. I just found out that it works when I'm adding the keyCertSign flag to keyUsage. But I don't understand the background why this is necessary. Is there any documentation available about this extensions?

Questions about EC

2008-06-19 Thread Jan F. Schnellbaecher
Hi, I have problems to establish a SSL connection where the server certificate is based on an EC key. I first tried via the c-api, but I can't make it working even with the command line tool. This is what I did: xxx:~./openssl ecparam -name secp256r1 -genkey -out ecc1.pem using curve name

Re: Unable to send a response packet to client browser

2008-06-19 Thread Kyle Hamilton
Uh, what is the actual behavior? Have you attempted to debug it with openssl s_client? Have you attempted to figure out what a real webserver, such as Apache, does with the same input? This is not a general we will debug your code for you list, but we can point you in the directions to look for

Re: HTTPS put file in perl

2008-06-19 Thread Kyle Hamilton
PUT is part of the DAV specification. I'm seeing http://www.webdav.org/perldav/ as being a good start. It states that Crypt::SSLeay (and thus openssl) is necessary for getting HTTPS support into LWP, which the HTTP::DAV module uses. -Kyle H On Thu, Jun 19, 2008 at 7:27 AM, David M. Funk [EMAIL

RE: Unable to send a response packet to client browser

2008-06-19 Thread David Schwartz
for (nread = 0; nread sizeof(buf); nread += err) { err = SSL_read(client_conn, buf + nread, sizeof(buf) - nread); if (err = 0) break; } Umm, this doesn't look like an HTTP

RE: HTTPS put file in perl

2008-06-19 Thread David M. Funk
Ok Great!! Thanks, I'll give it a try... David M. Funk President/CEO Tivoli Certified Enterprise Consultant Specializing in Network and Systems Management Solutions Trinity Solutions 604 Cassandra Dr. Cranberry Twp., PA 16066 Phone: 724-316-0721 Fax:

Given a certificate (PKC#7 format) how can you determine the root certificate file name

2008-06-19 Thread Olivia Hudson
I'm writing code in C++ and to validate a certificate I need to verify it's chain back to the root certificate. The method that validates the certificate also needs the root certificate file name. How can I determine the root certificate file name for a given certificate? I know the directory

Re: Questions about EC

2008-06-19 Thread Kyle Hamilton
xxx:~$ openssl s_client -connect ecc.fedora.redhat.com:8443 -ssl3 -state -debug CONNECTED(0003) SSL_connect:before/connect initialization write to 0020BFC0 [00132000] (86 bytes = 86 (0x56)) - 16 03 00 00 51 01 00 00-4d 03 00 48 5a a5 74 38 Q...M..HZ.t8 0010 - 59 cc f7 49 e3 a2 ee

RE: HTTPS put file in perl

2008-06-19 Thread Norm Bumbieris
David This was part of a script I developed for a credit card gateway using Active Perl 5.8.0. It basically imported a file, encrypted and sent it and then parsed the response out to another file. I installed openssl and installed the netssleay 1.32 pm in Active Perl. I also used a similar