4129 links
740 private links
  • Doo's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
  • ► Jouer les vidéos
Links per page: 20 50 100
  • Note:

    une fonction pour vérifier un certificat remote sur un local ca.crt

    verify_cert ()
    { 
        g=${PWD};
        cd /tmp;
        echo $2 | cut -c 1 | grep --color=auto -iEq '\.|\/';
        if [ $? -eq 0 ]; then
            capath=$2;
        else
            capath=$g/$2;
        fi;
        echo verifying $1 against $capath...;
        openssl s_client -showcerts -connect $1 < /dev/null 2> /dev/null | openssl x509 -outform PEM > cert.pem && openssl verify -verbose -CAfile $capath cert.pem;
        ret=$?;
        cd -;
        return $ret
    }
    January 21, 2019 02:54:25 PM GMT+01:00 * - permalink -
    QRCode
    - https://dooby.fr/shaare/RTDK5g
    bash openssl
Links per page: 20 50 100
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation