Hi,

I'm kinda new to OpenSSL so please be gentle.

I am currently in the process of setting up a certificate chain for an intranet

I want something like Thawte has
Fonville IT Root CA
        Fonville IT CA
                www.sergefonville.nl

I have searched far and wide, but could not find a definitive guide.
I have a couple of questions now:
Do I need a separate key for every certificate
what commands should I use
What specific settings do I need in openssl.cnf

I am running Windows Vista x64
My directory structure is as follows

C:\ProgramData\OpenSSL\Fonville IT CA
C:\Program Files\OpenSSL
C:\Program Files\Apache
C:\ProgramData\htdocs-secure

I attached the openssl.cnf I created and the batch file I used to
create the certificate
I know there are a lot of bugs in there, so all the help is greatly appreciated.

When I succeed, I will post back everything I have discovered, so
anyone else with a similar problem can use it

I probably forgot some important points. so please do point them out

Thanks a lot in advance!!!

Regards,

Serge Fonville
@echo off
md "C:\ProgramData\OpenSSL\Fonville IT CA"
cd /d "C:\ProgramData\OpenSSL\Fonville IT CA"
md root
cd root
type NUL > index.txt
echo 01 > serial
md certs private newcerts crl requests
cd ..
md intermediate
cd intermediate
type NUL > index.txt
echo 01 > serial
md certs private newcerts crl requests
cd ..
md certificates
cd certificates
md certs
cd ..
openssl req -out root\certs\cacert.pem -nodes -new -newkey rsa:4096 -keyout 
root\private\cakey.pem -sha1 -config openssl.cnf -x509 -days 3650 -extensions 
v3_ca
openssl req -out root\requests\cacert.csr -nodes -newkey rsa:4096 -keyout 
intermediate\private\cakey.pem -config openssl.cnf
openssl ca -extensions v3_ca -days 3650 -out intermediate\certs\cacert.pem -in 
root\requests\cacert.csr -config openssl.cnf -name CA_root
openssl req -new -out intermediate\requests\sergefonville.nl.csr -nodes -key 
intermediate\private\cakey.pem -config openssl.cnf
openssl ca -extensions v3_ca -days 365 -out 
certifcates\certs\sergefonville.nl.pem -in 
intermediate\requests\sergefonville.nl.csr -key intermediate\private\cakey.pem 
-config openssl.cnf -name CA_intermediate
type NUL > chain.pem
type root\certs\cacert.pem > chain.pem
type intermediate\certs\cacert.pem >> chain.pem
type certificates\certs\sergefonville.nl.pem >> chain.pem

Attachment: openssl.cnf
Description: Binary data

Reply via email to