The following patch fixes the error which occurs when using
    make certificate VIEW=1
to display the certificate and key. Currently, it ends in..
./support/mkcert.sh: : cannot execute
./support/mkcert.sh: test: unknown operator Algorithm | grep -i RSA
Make[1]: *** [certificate] Error 1
Make[1]: Leaving directory `/home/martin/Apache-Sec/apache_1.3.9/src'
Make: *** [certificate] Error 2

This bug is still present in 2.4.3

    Martin
-- 
<[EMAIL PROTECTED]>      |        Siemens Information and
Phone: +49-89-636-46021               |        Communication  Products
FAX:   +49-89-636-47816               |        81730  Munich,  Germany
*** src/support/mkcert.sh.orig  Di 28.Sep.1999, 13:04:40
--- src/support/mkcert.sh       Di 28.Sep.1999, 13:05:21
***************
*** 63,69 ****
          echo "______________________________________________________________________"
          $openssl x509 -noout -text -in $sslcrtdir/ca.crt
          echo ""
!         if [ ".`$openssl x509 -noout -text -in $sslcrtdir/ca.crt | grep "Signature 
Algorithm" | grep -i RSA`" != . ]; then
              echo "${T_MD}CA RSA Private Key${T_ME} [ca.key]"
              echo 
"______________________________________________________________________"
              $openssl rsa -noout -text -in $sslkeydir/ca.key
--- 63,69 ----
          echo "______________________________________________________________________"
          $openssl x509 -noout -text -in $sslcrtdir/ca.crt
          echo ""
!       if [ ".`$openssl x509 -noout -text -in $sslcrtdir/ca.crt | grep \"Signature 
Algorithm\" | grep -i RSA`" != . ]; then
              echo "${T_MD}CA RSA Private Key${T_ME} [ca.key]"
              echo 
"______________________________________________________________________"
              $openssl rsa -noout -text -in $sslkeydir/ca.key

Reply via email to