File tree 5 files changed +12
-12
lines changed
5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Automatically generates certificates to intercept and decrypt SSL messages.
3
3
4
4
# Dependencies
5
5
6
- - SBCL + Ultralisp
6
+ - SBCL + [ Ultralisp] ( https://ultralisp.org )
7
7
- [ FiloSottile/mkcert] ( https://github.com/FiloSottile/mkcert )
8
8
- SQLite
9
9
- GTK4 or Tcl/Tk
Original file line number Diff line number Diff line change 2
2
3
3
(defun redraw-modeline ()
4
4
(setf (text (modeline *main-app* ))
5
- (uiop :strcat
6
- " Server: "
7
- (format nil " ~a :~a "
8
- (ignore-errors (http :server-host mx-proxy :*server* ))
9
- (ignore-errors (http :server-port mx-proxy :*server* )))
10
- " | Project: "
11
- mx-proxy :*db-file* )))
5
+ (format nil " Server: ~a :~a | Project: ~a "
6
+ (ignore-errors (http :server-host mx-proxy :*server* ))
7
+ (ignore-errors (http :server-port mx-proxy :*server* ))
8
+ mx-proxy :*db-file* )))
12
9
13
10
(register-hook (:on-command :redraw-modeline ) (command)
14
11
(declare (ignore command))
Original file line number Diff line number Diff line change 1
1
(in-package :mx-proxy )
2
2
3
3
(defvar *db-file* nil
4
- " Filename of the current Sqlite connection." )
4
+ " Filename of the current SQLite connection." )
5
5
6
6
(defun migrate-database (&key recreate ensure)
7
7
(loop :for table :in ' (http :request http :response http :message-pair)
10
10
(t (mito :migrate-table table)))))
11
11
12
12
(defun connect-database (&key (file " /tmp/proxy.sqlite3" ))
13
- " Connect to a Sqlite database. This serves as a 'project file' for proxy sessions."
13
+ " Connect to a SQLite database. This serves as a 'project file' for proxy sessions."
14
14
(mito :connect-toplevel :sqlite3 :database-name file)
15
15
(setf *db-file* file)
16
16
(migrate-database :ensure t ))
Original file line number Diff line number Diff line change 13
13
:replay
14
14
15
15
; ; ssl.lisp
16
+ :*cert-directory*
16
17
:send-request-ssl
17
18
18
19
; ; config.lisp
Original file line number Diff line number Diff line change 1
1
(in-package :mx-proxy )
2
2
3
+ (defparameter *cert-directory* " /tmp/mx-proxy/certs/" )
4
+
3
5
(defun cert-file (name)
4
6
(namestring
5
7
(merge-pathnames
6
- ( format nil " certs/ ~a " name)
7
- (asdf :system-source-directory :mx-proxy ))))
8
+ name
9
+ (ensure-directories-exist *cert-directory* ))))
8
10
9
11
(defun certificate (host &key create)
10
12
" Retrieve or generate certificate and key for host."
You can’t perform that action at this time.
0 commit comments