Skip to content

Commit 7ddf9af

Browse files
committed
[misc] add ssl
1 parent 20dad96 commit 7ddf9af

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
env:
9696
LOCAL_DB: ${{ steps.mariadb-install.outputs.database-type }}
9797
DB_TYPE: ${{ matrix.db-type }}
98-
TEST_DB_SERVER_CERT: ${{ matrix.db-type != 'mysql' && './.github/workflows/certs/server.crt' || '' }}
98+
TEST_DB_SERVER_CERT: ${{ matrix.db-type == 'container' && './.github/workflows/certs/server.crt' || '' }}
9999

100100
- name: Download Codecov uploader
101101
shell: bash

.github/workflows/generate-certs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ echo "subjectAltName = DNS: mariadb.example.com, IP: 127.0.0.1" >> .github/workf
5353

5454

5555
echo "Generating private key..."
56-
openssl req -newkey rsa:2048 -nodes -keyout .github/workflows/certs/server.key -out .github/workflows/certs/server.csr --config .github/workflows/certs/server.conf
56+
openssl genrsa -out .github/workflows/certs/server.key 2048
57+
58+
echo "Generating certificate signing request..."
59+
openssl req -new -key .github/workflows/certs/server.key -out .github/workflows/certs/server.csr --config .github/workflows/certs/server.conf
5760

5861

5962
echo "Generate the certificate for the server:"

0 commit comments

Comments
 (0)