Index: tests/standalone/io/https_unauthorized_test.dart |
diff --git a/tests/standalone/io/https_unauthorized_test.dart b/tests/standalone/io/https_unauthorized_test.dart |
index 9302defcefdfc99ad0efadb796895072829e95fe..c96934fa8aaaee7019e66386b2995d6cd33a6838 100644 |
--- a/tests/standalone/io/https_unauthorized_test.dart |
+++ b/tests/standalone/io/https_unauthorized_test.dart |
@@ -17,8 +17,9 @@ String localFile(path) => Platform.script.resolve(path).toFilePath(); |
List<int> readLocalFile(path) => (new File(localFile(path))).readAsBytesSync(); |
SecurityContext untrustedServerContext = new SecurityContext() |
- ..useCertificateChain(localFile('certificates/untrusted_server_chain.pem')) |
- ..usePrivateKeyAsBytes(readLocalFile('certificates/untrusted_server_key.pem'), |
+ ..useCertificateChainBytes(readLocalFile( |
+ 'certificates/untrusted_server_chain.pem')) |
+ ..usePrivateKeyBytes(readLocalFile('certificates/untrusted_server_key.pem'), |
password: 'dartdart'); |
SecurityContext clientContext = new SecurityContext() |