Skip to content

Commit

Permalink
chore: Remove unused certificate generation for OAuth mock
Browse files Browse the repository at this point in the history
We don't use the certificate generation, so we can remove it.
  • Loading branch information
MoritzWeber0 committed Jun 4, 2024
1 parent 6e6e779 commit c764ef3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 43 deletions.
11 changes: 0 additions & 11 deletions mocks/oauth/Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
# SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

CERTS_DIR = ../../certs/

ssl:
export MSYS_NO_PATHCONV=1; \
openssl req -x509 -out $(CERTS_DIR)localhost.crt -keyout $(CERTS_DIR)localhost.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=localhost' \
-addext "subjectAltName = DNS:localhost";
openssl pkcs12 -export -in $(CERTS_DIR)localhost.crt -inkey $(CERTS_DIR)localhost.key -out $(CERTS_DIR)localhost.p12 -passout "pass:"

start:
export MSYS_NO_PATHCONV=1; \
docker start oauth-mock || \
docker run \
--name oauth-mock \
-v $$(pwd)/$(CERTS_DIR)localhost.p12:/opt/localhost.p12 \
-v $$(pwd)/conf.json:/opt/conf.json \
-p 8083:8080 \
-e JSON_CONFIG_PATH=/opt/conf.json \
Expand Down
30 changes: 0 additions & 30 deletions mocks/oauth/conf_with_cert.json

This file was deleted.

2 changes: 0 additions & 2 deletions mocks/oauth/conf_with_cert.json.license

This file was deleted.

0 comments on commit c764ef3

Please sign in to comment.