[root@airwayORA misc]# ./CA.sh -newca

Private KEY:/usr/local/openssl/ssl/misc/demoCA/private/cakey.pem,
CA:/usr/local/openssl/ssl/misc/demoCA/careq.pem

but there is not cacert.pem in the "private".just have "careq.pem"

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2.
[root@airwayORA misc]# openssl genrsa -des3 -out server.key 1024

private key of server:/usr/local/openssl/ssl/misc/server.key

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root@airwayORA misc]# openssl req -new -key server.key -out server.csr


private of the server:/usr/local/openssl/ssl/misc/server.csr

change name :"server.crt" mv "newreq.pem",then sign it
[root@airwayORA misc]# ls
CA.pl CA.sh c_hash c_info c_issuer c_name demoCA server.csr server.key
[root@airwayORA misc]# mv server.csr newreq.pem
[root@airwayORA misc]# ls
CA.pl CA.sh c_hash c_info c_issuer c_name demoCA newreq.pem server.key


[root@win ssl.crt]# mv server.csr newreq.pem

[root@airwayORA misc]# ./CA.sh -sign

[root@win ssl.crt]# ./CA.sh -sign
[root@airwayORA misc]# ./CA.sh -sign
Using configuration from /usr/share/ssl/openssl.cnf
Enter pass phrase for ./demoCA/private/cakey.pem:
Error opening CA certificate ./demoCA/cacert.pem
30461:error:02001002:system library:fopen:No such file or directory:bss_file.c:259:fopen('./demoCA/cacert.pem','r')
30461:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:261:
unable to load certificate
cat: newcert.pem: No such file or directory
Signed certificate is in newcert.pem

how to slove this problem? thank u!