Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/update-certificate.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2747 by niro, Fri Jan 29 09:01:24 2016 UTC revision 2748 by niro, Fri Jan 29 12:32:15 2016 UTC
# Line 29  type -P openssl > /dev/null || die "open Line 29  type -P openssl > /dev/null || die "open
29  [ ! -f ${KEYFILE} ] && die "${KEYFILE} doesn't exist!"  [ ! -f ${KEYFILE} ] && die "${KEYFILE} doesn't exist!"
30    
31  # create a new signing request  # create a new signing request
32  openssl req -new -x509 -nodes -config ${SSLCONFIG} -key ${KEYFILE} -out ${REQFILE} || die "Certificate request failed!"  openssl req -new -x509 -sha1 -nodes -config ${SSLCONFIG} -key ${KEYFILE} -out ${REQFILE} || die "Certificate request failed!"
33  # generate the new certificate  # generate the new certificate
34  openssl x509 -subject -fingerprint -in ${REQFILE} -signkey ${KEYFILE} -out ${CERTFILE} -days 365 || die "Fingerprint failed!"  openssl x509 -sha1 -subject -fingerprint -in ${REQFILE} -signkey ${KEYFILE} -out ${CERTFILE} -days 365 || die "Fingerprint failed!"
35  # verify the certificate  # verify the certificate
36  openssl verify ${CERTFILE}  openssl verify ${CERTFILE}

Legend:
Removed from v.2747  
changed lines
  Added in v.2748