SSL Certificate expired, site not opening

1.0 ERROR

A website stopped opening in browser, giving the error that the SSL certificate was either invalid or had expired.

2. SOLUTION

Checking the website with wget,

$ wget https://www.example.com
--2018-01-14 16:58:36--  https://www.example.com/
Resolving www.example.com (www.example.com)... 198.51.100.12, 2001:db8:1221:2341:f03c:f27b:12fa:2123
Connecting to www.example.com
Read more

Error while executing the dig command

1.0 Error

While executing the dig command, the sendmsg() failed: Operation not permitted error was printed.

$ dig example.com
../../../../lib/isc/unix/net.c:581: sendmsg() failed: Operation not permitted
../../../../lib/isc/unix/net.c:581: sendmsg() failed: Operation not permitted
...

2.0 Solution

The error was resolved after adding the following iptables rules.… Read more