| Index: tests/standalone/io/secure_client_raw_server_test.dart
|
| diff --git a/tests/standalone/io/secure_client_raw_server_test.dart b/tests/standalone/io/secure_client_raw_server_test.dart
|
| index 318edebf570274898888869759270e3caef60978..bd2f0d1a6a4ef237456c8b8ba7f8a801af936e9d 100644
|
| --- a/tests/standalone/io/secure_client_raw_server_test.dart
|
| +++ b/tests/standalone/io/secure_client_raw_server_test.dart
|
| @@ -14,11 +14,12 @@ import "package:async_helper/async_helper.dart";
|
| import "package:expect/expect.dart";
|
|
|
| String localFile(path) => Platform.script.resolve(path).toFilePath();
|
| +List<int> readLocalFile(path) => (new File(localFile(path))).readAsBytesSync();
|
|
|
| SecurityContext serverContext = new SecurityContext()
|
| ..useCertificateChain(localFile('certificates/server_chain.pem'))
|
| - ..usePrivateKey(localFile('certificates/server_key.pem'),
|
| - password: 'dartdart');
|
| + ..usePrivateKeyAsBytes(readLocalFile('certificates/server_key.pem'),
|
| + password: 'dartdart');
|
|
|
| SecurityContext clientContext = new SecurityContext()
|
| ..setTrustedCertificates(file: localFile('certificates/trusted_certs.pem'));
|
|
|