Lines Matching +full:set +full:- +full:content

30     ${headers}=  Create Dictionary  Content-Type=application/octet-stream
31 ... X-Auth-Token=${XAUTH_TOKEN}
32 Set To Dictionary ${kwargs} headers ${headers}
36 ${cert_id}= Set Variable ${resp.json()["Id"]}
38 ${cert_id}= Set Variable -1
52 Get Certificate Content From BMC Via Openssl
53 [Documentation] Get certificate content from BMC via openssl.
58 ... timeout 10 openssl s_client -connect ${OPENBMC_HOST}:${HTTPS_PORT} -showcerts
62 ... ${output} -----END CERTIFICATE-----
63 ${result}= Fetch From Right ${result} -----BEGIN CERTIFICATE-----
67 Get Certificate File Content From BMC
68 [Documentation] Get required certificate file content from BMC.
81 [Documentation] Create certificate file via openssl with required content
89 # cert_dir_name The name of the sub-directory where the certificate
94 ${openssl_cmd}= Catenate openssl req -x509 -sha256 -newkey rsa:${keybit_length}
95 ... ${SPACE}-nodes -days ${time}
96 ... ${SPACE}-keyout ${cert_dir_name}/cert.pem -out ${cert_dir_name}/cert.pem
97 ... ${SPACE}-subj "/O=XYZ Corporation /CN=www.xyz.com"
106 ${result}= Fetch From Left ${file_content} -----END CERTIFICATE-----
107 ${cert_content}= Fetch From Right ${result} -----BEGIN CERTIFICATE-----
109 ${result}= Fetch From Left ${file_content} -----END PRIVATE KEY-----
110 ${private_key_content}= Fetch From Right ${result} -----BEGIN PRIVATE KEY-----
123 …tring ${file_content} ${private_key_content} -----BEGIN PRIVATE KEY----- -----END PRIVATE KE…
125 …tent} ${cert_content} ${private_key_content} -----BEGIN PRIVATE KEY----- -----END PRIVATE KE…
127 ${cert_data}= Set Variable None
137 Get Certificate Content From File
138 [Documentation] Get certificate content from certificate file.
145 ${result}= Fetch From Left ${file_content} -----END CERTIFICATE-----
146 ${result}= Fetch From Right ${result} -----BEGIN CERTIFICATE-----
165 ${openssl_cert_content}= Get Certificate Content From BMC Via Openssl
186 ${certificate_file_path}= Set Variable /etc/nslcd/certs/cert.pem
187 ${certificate_service}= Set Variable phosphor-certificate-manager@nslcd.service
188 ${certificate_uri}= Set Variable ${REDFISH_LDAP_CERTIFICATE_URI}
190 ${certificate_file_path}= Set Variable ${ROOT_CA_FILE_PATH}
191 ${certificate_service}= Set Variable phosphor-certificate-manager@authority.service
192 ${certificate_uri}= Set Variable ${REDFISH_CA_CERTIFICATE_URI}
194 ${certificate_file_path}= Set Variable None
195 ${certificate_service}= Set Variable None
196 ${certificate_uri}= Set Variable None
200 ... [ -f ${certificate_file_path} ] && echo "Found" || echo "Not Found"
205 BMC Execute Command systemctl daemon-reload
226 ${cert_id}= Set Variable None
232 ${file_data}= Decode Bytes To String ${bytes} UTF-8
241 ${certificate_uri}= Set Variable ${REDFISH_HTTPS_CERTIFICATE_URI}/1
243 ${certificate_uri}= Set Variable ${REDFISH_LDAP_CERTIFICATE_URI}/1
245 ${certificate_uri}= Set Variable ${REDFISH_CA_CERTIFICATE_URI}/${cert_id}
247 ${certificate_uri}= Set Variable None
298 ${file_data}= Decode Bytes To String ${bytes} UTF-8
301 ${certificate_uri}= Set Variable ${REDFISH_LDAP_CERTIFICATE_URI}
303 ${certificate_uri}= Set Variable ${REDFISH_CA_CERTIFICATE_URI}
305 ${certificate_uri}= Set Variable None
326 ${bmc_cert_content}= Set Variable None
338 # date_set_type Set BMC date to a current, future, old date by 375 days.
339 # current - Sets date to local system date.
340 # future - Sets to a future date from current date.
341 # old - Sets to a old date from current date.
347 ${new_time}= Set Variable ${current_date_time}
353 ${new_time}= Set Variable ${current_date_time}
360 # Change date format to 2024-03-07T07:58:50+00:00 from 2024-03-07 07:58:50.000.
361 ${new_time_format}= Convert Date ${new_time} result_format=%Y-%m-%dT%H:%M:%S+00:00