posts - 3,  comments - 1,  trackbacks - 0

          rem 設置openssl的路徑
          set OPENSSL_HOME=I:\workspace\openssl\openssl-0.9.7
          path=%path%;%OPENSSL_HOME%\out32dll

          rem 產生私鑰
          openssl genrsa -out %1.pem -rand ca\.rand 512

          rem 生成自簽名公鑰
          openssl req -new -x509 -days 3650 -key %1.pem -out %1_self.cer -config openssl.cnf

          rem 用CA私鑰進行簽名
          openssl ca -ss_cert %1_self.cer -config openssl.cnf -policy policy_anything -out %1.cer
          del %1_self.cer

          rem 生成pfx文件
          openssl pkcs12 -export -in %1.cer -inkey %1.pem -out %1.pfx

          pause

          posted on 2005-10-24 09:21 夜來風雨聲 閱讀(269) 評論(0)  編輯  收藏 所屬分類: Server

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章分類

          文章檔案

          收藏夾

          技術

          搜索

          •  

          最新評論

          • 1.?re: Tomcat ssl配置補充
          • 您好:
            我也出現了這樣的問題
            keytool錯誤: java.lang.Exception: 無法從回復中建立鏈接

            具體是怎么解決的?能解釋一下么?謝謝了
          • --benben

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 乌兰浩特市| 鄂托克旗| 东莞市| 宜昌市| 安徽省| 襄城县| 绥德县| 都兰县| 东至县| 罗甸县| 阿克苏市| 诸城市| 华宁县| 邵东县| 西乡县| 桃园县| 扎兰屯市| 临江市| 潍坊市| 抚宁县| 武威市| 旺苍县| 保山市| 通许县| 遂昌县| 鄯善县| 华亭县| 仙游县| 宁河县| 前郭尔| 镇江市| 崇阳县| 东丽区| 十堰市| 昭觉县| 西宁市| 松江区| 桂阳县| 古浪县| 自治县| 静宁县|