Lines Matching full:certificate
2 Documentation Certificate utilities keywords.
10 # Default wait sync time for certificate install and restart services.
16 Install Certificate File On BMC
17 [Documentation] Install certificate file in BMC using POST operation.
21 # uri URI for installing certificate file via Redfish
23 # status Expected status of certificate installation via Redfish
47 Get Certificate Content From BMC Via Openssl
48 [Documentation] Get certificate content from BMC via openssl.
57 ... ${output} -----END CERTIFICATE-----
58 ${result}= Fetch From Right ${result} -----BEGIN CERTIFICATE-----
62 Get Certificate File Content From BMC
63 [Documentation] Get required certificate file content from BMC.
67 # cert_type Certificate type (e.g. "Client" or "CA").
69 ${certificate} ${stderr} ${rc}= Run Keyword If '${cert_type}' == 'Client'
72 RETURN ${certificate}
75 Generate Certificate File Via Openssl
76 [Documentation] Create certificate file via openssl with required content
81 # cert_format Certificate file format
83 # time Number of days to certify the certificate for.
84 # cert_dir_name The name of the sub-directory where the certificate
101 ${result}= Fetch From Left ${file_content} -----END CERTIFICATE-----
102 ${cert_content}= Fetch From Right ${result} -----BEGIN CERTIFICATE-----
108 ... Run Keyword if '${cert_format}' == 'Valid Certificate Valid Privatekey'
110 ... ELSE IF '${cert_format}' == 'Empty Certificate Valid Privatekey'
112 ... ELSE IF '${cert_format}' == 'Valid Certificate Empty Privatekey'
114 ... ELSE IF '${cert_format}' == 'Empty Certificate Empty Privatekey'
116 …... ELSE IF '${cert_format}' == 'Expired Certificate' or '${cert_format}' == 'Not Yet Valid Cert…
118 ... ELSE IF '${cert_format}' == 'Valid Certificate'
121 ... ELSE IF '${cert_format}' == 'Empty Certificate'
133 Get Certificate Content From File
134 [Documentation] Get certificate content from certificate file.
138 # cert_file_path Downloaded certificate file path.
141 ${result}= Fetch From Left ${file_content} -----END CERTIFICATE-----
142 ${result}= Fetch From Right ${result} -----BEGIN CERTIFICATE-----
153 Verify Certificate Visible Via OpenSSL
154 [Documentation] Checks if given certificate is visible via openssl's showcert command.
158 # cert_file_path Certificate file path.
161 ${openssl_cert_content}= Get Certificate Content From BMC Via Openssl
165 Delete All CA Certificate Via Redfish
166 [Documentation] Delete all CA certificate via Redfish.
175 Delete Certificate Via BMC CLI
176 [Documentation] Delete certificate via BMC CLI.
180 # cert_type Certificate type (e.g. "Client" or "CA").
184 ... Set Variable /etc/nslcd/certs/cert.pem phosphor-certificate-manager@nslcd.service
187 ... Set Variable ${ROOT_CA_FILE_PATH} phosphor-certificate-manager@authority.service
201 Replace Certificate Via Redfish
202 [Documentation] Test 'replace certificate' operation in the BMC via Redfish.
206 # cert_type Certificate type (e.g. "Server" or "Client").
207 # cert_format Certificate file format
209 # expected_status Expected status of certificate replace Redfish
212 # Install certificate before replacing client or CA certificate.
214 …... Install And Verify Certificate Via Redfish ${cert_type} Valid Certificate Valid Privateke…
216 ... Install And Verify Certificate Via Redfish ${cert_type} Valid Certificate ok
218 ${cert_file_path}= Generate Certificate File Via Openssl ${cert_format}
223 Run Keyword If '${cert_format}' == 'Expired Certificate'
225 ... ELSE IF '${cert_format}' == 'Not Yet Valid Certificate'
252 Install And Verify Certificate Via Redfish
253 [Documentation] Install and verify certificate using Redfish.
257 # cert_type Certificate type (e.g. "Client" or "CA").
258 # cert_format Certificate file format
260 # expected_status Expected status of certificate replace Redfish
262 # delete_cert Certificate will be deleted before installing if this True.
265 ... Delete All CA Certificate Via Redfish
267 ... Delete Certificate Via BMC CLI ${cert_type}
269 ${cert_file_path}= Generate Certificate File Via Openssl ${cert_format}
277 Run Keyword If '${cert_format}' == 'Expired Certificate' Modify BMC Date future
278 ... ELSE IF '${cert_format}' == 'Not Yet Valid Certificate' Modify BMC Date old
280 …${cert_id}= Install Certificate File On BMC ${certificate_uri} ${expected_status} data=${file_…
281 Logging Installed certificate id: ${cert_id}
283 # Adding delay after certificate installation.