Archive
Posts in Development
domain-check update
I received a few emails about domain-check not producing correct output for some domains. After some poking around, it looks like a few registrars don't publish expiration data. To address this, I added an if statement to domain-check to print "Unknown" if it is unable to locate expiration data: I wish I could get domain-check to work with all domains, but unfortunately it wasn't meant to be.
$ read more →ssl-cert-check update
Based on some feedback I received through email, I modified the ssl-cert-check "-f" option to allow it to process files in addition to hosts/ports: Hopefully folks find this useful.
$ read more →Is a tty?
While reading some documentation today, I came across the libc isatty() and ttyname() functions. I was curious to see how they worked, so I decided to write a little test program: include include (2) include (3) int main(int argc, char**argv) { if ( argc != 2) { printf("Usage: tty fdn"); exit(1); } int fd = atoi(argv[1]); if (isatty(fd)) { printf("File descriptor %d is a terminal %sn",fd, ttyname(fd)); } else { printf("File descriptor %d is not a terminaln",fd); } exit(0); } Even though this is a small meaningless program, programming in C is fun! Shibby!
$ read more →StartTLS support for ssl-cert-check
Marco Amrein sent me a StartTLS patch for ssl-cert-check this week. This nifty patch allows ssl-cert-check to query servers that setup the TLS connection after the initial protocol handshake, which can be helpful for checking the certificate expiration on SMTP and POP3 servers: Thanks Marco!
$ read more →DNS domain expiration checker
I just released version 1.0 of domain-check. domain-check queries WHOIS data and prints domain expiration dates, and works very similar to ssl-cert-check. Since seeing is believing, I will provide several examples to show just what domain-check can do. The first example shows how domain-check can be used to print the expiration date for the domain prefetch.net: The next example show how domain-check can be used to print the expiration date for the domains listed in the file "domains": And the final example shows how domain-check can be used to e-mail in 60-days or less: Send me an E-mail if you have comments or suggestions.
$ read more →