一区二区三区欧美日韩-一区二区三区欧美-一区二区三区免费在线视频-一区二区三区免费在线观看-久久精品店-久久精品第一页

歡迎您光臨深圳塔燈網絡科技有限公司!
電話圖標 余先生:13699882642

網站百科

為您解碼網站建設的點點滴滴

生成openssl證書

發表日期:2016-12 文章編輯:小燈 瀏覽次數:2617

錯誤總結

1. SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting password error:0907B068:PEM routines:PEM_READ_BIO_PRIVATEKEY:bad password read error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib
openssl rsa -in original.key -out unencripted.key 

1. IIS生成ssl證書

1.1 生成root證書加上私鑰

openssl req -new -x509 -keyout cakey.pem -out cacert.pem -config openssl.cnf

Enter PEM pass phrase: Verifying - Enter PEM pass phrase: ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:CN State or Province Name (full name) [Some-State]:Zhejiang Locality Name (eg, city) []:Hangzhou Organization Name (eg, company) [Internet Widgits Pty Ltd]:Mintcode Organizational Unit Name (eg, section) []:Forstmourne Common Name (e.g. server FQDN or YOUR name) []:115.29.179.22 Email Address []:bellliu@mintcode.com 

1.2 生成相關文檔(openssl.cnf有相關配置)

mkdir demoCA touch demoCA/index.html touch demoCA/serial 

vim demoCA/serial

1000 

1.3 根據證書申請生成證書

openssl ca -in certreq.txt -out server.pem -cert cacert.pem -keyfile cakey.pem

Enter pass phrase for cakey.pem: Check that the request matches the signature Signature ok Certificate Details: Serial Number: 4097 (0x1001) Validity Not Before: Jul 24 02:07:43 2015 GMT Not After : Jul 23 02:07:43 2016 GMT Subject: countryName = CN stateOrProvinceName = Zhejiang organizationName= Mintcode organizationalUnitName= Forstmourne commonName= 115.29.179.22 X509v3 extensions: X509v3 Basic Constraints: CA:FALSE Netscape Comment: OpenSSL Generated Certificate X509v3 Subject Key Identifier: A3:72:4C:6D:5D:F9:64:C9:02:13:11:13:CF:C3:34:C1:DE:0B:BF:57 X509v3 Authority Key Identifier: keyid:81:40:30:DB:57:2C:D0:E8:9B:B1:51:D7:D5:71:F1:6C:16:E8:5A:DBCertificate is to be certified until Jul 23 02:07:43 2016 GMT (365 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated 

1.4 生成iis需要證書

openssl x509 -in server.pem -out server.cer

1.5 生成java需要的keystore

keytool -import -file server.cer -keystore server.keystore

2. openssl生成ssl證書

2.1 生成root證書加上私鑰

openssl req -new -x509 -days 365000 -keyout cakey.key -out cacert.crt -config openssl.cnf

Generating a 2048 bit RSA private key .....................................+++ ..............+++ writing new private key to 'cakey.key' Enter PEM pass phrase: Verifying - Enter PEM pass phrase: ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:CN State or Province Name (full name) [Some-State]:Zhejiang Locality Name (eg, city) []:Hangzhou Organization Name (eg, company) [Internet Widgits Pty Ltd]:Mintcode Organizational Unit Name (eg, section) []:Forstmourne Common Name (e.g. server FQDN or YOUR name) []:bell Email Address []:bellliu@mintcode.com 

2.2 生成ssl證書加上私鑰

openssl req -new -keyout server.key -out server.csr

Generating a 2048 bit RSA private key ..............................................................................+++ .......+++ writing new private key to 'server.key' Enter PEM pass phrase: Verifying - Enter PEM pass phrase: ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:CN State or Province Name (full name) [Some-State]:Zhejiang Locality Name (eg, city) []:Hangzhou Organization Name (eg, company) [Internet Widgits Pty Ltd]:Mintcode Organizational Unit Name (eg, section) []:Forstmourne Common Name (e.g. server FQDN or YOUR name) []:bell Email Address []:bell@mintcode.comPlease enter the following 'extra' attributes to be sent with your certificate request A challenge password []:mintcode An optional company name []:mintcode 

2.3 準備工作

mkdir demoCA cd demoCA mkdir newcerts touch index.txt echo '01' > serial cd .. 

2.4 自簽名

openssl ca -in server.csr -out server.crt -cert cacert.crt -keyfile cakey.key -config openssl.cnf

2.5 生成java需要的keystore

keytool -import -file server.crt -keystore server.keystore 

2.6 crt轉換為pem

openssl x509 -in server.crt -out server.pem -outform PEM

本頁內容由塔燈網絡科技有限公司通過網絡收集編輯所得,所有資料僅供用戶學習參考,本站不擁有所有權,如您認為本網頁中由涉嫌抄襲的內容,請及時與我們聯系,并提供相關證據,工作人員會在5工作日內聯系您,一經查實,本站立刻刪除侵權內容。本文鏈接:http://www.junxiaosheng.cn/20480.html
相關開發語言
 八年  行業經驗

多一份參考,總有益處

聯系深圳網站公司塔燈網絡,免費獲得網站建設方案及報價

咨詢相關問題或預約面談,可以通過以下方式與我們聯系

業務熱線:余經理:13699882642

Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.    

主站蜘蛛池模板: 亚洲AV久久久噜噜噜久久| 儿子你得太大了慢点插| 私密按摩师在线观看 百度网盘| 久久精品成人免费看| 超碰国产亚洲人人| ai换脸女明星被躁在线观看免费| 亚洲日韩国产精品乱-久| 特级黑人三人共一女| 日本漫画之无彩翼漫画| 男人大臿蕉香蕉大视频| 狠狠撸亚洲视频| 果冻传媒在线完整免费播放| 国产精品卡1卡2卡三卡四| 囯产精品久久久久久久久免费蜜桃| 99国产精品久久人妻无码| 91久久偷偷做嫩草影院免| 与子敌伦刺激对白亂輪亂性| 亚洲中文字幕在线第六区| 亚洲免费无码中文在线亚洲在| 香蕉AV福利精品导航| 小女生RAPPER入口| 亚洲.欧美.中文字幕在线观看| 午夜理伦片免费| 无码人妻丰满熟妇区五十路久久| 色婷婷国产精品视频一区二区| 日韩精品一区VR观看| 色婷婷综合激情中文在线| 亚洲AV无码国产精品午夜久久| 亚洲AV无码专区国产乱码网站| 亚洲国产精品高清在线 | 超大号黑吊magnet| 国产精品第1页| 久久99视热频国只有精品| 牛牛免费视频| 忘忧草在线| 中字幕视频在线永久在线| swag合集120部| 国产亚洲欧美ai在线看片| 蜜桃最新网址| 欧美日韩国产码在线| 蜜桃日本免费观看MV|