Skip to content

Commit ed3a43c

Browse files
committed
configure bit length
1 parent 86ca436 commit ed3a43c

File tree

6 files changed

+16
-96
lines changed

6 files changed

+16
-96
lines changed

scenarios/tls.benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ scenarios:
248248
tls-handshakes-docker-nginx:
249249
application:
250250
job: dockerLinuxNginxServer
251-
# buildArguments:
252-
# - SSL_LOGGING_ENABLED=false
251+
buildArguments:
252+
- CERT_KEY_LENGTH=2048
253253
load:
254254
job: httpclient
255255
variables:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Certificates
2+
3+
Certificate public-key length contributes to performant significantly, therefore there are 2 sets of certificates in corresponding directories ([2048 bit](./2048/) and [4096 bit](./4096/)).
4+
5+
Both directories have a `testCert.pfx` and `cert.pem`/`key.pem` (different certs, but same key-length).

src/BenchmarksApps/TLS/Nginx/Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
FROM nginx:latest
22

3-
# Copy configuration and SSL certificates
3+
# or 4096 key length
4+
ARG CERT_KEY_LENGTH=2048
5+
6+
# Copy configuration
47
COPY config/nginx.conf /etc/nginx/nginx.conf
5-
COPY config/cert.pem /etc/nginx/certs/cert.pem
6-
COPY config/key.pem /etc/nginx/certs/key.pem
7-
COPY start-nginx.sh /start-nginx.sh
8+
COPY config/start-nginx.sh /start-nginx.sh
9+
10+
# Copy SSL certificates
11+
COPY ../Certificates/${CERT_KEY_LENGTH}/cert.pem /etc/nginx/certs/cert.pem
12+
COPY ../Certificates/${CERT_KEY_LENGTH}/key.pem /etc/nginx/certs/key.pem
813

914
# Make the script executable
1015
RUN chmod +x /start-nginx.sh

src/BenchmarksApps/TLS/Nginx/config/cert.pem

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/BenchmarksApps/TLS/Nginx/config/key.pem

Lines changed: 0 additions & 55 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)