|
From: Tomas G. <to...@pr...> - 2004-07-13 08:52:50
|
The problem in Solaris is most likely due to differences in shell interpretation between bash and Solaris-sh. The problem is that the DN argument needs to hande spaces in it, which is why there is the line 'IFS=' in the Linux script. There was a similar issue for FreeBSD, but I can't remember the solution. The issue in question is that the shell splits the dn argument (containing spaces) so the next script thinks it is several argument instead of one, so the input to the next script is invalid. I don't have a solaris box, so I can only give this hint... /Tomas Sascha Ziemann wrote: > Stephane Bailliez <ste...@be...> writes: > > >>exec ./ejbca.sh ca init $ca_name "$ca_dn" $ca_keysize $ca_validity > > > I saw this kind of shell scripting in different places in EJBCA. In > most cases it is an error not to quote shell variables. So I strongly > recommend to use this coding style: > > exec ./ejbca.sh ca init "$ca_name" "$ca_dn" "$ca_keysize" "$ca_validity" > > cu Sascha > |