{"id":669,"date":"2012-11-11T16:58:25","date_gmt":"2012-11-11T16:58:25","guid":{"rendered":"https:\/\/trouble.org\/?p=669"},"modified":"2012-11-11T16:58:25","modified_gmt":"2012-11-11T16:58:25","slug":"passwords-in-shell-scripts","status":"publish","type":"post","link":"https:\/\/trouble.org\/?p=669","title":{"rendered":"&#8230; passwords in shell scripts&#8230;."},"content":{"rendered":"<p>Looking at a file (manuf_sign_cert.sh):<\/p>\n<p style=\"padding-left: 30px;\"># This script is run on every iDRAC at manufacturing time.<br \/>\n# to create a certificate with a derived CN using the<br \/>\n# service tag so it can be authenticated by a provisioning server<br \/>\n# for zero touch deployment.<br \/>\n#<br \/>\n# Files used:<br \/>\n# 1) d_h_ssl_manuf.cnf<br \/>\n# 2) ROOTCAPK.PEM (loaded by mdiags via dynamic partition)<br \/>\n[&#8230;]<br \/>\nENCRYPTED_CA_PRIV_KEY=&#8221;\/tmp\/MFGDRV\/ROOTCAPK.PEM&#8221;<br \/>\n[&#8230;]<\/p>\n<p style=\"padding-left: 60px;\">#decrypt the signing key<br \/>\nif ! openssl base64 -d -in $ENCRYPTED_CA_PRIV_KEY -out $CA_PRIV_KEY \\<br \/>\n-pass <span style=\"color: #993300;\"><strong>pass:zrPhlYx<\/strong><\/span><br \/>\nthen<\/p>\n<p>Nice password, Dell&#8230; now to find ROOTCAPK.PEM and I&#8217;ll be set&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Looking at a file (manuf_sign_cert.sh): # This script is run on every iDRAC at manufacturing time. # to create a certificate with a derived CN using the # service tag so it can be authenticated by a provisioning server # for zero touch deployment. # # Files used: # 1) d_h_ssl_manuf.cnf # 2) ROOTCAPK.PEM (loaded [&hellip;]<\/p>\n","protected":false},"author":44,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,154,4],"tags":[],"class_list":["post-669","post","type-post","status-publish","format-standard","hentry","category-code","category-ipmi-2","category-security"],"_links":{"self":[{"href":"https:\/\/trouble.org\/index.php?rest_route=\/wp\/v2\/posts\/669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trouble.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trouble.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trouble.org\/index.php?rest_route=\/wp\/v2\/users\/44"}],"replies":[{"embeddable":true,"href":"https:\/\/trouble.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=669"}],"version-history":[{"count":3,"href":"https:\/\/trouble.org\/index.php?rest_route=\/wp\/v2\/posts\/669\/revisions"}],"predecessor-version":[{"id":672,"href":"https:\/\/trouble.org\/index.php?rest_route=\/wp\/v2\/posts\/669\/revisions\/672"}],"wp:attachment":[{"href":"https:\/\/trouble.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trouble.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trouble.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}