You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a nice scripts but not foolproof.
One problem is that a host can have more IP's and grades. The script doesn't check this you also can't select an IP.
The second problem is the split function that splits on a ":" but IPv6 also uses double points.
I think its better to use the json output with JQ bash utility. So you can get the specific data you want. Like: ./ssllabs-scan -usecache -quiet -maxage 48 google.nl | jq ".[0].endpoints[] | select(.ipAddress==\"2607:f8b0:4005:80a:0:0:0:2003\") | .grade"
By using this method you also can do error handling of the returning values, an example is mismatch of hostname.
It's a nice scripts but not foolproof.
One problem is that a host can have more IP's and grades. The script doesn't check this you also can't select an IP.
The second problem is the split function that splits on a ":" but IPv6 also uses double points.
I think its better to use the json output with JQ bash utility. So you can get the specific data you want. Like:
./ssllabs-scan -usecache -quiet -maxage 48 google.nl | jq ".[0].endpoints[] | select(.ipAddress==\"2607:f8b0:4005:80a:0:0:0:2003\") | .grade"
By using this method you also can do error handling of the returning values, an example is mismatch of hostname.
./ssllabs-scan -usecache -quiet -maxage 48 iamnos.nl | jq ".[0].endpoints[] | select(.ipAddress==\"37.34.60.213\") | .statusMessage"
The text was updated successfully, but these errors were encountered: