diff --git a/lib/crawler.js b/lib/crawler.js
index <HASH>..<HASH> 100644
--- a/lib/crawler.js
+++ b/lib/crawler.js
@@ -24,7 +24,10 @@ module.exports.crawl = function(url, callback) {
 
   if (config.basicAuth) {
     pUrl = urlParser.parse(url);
-    args.push('-Dcom.soulgalore.crawler.auth=' + pUrl.hostname +':' + (pUrl.port||80) + ':' + config.basicAuth);
+    var port = pUrl.port || 80;
+    if (pUrl.protocol === 'https:')
+      port = 443;
+    args.push('-Dcom.soulgalore.crawler.auth=' + pUrl.hostname +':' + port + ':' + config.basicAuth);
   }
   if (config.proxy) {
     pUrl = urlParser.parse(config.proxy);
add the port to the crawler if the site is using https closes #<I>