| OLD | NEW |
| 1 #!/bin/bash | 1 #!/usr/bin/env bash |
| 2 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 # Script to create sample certificates for the dart:io SecureSocket tests. | 6 # Script to create sample certificates for the dart:io SecureSocket tests. |
| 7 # Creates a root certificate authority, an intermediate authority, | 7 # Creates a root certificate authority, an intermediate authority, |
| 8 # and a server certificate, | 8 # and a server certificate, |
| 9 | 9 |
| 10 password=pass:dartdart | 10 password=pass:dartdart |
| 11 | 11 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 -topk8 -v1 PBE-SHA1-RC4-128 -passin $password -passout $password | 95 -topk8 -v1 PBE-SHA1-RC4-128 -passin $password -passout $password |
| 96 openssl pkcs8 -in client2_key.pem -out $CERTS/client2_key.pem \ | 96 openssl pkcs8 -in client2_key.pem -out $CERTS/client2_key.pem \ |
| 97 -topk8 -v1 PBE-SHA1-RC4-128 -passin $password -passout $password | 97 -topk8 -v1 PBE-SHA1-RC4-128 -passin $password -passout $password |
| 98 | 98 |
| 99 cp root_authority.pem $CERTS/trusted_certs.pem | 99 cp root_authority.pem $CERTS/trusted_certs.pem |
| 100 cp client_authority.pem $CERTS | 100 cp client_authority.pem $CERTS |
| 101 cp client1.pem $CERTS | 101 cp client1.pem $CERTS |
| 102 cp client2.pem $CERTS | 102 cp client2.pem $CERTS |
| 103 | 103 |
| 104 cd .. | 104 cd .. |
| OLD | NEW |