Re: How to change Common Name field in a self-signed certificate at run time

2006-08-18 Thread Krishna M Singh
Hi We have used the code present in ca.c to make a library to generate the certs on fly.. OpenSSL CA generates the certificates. We have used the same.. Plz chk ca.c it would give more insigh.. I am sorry to say but to us it appears they aren't any simple direct API for this.. HTH -Krishna On

Re: How to change Common Name field in a self-signed certificate at run time

2006-08-16 Thread Krishna M Singh
U can have a set of APIs to generate the cert with some configurable common name on the fly... Not sure whether u want to always use a particular self-sign cert and modifiy CN of that particular cert or u want to generate a self-signed cert with a configurable common name... hth -Krishna On

RE: How to change Common Name field in a self-signed certificate at run time

2006-08-16 Thread Xie Grace Jingru-LJX001
Hi Krishna, Thanks for your help. What are the set of APIs that would enable me to generate the cert on the fly? Could you provide more detail? Thanks, -Grace -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Krishna M Singh Sent: Wednesday, August 16,

Re: How to change Common Name field in a self-signed certificate at run time

2006-08-16 Thread Kyle Hamilton
To change the Common Name attribute (or any attribute, really), you have to re-sign the new certificate. I'd think that you would need d2i_*, i2d_*, X509_*, and whatever else is necessary to actually sign the data... then load the newly-signed data as the certificate. You should look at the

Re: How to change Common Name field in a self-signed certificate at run time

2006-08-16 Thread Marek Marcola
Hello, To change the Common Name attribute (or any attribute, really), you have to re-sign the new certificate. I'd think that you would need d2i_*, i2d_*, X509_*, and whatever else is necessary to actually sign the data... then load the newly-signed data as the certificate. You should

How to change Common Name field in a self-signed certificate at run time

2006-08-15 Thread Xie Grace Jingru-LJX001
Hi, In the code I am programming, it's required to replace the Common Name (CN) field at runtime. Does anyone know how to replace one field at runtime without using Openssl command? Meaning by calling some routing to change just that one field in a self-signed certificate. Thanks, -Grace