Test: check openssl 3.3.0 for x509 v1

This commit is contained in:
Olof hagsand 2024-05-28 19:44:38 +02:00
parent e2140aed10
commit 8098fb031f
48 changed files with 144 additions and 6 deletions

View file

@ -1268,9 +1268,12 @@ challengePassword = test
EOF EOF
# Generate CA cert # Generate CA cert
# XXX v3 requires usage # XXX v3 requires x509 version 1
openssl req -batch -new -x509v1 -days 1 -config $tmpdir/ca.cnf -keyout $cakey -out $cacert || err "Generate CA cert" if [ $(openssl version|awk '{print $2}') = "3.3.0" ]; then
openssl req -batch -new -x509v1 -days 1 -config $tmpdir/ca.cnf -keyout $cakey -out $cacert || err1 "Generate CA cert"
else
openssl req -batch -new -x509 -days 1 -config $tmpdir/ca.cnf -keyout $cakey -out $cacert || err1 "Generate CA cert"
fi
rm -rf $tmpdir rm -rf $tmpdir
} }

View file

@ -26,6 +26,9 @@ fi
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -25,6 +25,9 @@ fyang2=$dir/ietf-interfaces@2019-03-04.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -20,6 +20,9 @@ mkdir $clidir
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -27,6 +27,9 @@ fi
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -23,6 +23,9 @@ USER=${BUSER}
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -31,6 +31,9 @@ fyang=$dir/ietf-interfaces@2019-03-04.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none true) RESTCONFIG=$(restconf_config none true)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -13,6 +13,9 @@ fyang=$dir/restconf.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN> # <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -128,6 +128,9 @@ function testrun()
enable=$2 # true/false enable=$2 # true/false
RESTCONFIG=$(restconf_config none false $proto $enable) RESTCONFIG=$(restconf_config none false $proto $enable)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
if true; then if true; then
# Proper test setup # Proper test setup

View file

@ -13,6 +13,9 @@ fyang=$dir/example-my-crypto.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -19,6 +19,9 @@ fyang=$dir/nacm-example.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -50,6 +50,9 @@ fyang2=$dir/itf.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -19,6 +19,9 @@ fyang=$dir/nacm-example.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -27,6 +27,9 @@ fyang2=$dir/nacm-example2.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -19,6 +19,9 @@ fyang=$dir/nacm-example.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -15,6 +15,9 @@ fyang=$dir/nacm-example.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -18,6 +18,9 @@ nacmfile=$dir/nacmfile
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# Note filter out example_backend_nacm.so in CLICON_BACKEND_REGEXP below # Note filter out example_backend_nacm.so in CLICON_BACKEND_REGEXP below
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -21,6 +21,9 @@ fyang2=$dir/clixon-example.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -34,6 +34,9 @@ fyang2=$dir/clixon-example.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -21,6 +21,9 @@ CFD=$dir/conf.d
test -d $CFD || mkdir -p $CFD test -d $CFD || mkdir -p $CFD
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -36,6 +36,9 @@ fyang=$dir/nacm-example.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -24,6 +24,9 @@ NACMUSER=$(whoami)
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $fyang cat <<EOF > $fyang
module nacm-example{ module nacm-example{

View file

@ -22,6 +22,9 @@ datapath=/data
wdir=$dir/www wdir=$dir/www
RESTCONFIG=$(restconf_config none false $RCPROTO $enable) RESTCONFIG=$(restconf_config none false $RCPROTO $enable)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -17,6 +17,9 @@ fstate=$dir/mystate.xml
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# Validate internal state xml # Validate internal state xml
: ${validatexml:=false} : ${validatexml:=false}

View file

@ -67,6 +67,9 @@ EOF
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -31,6 +31,9 @@ fstate=$dir/state.xml
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -30,6 +30,9 @@ fstate=$dir/state.xml
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -53,6 +53,9 @@ if [ "${WITH_RESTCONF}" = "native" ]; then
else else
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
fi fi
# This is a fixed 'state' implemented in routing_backend. It is assumed to be always there # This is a fixed 'state' implemented in routing_backend. It is assumed to be always there

View file

@ -179,6 +179,9 @@ function testrun()
# Change restconf configuration before start restconf daemon # Change restconf configuration before start restconf daemon
RESTCONFIG=$(restconf_config $auth false) RESTCONFIG=$(restconf_config $auth false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# Start with common config, then append fcgi/native specific config # Start with common config, then append fcgi/native specific config
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -27,6 +27,9 @@ fjson=$dir/large.json
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN> # <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -53,6 +53,9 @@ fstate=$dir/state.xml
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN> # <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -29,6 +29,9 @@ cfg=$dir/conf.xml
RCPROTO=http RCPROTO=http
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# Clixon config # Clixon config
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -25,6 +25,9 @@ EOF
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN> # <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -13,6 +13,9 @@ fyang=$dir/list.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN> # <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -25,9 +25,6 @@ APPNAME=example
cfg=$dir/conf.xml cfg=$dir/conf.xml
fyang=$dir/restconf.yang fyang=$dir/restconf.yang
# Define default restconfig config: RESTCONFIG
# RESTCONFIG=$(restconf_config none false)
# Local for test here # Local for test here
certdir=$dir/certs certdir=$dir/certs
test -d $certdir || mkdir $certdir test -d $certdir || mkdir $certdir

View file

@ -53,6 +53,9 @@ xml=$dir/xml.xml
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN> # <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -15,6 +15,9 @@ fyang=$dir/restconf.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
# <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN> # <CLICON_YANG_MODULE_MAIN>example</CLICON_YANG_MODULE_MAIN>
cat <<EOF > $cfg cat <<EOF > $cfg

View file

@ -14,6 +14,9 @@ fjukebox=$dir/example-jukebox.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -36,6 +36,9 @@ EOF
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none true) RESTCONFIG=$(restconf_config none true)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -22,6 +22,9 @@ fjukebox=$dir/example-jukebox.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -23,6 +23,9 @@ fexample=$dir/clixon-example.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config user false) RESTCONFIG=$(restconf_config user false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -17,6 +17,9 @@ fyang=$dir/clixon-example.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -29,6 +29,9 @@ fextra2=$dir/extra2.yang # Referenced from sub2
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -23,6 +23,9 @@ fstate=$dir/state.xml
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $fanydata cat <<EOF > $fanydata
module any{ module any{

View file

@ -15,6 +15,9 @@ fyang2=$dir/example2.yang
# Define default restconfig config: RESTCONFIG # Define default restconfig config: RESTCONFIG
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -21,6 +21,9 @@ test -d $CFD || mkdir -p $CFD
AUTOCLI=$(autocli_config clixon-\* kw-nokey false) AUTOCLI=$(autocli_config clixon-\* kw-nokey false)
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -15,6 +15,9 @@ fyang=$dir/example-default.yang
fstate=$dir/state.xml fstate=$dir/state.xml
clispec=$dir/spec.cli clispec=$dir/spec.cli
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">

View file

@ -18,6 +18,9 @@ fyang=$dir/example-default.yang
fstate=$dir/state.xml fstate=$dir/state.xml
clispec=$dir/spec.cli clispec=$dir/spec.cli
RESTCONFIG=$(restconf_config none false) RESTCONFIG=$(restconf_config none false)
if [ $? -ne 0 ]; then
err1 "Error when generating certs"
fi
cat <<EOF > $cfg cat <<EOF > $cfg
<clixon-config xmlns="http://clicon.org/config"> <clixon-config xmlns="http://clicon.org/config">