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 夜來風雨聲 閱讀(265) 評論(0)  編輯  收藏 所屬分類: Server

          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章分類

          文章檔案

          收藏夾

          技術

          搜索

          •  

          最新評論

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

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

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 黄平县| 庄浪县| 定边县| 神农架林区| 察哈| 陇西县| 佛山市| 简阳市| 定州市| 巴林左旗| 株洲市| 泸州市| 五台县| 大港区| 吉安县| 会理县| 宁乡县| 玉林市| 吴川市| 澎湖县| 龙海市| 象州县| 通城县| 长顺县| 晋州市| 奉贤区| 平潭县| 肃宁县| 太白县| 土默特右旗| 织金县| 榕江县| 绩溪县| 弥渡县| 永靖县| 汾阳市| 侯马市| 樟树市| 天台县| 福泉市| 武功县|