--- a/securesite.module
+++ b/securesite.module
@@ -100,6 +100,10 @@ function securesite_form_system_site_information_settings_alter(&$form, $form_st
  */
 function securesite_boot() {
   global $user;
+  // Drush integration. Does nothing more when we are running from the CLI.
+  if (function_exists('drush_verify_cli') && drush_verify_cli()) {
+    return;
+  }
   // Did the user send credentials that we accept?
   $type = _securesite_mechanism();
   if ($type !== FALSE && (isset($_SESSION['securesite_repeat']) ? !$_SESSION['securesite_repeat'] : TRUE)) {
