On Thu, Nov 26, 1998 at 04:54:19PM +0000, Nuno Grilo wrote:
> 
> 
> On Thu, 26 Nov 1998, Ralf S. Engelschall wrote:
> 
> > On Thu, Nov 26, 1998, Michael Hallgren wrote:
> > 
> > > On Thu, Nov 26, 1998 at 08:16:14AM +0100, Ralf S. Engelschall wrote:
> > > > On Thu, Nov 26, 1998, Nuno Grilo wrote:
> > > > 
> > > > > I have a machine running WindowsNT+IIS with a certificate issued by 
> > > > > verisign and which I will soon change to Unix+apache+mod_ssl.
> > > > > I would like to know if it is possible to transfer the private 
> > > > > key/certificate from IIS to apache or will I have to ask verisign to 
> > > > > issue a new certificate?
> > > > 
> > > > The certificate is a X.509 certificate, so you can use it with Apache, too.
> > > > But it can be encoded in a different envelop format. I guess IIS uses plain
> > > > DER while for Apache+mod_ssl+SSLeay you need it in PEM format. What you
> > > > usually need is to convert it. 
> > > > 
> > > > For instance you can use the following SSLeay commands to convert your
> > > > iis-server.crt/iis-server.key files (assuming they are named this way and are
> > > > in DER format) to the server.crt/server.key files for mod_ssl:
> > > > 
> > > > $ ssleay x509 -inform DER -in iis-server.crt -outform PEM -out server.crt
> > > > $ ssleay rsa  -inform DER -in iis-server.key -outform PEM -out server.key
> > > 
> > > Hmm,... I tried to go the other way around. Built a pair on a BSD box, sent
> > > a request to Thawte, then tried to use the pair on a Windows box. It did not
> > > work. So I called Thawte, learning that BSD -> Win export of priv key doesn't
> > > work ???
> > 
> > Really? That's interesting. The format of the cert/key data is actually coded
> > in ASN.1, so should be totally portable between BSD and Windows. Hmmmm...
> > never tried this way myself.
> 
> After some hacking with dd, asn1parse and other SSLeay utils I think I 
> made it (I still have to recompile apache with mod_ssl).

Congratulations. I'll give it another shot.

> My problem was getting the private key in a usable state.

That's exactly the point.


> IIS has an option to export the key and certificate but the key is 
> encrypted with a passphrase and I didn't know the format of the export file.


I'll try to check, with my Windows collegue.

> Using asn1parse I discovered that the algorithm is rc4 and using the rc4 
> utility from SSLeay I decrypted the key. Next I had to remove the 
> envelope and convert it to PEM.
> 

So,... I'll give it (yet) another shot... the other way around.


Cheers

Michael


P.S. Ralf, beautiful piece... mod_ssl ;-)

> ______________________________________________________________________
> Apache Interface to SSLeay (mod_ssl)   www.engelschall.com/sw/mod_ssl/
> Official Support Mailing List               [EMAIL PROTECTED]
> Automated List Manager                       [EMAIL PROTECTED]

-- 
Michael Hallgren, Graphnet Systems, http://mh.graphnet.fr
______________________________________________________________________
Apache Interface to SSLeay (mod_ssl)   www.engelschall.com/sw/mod_ssl/
Official Support Mailing List               [EMAIL PROTECTED]
Automated List Manager                       [EMAIL PROTECTED]

Reply via email to