summaryrefslogtreecommitdiff
path: root/src/libcharon/plugins/load_tester/load_tester_creds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/plugins/load_tester/load_tester_creds.c')
-rw-r--r--src/libcharon/plugins/load_tester/load_tester_creds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/load_tester/load_tester_creds.c b/src/libcharon/plugins/load_tester/load_tester_creds.c
index 946d62021..028205bd2 100644
--- a/src/libcharon/plugins/load_tester/load_tester_creds.c
+++ b/src/libcharon/plugins/load_tester/load_tester_creds.c
@@ -342,7 +342,7 @@ METHOD(credential_set_t, create_cert_enumerator, enumerator_t*,
}
enumerator->destroy(enumerator);
- if (!trusted)
+ if (!trusted && this->private)
{
/* peer certificate, generate on demand */
serial = htonl(++this->serial);