{"id":93,"date":"2006-06-12T17:44:07","date_gmt":"2006-06-12T08:44:07","guid":{"rendered":"http:\/\/www.kaz.bz\/wp\/archives\/48"},"modified":"2021-01-14T10:04:50","modified_gmt":"2021-01-14T01:04:50","slug":"openssl-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88","status":"publish","type":"post","link":"https:\/\/wp.kaz.bz\/tech\/2006\/06\/12\/93.html","title":{"rendered":"OpenSSL \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8"},"content":{"rendered":"<p>[code lang=text]<br \/>\n#! \/bin\/sh<\/p>\n<p># Config<br \/>\nPACK=openssl-0.9.8b<br \/>\nDL_URL=http:\/\/www.openssl.org\/source<br \/>\nOPENSSL_LIB=\/usr\/local\/ssl\/lib<br \/>\nLD_SO_CONF=\/etc\/ld.so.conf<br \/>\n# Log File Name<br \/>\nINSTALL_LOG=log_install_`date +&quot;%Y%m%d_%H%M%S&quot;`.txt<br \/>\n# Write Text Log<br \/>\nlog_text() {<br \/>\n    echo &quot;(`date +&quot;%Y\/%m\/%d %T&quot;`)$1 ----&quot; | tee -a $INSTALL_LOG<br \/>\n}<\/p>\n<p># Install File Check<br \/>\nchk_install_file(){<\/p>\n<p>    log_text &quot;---Check install file ---&quot;<br \/>\n    if [ -s $PACK.tar.gz ]<br \/>\n    then<br \/>\n        log_text &quot;$PACK.tar.gz is exist.&quot;<br \/>\n    else<br \/>\n        wget $DL_URL\/$PACK.tar.gz | tee -a $INSTALL_LOG<br \/>\n    fi<\/p>\n<p>}<\/p>\n<p># Set ldconfig<br \/>\nset_ldconfig(){<\/p>\n<p>    log_text &quot;---ldconfig ---&quot;<br \/>\n    if [ -z `grep $OPENSSL_LIB $LD_SO_CONF` ]<br \/>\n    then<br \/>\n        echo $OPENSSL_LIB &gt;&gt; $LD_SO_CONF | tee -a $INSTALL_LOG<br \/>\n        ldconfig                         | tee -a $INSTALL_LOG<br \/>\n        log_text &quot;added string to $LD_SO_CONF-- &#039;$OPENSSL_LIB&#039; .&quot;<br \/>\n    else<br \/>\n        log_text &quot;$LD_SO_CONF already includes string-- &#039;$OPENSSL_LIB&#039; .&quot;<br \/>\n    fi<br \/>\n}<\/p>\n<p># ---------------------------<br \/>\n#  Main<br \/>\n# ---------------------------<\/p>\n<p>cat &gt;&gt; $INSTALL_LOG &lt; &lt; EOF<br \/>\n---------------------------------------------------------<br \/>\n  Install Start at `date +&quot;%Y\/%m\/%d %T&quot;`<br \/>\n---------------------------------------------------------<br \/>\nEOF<\/p>\n<p>chk_install_file<\/p>\n<p>log_text &quot;---Unpack TarBall ---&quot;<br \/>\ntar zxf $PACK.tar.gz        | tee -a $INSTALL_LOG<\/p>\n<p>log_text &quot;---Configure ---&quot;<br \/>\ncd $PACK<br \/>\nINSTALL_LOG=..\/$INSTALL_LOG<br \/>\n.\/config -fPIC shared        | tee -a $INSTALL_LOG<\/p>\n<p>log_text &quot;---make ---&quot;<br \/>\nmake                         | tee -a $INSTALL_LOG<\/p>\n<p>log_text &quot;---make test ---&quot;<br \/>\nmake test                    | tee -a $INSTALL_LOG<\/p>\n<p>log_text &quot;---make install ---&quot;<br \/>\nmake install                 | tee -a $INSTALL_LOG<\/p>\n<p>set_ldconfig<\/p>\n<p>cat &gt;&gt; $INSTALL_LOG<br \/>\n[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[code lang=text] #! \/bin\/sh # Config PACK=openssl-0.9.8b DL_URL=http:\/\/www.openssl.org\/source OPENSSL_LIB=\/usr [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[33],"tags":[],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-openssl"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":634,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/02\/03\/634.html","url_meta":{"origin":93,"position":0},"title":"daemontools + ucspi-tcp + djbdns(dnscache) + netqmail =","author":"kaz. Suenaga","date":"2011\/02\/03","format":false,"excerpt":"\u4e00\u6c17\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6c7a\u3081\u3046\u3061\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 \/usr\/local\/src\/djb \u3068\u304b\u306b ins\u2026","rel":"","context":"DJB","block_context":{"text":"DJB","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":47,"url":"https:\/\/wp.kaz.bz\/tech\/2008\/03\/14\/47.html","url_meta":{"origin":93,"position":1},"title":"daemontools+ucspi-tcp with netqmail \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3002","author":"kaz. Suenaga","date":"2008\/03\/14","format":false,"excerpt":"daemontools\u3068ucspi-tcp\u3092\u3001netqmail\u306e\u30d1\u30c3\u30c1\u3092\u5229\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b9\u30af\u2026","rel":"","context":"DJB","block_context":{"text":"DJB","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1351,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/08\/17\/1351.html","url_meta":{"origin":93,"position":2},"title":"httpd-2.4\u7cfb\u306e\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3002","author":"kaz. Suenaga","date":"2012\/08\/17","format":false,"excerpt":"CentOS 6\u7cfb\u306e\u74b0\u5883\u306bhttpd-2.4\u7cfb\u3092\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306b\u4f7f\u3048\u308b\u6c7a\u3081\u6253\u3061\u30a4\u30f3\u30b9\u30c8\u30fc\u2026","rel":"","context":"Apache 2.4","block_context":{"text":"Apache 2.4","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/apache\/httpd-2-4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1179,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/05\/25\/1179.html","url_meta":{"origin":93,"position":3},"title":"1\u3064\u306eIP\u30a2\u30c9\u30ec\u30b9\u3067\u8907\u6570\u306e\u30b3\u30e2\u30f3\u30cd\u30fc\u30e0\u306eSSL\u8a3c\u660e\u66f8\u3092\u5229\u7528\u3059\u308b\uff08\uff1dSNI\uff09\u3002","author":"kaz. Suenaga","date":"2012\/05\/25","format":false,"excerpt":"\u53c2\u7167\uff09 http:\/\/e-garakuta.net\/techinfo\/doku.php\/linux\/\u2026","rel":"","context":"Apache","block_context":{"text":"Apache","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/apache"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":94,"url":"https:\/\/wp.kaz.bz\/tech\/2006\/06\/12\/94.html","url_meta":{"origin":93,"position":4},"title":"PostgreSQL \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8","author":"kaz. Suenaga","date":"2006\/06\/12","format":false,"excerpt":"#! \/bin\/sh PGSQL_VER=postgresql-7.4.6 PGSQL_DIR=\/u\u2026","rel":"","context":"PostgreSQL","block_context":{"text":"PostgreSQL","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/db\/postgresql"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":48,"url":"https:\/\/wp.kaz.bz\/tech\/2008\/03\/14\/48.html","url_meta":{"origin":93,"position":5},"title":"daemontools\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8","author":"kaz. Suenaga","date":"2008\/03\/14","format":false,"excerpt":"#! \/bin\/sh PACK=daemontools-0.76 create_package_di\u2026","rel":"","context":"DJB","block_context":{"text":"DJB","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/djb"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":2,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":2620,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/93\/revisions\/2620"}],"wp:attachment":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}