473,385 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ZServerSSL and Certificates

Hi,

I have been able to get ZServerSSL to work with the demo certs, and
with some self generated. However I'm really not clear on
certificates in general, and we're about to try it with real certs
from a real CA.

What I'd like to find is some really clear documentation on
ZServerSSL. What I have had to do is to try and interpret between the
general SSL certificate information sites and the ZServerSSL package.

What I did this last go-around was to snag CA.pl and visit
https://www.entrust.com/freecerts/ag_server_req.cfm

Step 3 requires a server certificate request (PKCS#10 request)

Here's what I did:

# openssl -des3 -out privatekey 1024
# ./CA.pl -newreq

Which gave me newreq.pem, so I cut the text between the markers and
pasted it into the box, and submitted it.

Then I get two files back from the web site.

I believe that the first is the server cert, the second a ca cert.

So I take privatekey.pem and the ca cert and combine them into a
single file called ca.pem.

Then I:

# ./CA.pl -sign
# openssl rsa < newreq.pem > newkey.pem

and I combine the server cert and newkey.pem and call it server.pem.

I stop & restart the server, I get no errors from ZServerSSL.

However, when I try and access the site I get:

Microsoft IE6 first shows a request for a cert to use, I click OK to
bypass it then a warning dialog that the ca is not trusted.

Mozilla diaplays a panel warning that there are three potential
problems.

In either case if I ignore the warnings I get a secure connection.

I need to understand what I'm doing wrong here.

Please enlighten me!
Jul 18 '05 #1
4 1570
According to Sean <st*******@cox.net>:
However I'm really not clear on
certificates in general, and we're about to try it with real certs
from a real CA.
Ahem, please read this sentence aloud to yourself. Does it sound like a
good idea?
# openssl -des3 -out privatekey 1024
# ./CA.pl -newreq
You mean 'openssl rsa ...' Anyways it is a no-op, given your second
command; i.e., 'CA.pl -newreq' generates a key pair.
So I take privatekey.pem and the ca cert and combine them into a
single file called ca.pem.
Why?
# ./CA.pl -sign
This _signs_ your certificate request. Given that you've already gotten
your certificate request signed by a 3rd party CA, this step is
superfluous.
# openssl rsa < newreq.pem > newkey.pem
and I combine the server cert and newkey.pem and call it server.pem.
Yup this is fine provided your newreq.pem contains your private key.
Microsoft IE6 first shows a request for a cert to use,
This sounds like the server is asking for a client cert. Have you
configured your ZServerSSL to do so? I think the server doesn't do that by
default.
I click OK to
bypass it then a warning dialog that the ca is not trusted.
Is the 3rd party CA's cert installed into your IE6?
Mozilla diaplays a panel warning that there are three potential
problems.
What are the error messages?
In either case if I ignore the warnings I get a secure connection.
You get a HTTPS connection. You are connecting to a site (well, your own,
in this case) which certificate's CA your browser does not trust.
"Secure" is a loaded word. ;-)
I need to understand what I'm doing wrong here.


Read up more on how X.509 certificates are structured and on how SSL uses
them.

Then go install one or more other SSL server products. Follow their
instructions on installing certificates. Once you see how different
software packages do the same things it should become clearer to you. Try
Apache + mod_ssl or AOLserver, say. Don't choose one where you configure
the stuff using Windows or web-based pointy-and-clicky interfaces - you
won't learn much that way.

HTH.
--
Ng Pheng Siong <ng**@netmemetic.com>

http://firewall.rulemaker.net -+- Cisco PIX & Netscreen Config Version Control
http://sandbox.rulemaker.net/ngps -+- M2Crypto, ZServerSSL for Zope, Blog
Jul 18 '05 #2
Hi Sean,
Hi,

I have been able to get ZServerSSL to work with the demo certs, and
with some self generated. However I'm really not clear on
certificates in general, and we're about to try it with real certs
from a real CA. I'm not a guru either, but I guess I know what your problem is. By the
way, if I were you, I would try to use apache+mod_ssl+mod_rewrite
instead of m2crypto. I have heard apache is faster than the later and
you won't have ZServer exposed to the world. If you want more info about
this, search the zope mailing list on list.zope.org.
What I did this last go-around was to snag CA.pl and visit
https://www.entrust.com/freecerts/ag_server_req.cfm I haven't tried it, but it looks good.
So I take privatekey.pem and the ca cert and combine them into a
single file called ca.pem.

Then I:

# ./CA.pl -sign
# openssl rsa < newreq.pem > newkey.pem

and I combine the server cert and newkey.pem and call it server.pem. I think more or less that's why I did.
However, when I try and access the site I get:

Microsoft IE6 first shows a request for a cert to use, I click OK to
bypass it then a warning dialog that the ca is not trusted.

Mozilla diaplays a panel warning that there are three potential
problems.

In either case if I ignore the warnings I get a secure connection.

I need to understand what I'm doing wrong here.

Perhaps the Common Name (CA) of your cert isn't the same as the url of
your website. Check this on the cert properties on the certificate
manager of Mozilla.

Other problem could be that "entrust.com" isn't listed as Trusted Root
Certification Authority (Look on the certificate manager of mozila or
IE). I only found "entrust.net". I guess the certificates generated by
this website aren't intended for business. I think that if you want your
certificate to be sign by some well known CA, you have to pay. Anyway,
the warning is not bad. It depends on your needs.

Regards,
Josef
Jul 18 '05 #3
Sean wrote:

So I take privatekey.pem and the ca cert and combine them into a
single file called ca.pem.
Why? The server's private key has nothing to do with the CA certificate.
Then I:

# ./CA.pl -sign
# openssl rsa < newreq.pem > newkey.pem
Nope. You don't have to issue a new cert.
and I combine the server cert and newkey.pem and call it server.pem.
You issued another server cert without need for doing so.
Microsoft IE6 first shows a request for a cert to use, I click OK to
bypass it then a warning dialog that the ca is not trusted.


Yes. Since you installed your privately generated server cert instead of the
server cert issued by the CA.

Simply use the server cert you got back from the CA.

Ciao, Michael.
Jul 18 '05 #4
st*******@cox.net (Sean) wrote in message news:<32**************************@posting.google. com>...
Thanks to all of those who helped! We've applied for our cert.

I still have a lot of learning to do, but here's the summary:

1) Generate a new request/key pair

# CA.pl -newreq

2) send newreq.pem to the website

3) get the server cert & save as server.pem

4) get the rsa private key

# openssl rsa < newreq.pem > newkey.pem

5) append newkey.pem to server.pem

6) get the ca cert and save as ca.pem

7) copy ca.pem and server.pem to the ssl directory.

So far so good!
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Next | last post by:
Hello, I sure could use someone's help : ) I need to authenticate users and securely upload files from laptops on the internet ( not on the same domain as server ) to a server on my domain....
0
by: dinoo | last post by:
Can some body help me out? I am trying to use client certificates in a Webservice. But some how i am not able to make it. I went through the msdn resources but i think some one needs to help me...
2
by: Larry David | last post by:
Hi, This is one of those posts where not only do I not know the answer, I don't fully understand the *question* that I should be asking... but I'll try my best: I've designed a web site which...
5
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client...
0
by: Thomas G. Apostolou | last post by:
Hello all, Dear Ng Pheng Siong, thank you for your great job with M2Crypto. I have got and build 0.15 version on a win xp box recently and was reading your "ZServerSSL HOWTO" document so that...
1
by: rds | last post by:
We are developing a smart client application which consumes web services. The web services are being secured with X509 certificates. During the development/testing phase we have been using the X509...
2
by: Rune Nergard | last post by:
I have tried to use the System.Security.Cryptography.Xml.SignedXml class to sign an Xml message with Xml-DSIG and using an Enveloped signature type and the sha1RSA algorithm. Everything works fine...
0
by: Schweizer Karo | last post by:
hallo ng. i have a problem on a client. when i try to use a web-services call, i get the exception: "The underlying connection was closed: Could not establish secure channel for SSL/TLS." ...
5
by: GaryDean | last post by:
I have to write an asp.net app that uses a web service requiring x.509 certificates. Are there any good docs on how to do this both in code and on the server. Most of the stuff I'm finding...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.