[asterisk-commits] tzafrir: trunk r393383 - /trunk/contrib/scripts/ast_tls_cert
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jul 2 03:23:18 CDT 2013
Author: tzafrir
Date: Tue Jul 2 03:23:16 2013
New Revision: 393383
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393383
Log:
ast_tls_cert: don't recreate generated files
Don't regenrate cat.cfg, ca.crt and ca.key if they were already created
on a previous run.
(closes issue ASTERISK-21932)
Modified:
trunk/contrib/scripts/ast_tls_cert
Modified: trunk/contrib/scripts/ast_tls_cert
URL: http://svnview.digium.com/svn/asterisk/trunk/contrib/scripts/ast_tls_cert?view=diff&rev=393383&r1=393382&r2=393383
==============================================================================
--- trunk/contrib/scripts/ast_tls_cert (original)
+++ trunk/contrib/scripts/ast_tls_cert Tue Jul 2 03:23:16 2013
@@ -204,8 +204,12 @@
CAKEY=${OUTPUT_DIR}/ca.key
CACERT=${OUTPUT_DIR}/ca.crt
CACFG=${OUTPUT_DIR}/ca.cfg
- create_config ca "${CACFG}" "${DEFAULT_CA_CN}" "${DEFAULT_CA_ORG}"
- create_ca
+ if [ ! -r "$CAKEY" ] && [ ! -r "$CACFG" ]; then
+ create_config ca "${CACFG}" "${DEFAULT_CA_CN}" "${DEFAULT_CA_ORG}"
+ fi
+ if [ ! -r "$CACERT" ]; then
+ create_ca
+ fi
else
if [ -z ${CAKEY} ]
then
More information about the asterisk-commits
mailing list