You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This implementation is totally susceptible to all kinds of [slowloris attacks](https://en.wikipedia.org/wiki/Slowloris_(computer_security).
81
85
* It does not support client authentication
82
86
* Uses only 1 thread and cannot currently scale to multiple cores
83
87
* Does not restrict non-standard upstream ports
84
88
* Undoubtedly riddled with bugs
89
+
90
+
91
+
## Publishing
92
+
93
+
Publishing is done to the Sonatype Central Repository and requires gpg-signed
94
+
artifacts. For this, install gpg and (on Mac) `pin-entry-mac`:
95
+
96
+
```
97
+
$ brew install gnupg pinentry-mac
98
+
```
99
+
100
+
Add the pinentry program to `~/.gnupg/gpg-agent.conf`:
101
+
102
+
```
103
+
pinentry-program /usr/local/bin/pinentry-mac
104
+
```
105
+
106
+
Restart `gpg-agent`:
107
+
108
+
```
109
+
$ gpgconf --kill gpg-agent
110
+
```
111
+
112
+
Run `publishLocalSigned` to ensure signing from `sbt` works (this should pop
113
+
up a dialog to enter the private key's passphrase):
114
+
115
+
```
116
+
$ sbt publishLocalSigned
117
+
[info] Loading global plugins from /Users/erik/.sbt/1.0/plugins
118
+
[info] Loading settings for project tlsproxy-build from plugins.sbt ...
119
+
[info] Loading project definition from /Users/erik/work/tlsproxy/project
120
+
[info] Loading settings for project tlsproxy from build.sbt ...
121
+
[info] Set current project to tlsproxy (in build file:/Users/erik/work/tlsproxy/)
122
+
[info] Wrote /Users/erik/work/tlsproxy/target/scala-2.12/tlsproxy_2.12-0.1.pom
123
+
[info] :: delivering :: erikvanzijst#tlsproxy_2.12;0.1 :: 0.1 :: release :: Tue Aug 17 22:44:46 CEST 2021
124
+
[info] delivering ivy file to /Users/erik/work/tlsproxy/target/scala-2.12/ivy-0.1.xml
125
+
[info] gpg: using "E96DDAAB16804D86EFA2A08A4539ACC7B26D1005" as default secret key for signing
126
+
[info] gpg: using "E96DDAAB16804D86EFA2A08A4539ACC7B26D1005" as default secret key for signing
127
+
[info] gpg: using "E96DDAAB16804D86EFA2A08A4539ACC7B26D1005" as default secret key for signing
128
+
[info] gpg: using "E96DDAAB16804D86EFA2A08A4539ACC7B26D1005" as default secret key for signing
129
+
[info] published tlsproxy_2.12 to /Users/erik/.ivy2/local/erikvanzijst/tlsproxy_2.12/0.1/jars/tlsproxy_2.12.jar
130
+
[info] published tlsproxy_2.12 to /Users/erik/.ivy2/local/erikvanzijst/tlsproxy_2.12/0.1/docs/tlsproxy_2.12-javadoc.jar
131
+
[info] published tlsproxy_2.12 to /Users/erik/.ivy2/local/erikvanzijst/tlsproxy_2.12/0.1/srcs/tlsproxy_2.12-sources.jar
132
+
[info] published tlsproxy_2.12 to /Users/erik/.ivy2/local/erikvanzijst/tlsproxy_2.12/0.1/poms/tlsproxy_2.12.pom.asc
133
+
[info] published tlsproxy_2.12 to /Users/erik/.ivy2/local/erikvanzijst/tlsproxy_2.12/0.1/poms/tlsproxy_2.12.pom
134
+
[info] published tlsproxy_2.12 to /Users/erik/.ivy2/local/erikvanzijst/tlsproxy_2.12/0.1/jars/tlsproxy_2.12.jar.asc
135
+
[info] published tlsproxy_2.12 to /Users/erik/.ivy2/local/erikvanzijst/tlsproxy_2.12/0.1/srcs/tlsproxy_2.12-sources.jar.asc
136
+
[info] published tlsproxy_2.12 to /Users/erik/.ivy2/local/erikvanzijst/tlsproxy_2.12/0.1/docs/tlsproxy_2.12-javadoc.jar.asc
137
+
[success] Total time: 1 s, completed Aug 17, 2021 10:44:47 PM
138
+
```
139
+
140
+
Now publish to Sonatype:
141
+
142
+
```
143
+
$ sbt publishSigned
144
+
[info] Loading global plugins from /Users/erik/.sbt/1.0/plugins
145
+
[info] Loading settings for project tlsproxy-build from plugins.sbt ...
146
+
[info] Loading project definition from /Users/erik/work/tlsproxy/project
147
+
[info] Loading settings for project tlsproxy from build.sbt ...
148
+
[info] Set current project to scala-tlsproxy (in build file:/Users/erik/work/tlsproxy/)
149
+
[info] Wrote /Users/erik/work/tlsproxy/target/scala-2.12/scala-tlsproxy_2.12-0.1-SNAPSHOT.pom
150
+
[info] gpg: using "E96DDAAB16804D86EFA2A08A4539ACC7B26D1005" as default secret key for signing
151
+
[info] gpg: using "E96DDAAB16804D86EFA2A08A4539ACC7B26D1005" as default secret key for signing
152
+
[info] gpg: using "E96DDAAB16804D86EFA2A08A4539ACC7B26D1005" as default secret key for signing
153
+
[info] gpg: using "E96DDAAB16804D86EFA2A08A4539ACC7B26D1005" as default secret key for signing
154
+
[info] published scala-tlsproxy_2.12 to https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/erikvanzijst/scala-tlsproxy_2.12/0.1-SNAPSHOT/scala-tlsproxy_2.12-0.1-SNAPSHOT.jar
155
+
[info] published scala-tlsproxy_2.12 to https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/erikvanzijst/scala-tlsproxy_2.12/0.1-SNAPSHOT/scala-tlsproxy_2.12-0.1-SNAPSHOT-sources.jar
156
+
[info] published scala-tlsproxy_2.12 to https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/erikvanzijst/scala-tlsproxy_2.12/0.1-SNAPSHOT/scala-tlsproxy_2.12-0.1-SNAPSHOT-javadoc.jar
157
+
[info] published scala-tlsproxy_2.12 to https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/erikvanzijst/scala-tlsproxy_2.12/0.1-SNAPSHOT/scala-tlsproxy_2.12-0.1-SNAPSHOT.jar.asc
158
+
[info] published scala-tlsproxy_2.12 to https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/erikvanzijst/scala-tlsproxy_2.12/0.1-SNAPSHOT/scala-tlsproxy_2.12-0.1-SNAPSHOT.pom.asc
159
+
[info] published scala-tlsproxy_2.12 to https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/erikvanzijst/scala-tlsproxy_2.12/0.1-SNAPSHOT/scala-tlsproxy_2.12-0.1-SNAPSHOT-sources.jar.asc
160
+
[info] published scala-tlsproxy_2.12 to https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/erikvanzijst/scala-tlsproxy_2.12/0.1-SNAPSHOT/scala-tlsproxy_2.12-0.1-SNAPSHOT-javadoc.jar.asc
161
+
[info] published scala-tlsproxy_2.12 to https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/erikvanzijst/scala-tlsproxy_2.12/0.1-SNAPSHOT/scala-tlsproxy_2.12-0.1-SNAPSHOT.pom
162
+
[success] Total time: 9 s, completed Aug 17, 2021 11:29:22 PM
0 commit comments