summaryrefslogtreecommitdiffstats
path: root/resources/roles/openssl/tasks
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-21 12:13:25 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-21 13:55:18 +0800
commit1f8e4ddcc850e59909778cc583811353f338001a (patch)
tree3d417afbbbaa319af75eed46d81d0e17c5dc5f0c /resources/roles/openssl/tasks
parentda1b699e26f5b876c784ced944ec625b17511b7a (diff)
Add AES testing in SSL metrics
Change-Id: Iee1b1711d9ce07c468bc390966c55bd49abea228 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/roles/openssl/tasks')
-rw-r--r--resources/roles/openssl/tasks/main.yml34
1 files changed, 19 insertions, 15 deletions
diff --git a/resources/roles/openssl/tasks/main.yml b/resources/roles/openssl/tasks/main.yml
index 42efbeb4..7975c177 100644
--- a/resources/roles/openssl/tasks/main.yml
+++ b/resources/roles/openssl/tasks/main.yml
@@ -16,11 +16,11 @@
command: openssl speed rsa
register: openssl_rsa_log
-#- name: AES speed measurement
-# command: openssl speed -evp aes-128-cbc
-# register: openssl_aes_log
+- name: AES speed measurement
+ command: openssl speed -evp aes-128-cbc
+ register: openssl_aes_log
-- name: collect ssl metrics from openssl
+- name: collect ssl rsa metrics
collect:
string: "{{ openssl_rsa_log.stdout }}"
patterns:
@@ -40,18 +40,22 @@
^rsa\s+4096\sbits\s.+\s+
?(?P<rsa_sign_4096>\d+\.\d)\s+
?(?P<rsa_verify_4096>\d+\.\d)$
- dump: openssl_rsa_log
- register: openssl_rsa_metrics
+ dump: openssl_rsa.log
+ register: ssl_rsa_metrics
-# - filename: AES-128-CBC_dump
-# grep:
-# - |-
-# ^aes-128-cbc\s+
-# ?(?P<aes_128_cbc_16_bytes>\d+\.\w+)\s+
-# ?(?P<aes_128_cbc_64_bytes>\d+\.\w+)\s+
-# ?(?P<aes_128_cbc_256_bytes>\d+\.\w+)\s+
-# ?(?P<aes_128_cbc_1024_bytes>\d+\.\w+)\s+
-# ?(?P<aes_128_cbc_8192_bytes>\d+\.\w+)$
+- name: collect ssl aes metrics
+ collect:
+ string: "{{ openssl_aes_log.stdout }}"
+ patterns:
+ - |-
+ ^aes-128-cbc\s+
+ ?(?P<aes_128_cbc_16_bytes>\d+\.\w+)\s+
+ ?(?P<aes_128_cbc_64_bytes>\d+\.\w+)\s+
+ ?(?P<aes_128_cbc_256_bytes>\d+\.\w+)\s+
+ ?(?P<aes_128_cbc_1024_bytes>\d+\.\w+)\s+
+ ?(?P<aes_128_cbc_8192_bytes>\d+\.\w+)$
+ dump: openssl_aes.log
+ register: ssl_aes_metrics
- name: create SSL report
template: