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

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 武邑县| 老河口市| 天镇县| 新疆| 阜新市| 贺兰县| 吉安市| 肃北| 临桂县| 门头沟区| 松潘县| 建平县| 北海市| 刚察县| 固阳县| 杭州市| 鲁山县| 冀州市| 徐水县| 游戏| 崇信县| 资源县| 平遥县| 宁蒗| 汕尾市| 五台县| 岗巴县| 福建省| 九台市| 武义县| 岚皋县| 扶余县| 宁明县| 博客| 临颍县| 措勤县| 固原市| 遂宁市| 清新县| 新沂市| 赣榆县|