CA.all script problem with openssl on freeradius - Openssl

This is a discussion on CA.all script problem with openssl on freeradius - Openssl ; It may be a problem with openssl version and CA.all script.
So I modified CA.pl in openssl.
Path of CA.pl -
/usr/local/ssl/misc
add line like below:
--------------------------------------------
~~~
open OUT, ">${CATOP}/serial";
# random version number for serial file
print OUT ...

CA.all script problem with openssl on freeradius

open OUT, ">${CATOP}/serial";
# random version number for serial file
print OUT "03";
close OUT;

~~~~

it is simply made for CA.all script.

whole CA.pl script modifed :
-----------------------------------------------------------------------
#!/usr/bin/perl
#
# CA - wrapper around ca to make it easier to use ... basically ca
requires
# some setup stuff to be done before you can use it and this makes
# things easier between now and when Eric is convinced to fix it
:-)
#
# CA -newca ... will setup the right stuff
# CA -newreq[-nodes] ... will generate a certificate request
# CA -sign ... will sign the generated request and output
#
# At the end of that grab newreq.pem and newcert.pem (one has the key
# and the other the certificate) and cat them together and that is what
# you want/need ... I'll make even this a little cleaner later.
#
#
# 12-Jan-96 tjh Added more things ... including CA -signcert which
# converts a certificate to a request and then signs
it.
# 10-Jan-96 eay Fixed a few more bugs and added the SSLEAY_CONFIG
# environment variable so this can be driven from
# a script.
# 25-Jul-96 eay Cleaned up filenames some more.
# 11-Jun-96 eay Fixed a few filename missmatches.
# 03-May-96 eay Modified to use 'ssleay cmd' instead of 'cmd'.
# 18-Apr-96 tjh Original hacking
#
# Tim Hudson
# tjh@cryptsoft.com
#