94
95
96
97
98
99
100
101
102
103
|
i_shortsubject="$(openssl x509 -in "${i_cert}" -subject -noout | sed 's@.*=@@' | cut -c 1-20)"
i_normsubject="$(echo "${i_shortsubject}" | sed 's@ @@g' | dd conv=lcase 2>/dev/null)"
i_filename="federal-${i_normsubject}-${i_idx}.crt"
echo "cat << \_EOF_ > '${s_filename}'"
openssl x509 -in "${cert}"
echo "_EOF_"
;;
esac
done
|
>
|
94
95
96
97
98
99
100
101
102
103
104
|
i_shortsubject="$(openssl x509 -in "${i_cert}" -subject -noout | sed 's@.*=@@' | cut -c 1-20)"
i_normsubject="$(echo "${i_shortsubject}" | sed 's@ @@g' | dd conv=lcase 2>/dev/null)"
i_filename="federal-${i_normsubject}-${i_idx}.crt"
echo "cat << \_EOF_ > '${s_filename}'"
openssl x509 -in "${cert}"
echo "_EOF_"
echo "# NetScaler: link ssl certKey '${s_shortsubject} ${s_idx}' '${i_shortsubject} ${i_idx}'"
;;
esac
done
|