Hello,
I am generating security certificates using the 'create_ca.sh' and 'create_cert.sh' in a unix host.
the create_ca.sh works fine.
but when i run the create_cert.sh, there is an error when the script is run, but also the certificate name does not contain the host.
this is the error when running the script:
[b][i]host5-05{genesys}: bash ./create_cert.sh -host host5-05 -CN host5-05
awk: syntax error near line 1
awk: bailing out near line 1[/i][/b]
In the repository directory the files naming are like this:
[i][b]02__cert.pem[/b][/i]
but according to the security deployment guide this should be [b]<serial_#>_<host_name>_cert.pem[/b].
The script itself is shown below where i can see awk code:
[i][b]#
# Cut _host_ name from full DN host name
#
hostName=`echo ${fullHostName} | awk -F \. '{printf("%s",$1)}'`
#
# Set used file names
#
# Directory where _this_ scripts is locates
scriptDir=`echo ${0} | awk -F/ '{ dir=""; for (i=1; i<NF; i++) {dir=dir$(i)FS;} print(dir); }'`
repositoryDir=${scriptDir}/repository
caConfDir=${scriptDir}/ca_conf
caConfigFileName=${caConfDir}/ca.conf
caSerialNumFileName=${caConfDir}/serial.num[/b][/i]
Where is the issue? looks to be related to the host name used in the bash script (asking me for full DNS name?). didnt realise i needed this or what it is (we have always used the host name as stated and/or IP).
Using Security Pack v8.5.100.23.
thanks,