libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

check_certs.sh (550B)


      1 #! /bin/sh
      2 
      3 openssl x509 -in root-ca.crt -text -noout || \
      4   exit $?
      5 
      6 openssl x509 -in inter1-ca.crt -text -noout || \
      7   exit $?
      8 
      9 openssl x509 -in inter2-ca.crt -text -noout || \
     10   exit $?
     11 
     12 openssl x509 -in test-server.crt -text -noout || \
     13   exit $?
     14 
     15 echo "Checking server sertificate, with checking CAs up to the root CA..."
     16 openssl verify -verbose -x509_strict -auth_level 3 \
     17   -no-CAfile -no-CApath -no-CAstore \
     18   -untrusted inter1-ca.crt \
     19   -untrusted inter2-ca.crt \
     20   -CAfile root-ca.crt \
     21   test-server.crt || \
     22   exit $?
     23 
     24 
     25 echo "SUCCEED"