Skip to content

Commit

Permalink
Rename to Flashpoint Game Server
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Oct 15, 2023
1 parent 092440e commit f82b34b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nexus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
env:
GOOS: "windows"
GOARCH: "386"
run: go build -o "Flashpoint Proxy.exe" .
run: go build -o "Flashpoint Game Server.exe" .
- name: Package
run: zip Server.zip "./Flashpoint Proxy.exe" ./proxySettings.json ./fpproxy.crt ./fpproxy.key
run: zip Server.zip "./Flashpoint Game Server.exe" ./proxySettings.json ./fpGameServerCA.crt ./fpGameServerCA.key
- name: Generate Metadata
run: |
sudo apt install libarchive-zip-perl -y
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
main.exe
fpproxy.csr
Flashpoint Proxy.exe
Flashpoint Game Server.exe
fpProxy.exe
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions gen-ca.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
openssl ecparam -out fpproxy.key -name prime256v1 -genkey
openssl req -new -sha256 -key fpproxy.key -out fpproxy.csr
openssl x509 -req -sha256 -days 36500 -in fpproxy.csr -signkey fpproxy.key -out fpproxy.crt
openssl ecparam -out fpGameServerCA.key -name prime256v1 -genkey
openssl req -new -sha256 -key fpGameServerCA.key -out fpGameServerCA.csr
openssl x509 -req -sha256 -days 36500 -in fpGameServerCA.csr -signkey fpGameServerCA.key -out fpGameServerCA.crt
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ func handleRequest(r *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http
func main() {
// To create CA cert, refer to https://wiki.mozilla.org/SecurityEngineering/x509Certs#Self_Signed_Certs
// Replace CA in GoProxy
certFile := "fpproxy.crt"
keyFile := "fpproxy.key"
certFile := "fpGameServerCA.crt"
keyFile := "fpGameServerCA.key"

cert, err := tls.LoadX509KeyPair(certFile, keyFile)
if err != nil {
Expand Down

0 comments on commit f82b34b

Please sign in to comment.