diff -ruw ettercap-NG-0.7.3.orig//include/ec_globals.h ettercap-NG-0.7.3/include/ec_globals.h
--- ettercap-NG-0.7.3.orig//include/ec_globals.h	2011-06-14 23:43:01.000000000 -0400
+++ ettercap-NG-0.7.3/include/ec_globals.h	2011-06-14 23:47:17.000000000 -0400
@@ -65,6 +65,7 @@
    char remote:1;
    char iflist:1;
    char reversed;
+   char *fake_cert_file;
    char *hostsfile;
    char *plugin;
    char *proto;
Only in ettercap-NG-0.7.3.orig//man: ettercap.8
Only in ettercap-NG-0.7.3.orig//man: ettercap_curses.8
Only in ettercap-NG-0.7.3.orig//man: ettercap_plugins.8
Only in ettercap-NG-0.7.3.orig//man: etter.conf.5
Only in ettercap-NG-0.7.3.orig//man: etterfilter.8
Only in ettercap-NG-0.7.3.orig//man: etterlog.8
Only in ettercap-NG-0.7.3: pcap
diff -ruw ettercap-NG-0.7.3.orig//src/ec_log.c ettercap-NG-0.7.3/src/ec_log.c
--- ettercap-NG-0.7.3.orig//src/ec_log.c	2011-06-14 23:43:01.000000000 -0400
+++ ettercap-NG-0.7.3/src/ec_log.c	2011-06-14 23:58:09.000000000 -0400
@@ -190,7 +190,7 @@
       if (fd->cfd == NULL)
          SEMIFATAL_ERROR("%s", gzerror(fd->cfd, &zerr));
    } else {
-      fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY);
+      fd->fd = open(filename, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH , O_CREAT | O_TRUNC | O_RDWR | O_BINARY);
       if (fd->fd == -1)
          SEMIFATAL_ERROR("Can't create %s: %s", filename, strerror(errno));
    }
diff -ruw ettercap-NG-0.7.3.orig//src/ec_parser.c ettercap-NG-0.7.3/src/ec_parser.c
--- ettercap-NG-0.7.3.orig//src/ec_parser.c	2011-06-14 23:43:01.000000000 -0400
+++ ettercap-NG-0.7.3/src/ec_parser.c	2011-06-14 23:47:17.000000000 -0400
@@ -71,6 +71,7 @@
    fprintf(stdout, "  -f, --pcapfilter <string>   set the pcap filter <string>\n");
    fprintf(stdout, "  -R, --reversed              use reversed TARGET matching\n");
    fprintf(stdout, "  -t, --proto <proto>         sniff only this proto (default is all)\n");
+   fprintf(stdout, "  -x, --fake-cert-file <pemfile> use this cert instead of a fake self-signed\n");
    
    fprintf(stdout, "\nUser Interface Type:\n");
    fprintf(stdout, "  -T, --text                  use text only GUI\n");
@@ -150,6 +151,8 @@
       { "wep-key", required_argument, NULL, 'W' },
       { "config", required_argument, NULL, 'a' },
       
+      { "fake-cert-file", required_argument, NULL, 'x' },
+      
       { "dns", no_argument, NULL, 'd' },
       { "regex", required_argument, NULL, 'e' },
       { "visual", required_argument, NULL, 'V' },
@@ -186,7 +189,7 @@
    
    optind = 0;
 
-   while ((c = getopt_long (argc, argv, "a:B:CchDdEe:F:f:GhIi:j:k:L:l:M:m:n:oP:pQqiRr:s:Tt:UuV:vW:w:z", long_options, (int *)0)) != EOF) {
+   while ((c = getopt_long (argc, argv, "a:B:CchDdEe:F:f:GhIi:j:k:L:l:M:m:n:oP:pQqiRr:s:Tt:UuV:vW:w:x:z", long_options, (int *)0)) != EOF) {
 
       switch (c) {
 
@@ -332,6 +335,10 @@
                   GBL_OPTIONS->hostsfile = strdup(optarg);
                   break;
                   
+         case 'x':
+                  GBL_OPTIONS->fake_cert_file = strdup(optarg);
+                  break;
+                  
          case 'k':
                   GBL_OPTIONS->save_hosts = 1;
                   GBL_OPTIONS->hostsfile = strdup(optarg);
diff -ruw ettercap-NG-0.7.3.orig//src/ec_sslwrap.c ettercap-NG-0.7.3/src/ec_sslwrap.c
--- ettercap-NG-0.7.3.orig//src/ec_sslwrap.c	2011-06-14 23:43:01.000000000 -0400
+++ ettercap-NG-0.7.3/src/ec_sslwrap.c	2011-06-15 00:08:15.000000000 -0400
@@ -618,8 +618,36 @@
       return -EINVALID;
    }
 
+   // Use the supplied fake cert, if configured to do so. Otherwise,
+   // generate a self signed cert on the fly.
+   if (GBL_OPTIONS->fake_cert_file != NULL) {
+     BIO *in;
+     in=BIO_new(BIO_s_file());
+     if (BIO_read_filename(in, GBL_OPTIONS->fake_cert_file) <= 0)
+     {
+       INSTANT_USER_MSG("Could not load fake_cert_file!");
+       BIO_free(in);
+       return -EINVALID;
+     }
+     X509 *x = NULL;
+
+     if (!PEM_read_bio_X509(in,&x,0,NULL))
+     {
+       INSTANT_USER_MSG("Could not parse fake_cert_file!");
+       BIO_free(in);
+       X509_free(x);
+       return -EINVALID;
+     }
+
+     ae->cert = x;
+
+     BIO_free(in);
+
+   } else {
    /* Create the fake certificate */
    ae->cert = sslw_create_selfsigned(server_cert);  
+   }
+
    X509_free(server_cert);
 
    if (ae->cert == NULL)
