Changeset 505:c3f1ba2c12d3 in freeDiameter
- Timestamp:
- Aug 19, 2010, 7:43:30 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/OpenWRT/packages/freeDiameter/Makefile
r504 r505 123 123 124 124 # Test if the configuration file contains the local identity already 125 localid =`sed -n -r -e "s/^[[:space:]]*Identity[[:space:]]*=[[:space:]]*\"([^\"]*)\"[[:space:]]*;/\1/p" /etc/freeDiameter/freeDiameter.conf`125 localid=`sed -n -r -e "s/^[[:space:]]*Identity[[:space:]]*=[[:space:]]*\"([^\"]*)\"[[:space:]]*;/\1/p" /etc/freeDiameter/freeDiameter.conf` 126 126 if [ -z "$localid" ]; then 127 127 # Ask for the local name … … 136 136 # Is there already a ConnectPeer directive? 137 137 grep -q -E -e "^[[:space:]]*ConnectPeer[[:space:]]*=" /etc/freeDiameter/freeDiameter.conf 138 if [ "$?" -eq "1" ; then138 if [ "$?" -eq "1" ]; then 139 139 echo -n "Diameter Identity of your Diameter server: " 140 140 read serverid … … 145 145 read serverip 146 146 connstr="" 147 if [ -n "$serverip"] then147 if [ -n "$serverip"]; then 148 148 connstr=" { ConnectTo = \"$serverip\"; }" 149 149 fi … … 168 168 echo "country = net" >>/tmp/template.cnf 169 169 echo "cn = $localid" >>/tmp/template.cnf 170 echo "expiration_days = 3650 171 echo "signing_key >>/tmp/template.cnf172 echo "encryption_key 170 echo "expiration_days = 3650" >>/tmp/template.cnf 171 echo "signing_key" >>/tmp/template.cnf 172 echo "encryption_key" >>/tmp/template.cnf 173 173 certtool -s --load-privkey /etc/freeDiameter/freeDiameter.key \ 174 174 --outfile /etc/freeDiameter/freeDiameter.pem \ … … 176 176 rm -f /tmp/template.cnf 177 177 echo "Done." 178 echo "============================================================" 178 179 echo "To enable TLS communication, you should either:" 179 180 echo " - use a real certificate signed by your server's CA" 180 181 echo " - or, copy the two peers certificates in a ca.pem file and " 181 182 echo " add this file in freeDiameter configuration." 183 echo "============================================================" 182 184 fi 183 185 endef
Note: See TracChangeset
for help on using the changeset viewer.