Move 'Verify Certificate Visible Via OpenSSL'

Change-Id: I42c3c3f0811e3665c9a1869670d199e9d1b615b1
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/lib/certificate_utils.robot b/lib/certificate_utils.robot
index d7fc776..9dec0c8 100755
--- a/lib/certificate_utils.robot
+++ b/lib/certificate_utils.robot
@@ -148,3 +148,15 @@
     ${rc}  ${output}=  Run And Return RC and Output  which openssl
     Should Not Be Empty  ${output}  msg=Openssl tool not installed.
 
+
+Verify Certificate Visible Via OpenSSL
+    [Documentation]  Checks if given certificate is visible via openssl's showcert command.
+    [Arguments]  ${cert_file_path}
+
+    # Description of argument(s):
+    # cert_file_path           Certificate file path.
+
+    ${cert_file_content}=  OperatingSystem.Get File  ${cert_file_path}
+    ${openssl_cert_content}=  Get Certificate Content From BMC Via Openssl
+    Should Contain  ${cert_file_content}  ${openssl_cert_content}
+