Skip to content

Commit b19deae

Browse files
committed
Set ClientEncryption tlsOptions when KMIP endpoint is used
1 parent cf04535 commit b19deae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/UnifiedSpecTests/Context.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,13 @@ private function createClientEncryption(string $id, stdClass $o): void
388388
}
389389
}
390390

391+
if (isset($clientEncryptionOpts['kmsProviders']->kmip->endpoint)) {
392+
$clientEncryptionOpts['tlsOptions']['kmip'] = [
393+
'tlsCAFile' => static::getEnv('KMS_TLS_CA_FILE'),
394+
'tlsCertificateKeyFile' => static::getEnv('KMS_TLS_CERTIFICATE_KEY_FILE'),
395+
];
396+
}
397+
391398
$this->entityMap->set($id, new ClientEncryption($clientEncryptionOpts), $clientId);
392399
}
393400

0 commit comments

Comments
 (0)