How to generate self-signed certificate using keytool command of JDK?
2012-03-04 17:27
399 查看
1.Generate local digital cerficate
cd D:\_Share and Training\SSL
keytool -genkeypair -keyalg RSA -keysize
2048 -sigalg SHA1WithRSA -validity 36000 -alias www.tibco.com -keystore tibco.keystore
or
keytool -genkeypair -keyalg RSA -keysize 2048 -sigalg SHA1WithRSA -validity 36000 -alias www.tibco.com -keystore tibco.keystore -dname "CN=www.tibco.com,OU=adapter,O=tibco,L=BJ,ST=BJ,C=CN" -storepass 123456
2.Export digital certificate
keytool -exportcert -alias www.tibco.com -keystore C:\self-signed\tibco.keystore -file tibco.cer -rfc
-rfc: export the certicate with Base64 format
3.Print Digital Certificae
keytool -printcert -file tibco.cer
4.Export Digital certificate request
keytool -certreq -alias www.tibco.com -keystore tibco.keystore -file tibco.csr -v -storepass 123456
5.Import digital certificate
keytool -importcert -trustcacerts -alias www.tibco.com -file tibco.cer -keystore tibco.keystore
6.View imported digital cerificate
keytool -list -alias www.tibco.com -keystore tibco.keystore
复制搜索
复制搜索
cd D:\_Share and Training\SSL
keytool -genkeypair -keyalg RSA -keysize
2048 -sigalg SHA1WithRSA -validity 36000 -alias www.tibco.com -keystore tibco.keystore
or
keytool -genkeypair -keyalg RSA -keysize 2048 -sigalg SHA1WithRSA -validity 36000 -alias www.tibco.com -keystore tibco.keystore -dname "CN=www.tibco.com,OU=adapter,O=tibco,L=BJ,ST=BJ,C=CN" -storepass 123456
2.Export digital certificate
keytool -exportcert -alias www.tibco.com -keystore C:\self-signed\tibco.keystore -file tibco.cer -rfc
-rfc: export the certicate with Base64 format
3.Print Digital Certificae
keytool -printcert -file tibco.cer
4.Export Digital certificate request
keytool -certreq -alias www.tibco.com -keystore tibco.keystore -file tibco.csr -v -storepass 123456
5.Import digital certificate
keytool -importcert -trustcacerts -alias www.tibco.com -file tibco.cer -keystore tibco.keystore
6.View imported digital cerificate
keytool -list -alias www.tibco.com -keystore tibco.keystore
复制搜索
复制搜索
相关文章推荐
- How To Generate A Wallet Containing A Self Signed Certificate Using ORAPKI [ID 560982.1]
- Five Tips for Using Self Signed SSL Certificates with iOS
- How do I accept a self-signed SSL certificate using iOS 7's NSURLSession and its family of delegate
- How do I import a new Java CA cert without using the keytool command line utility?
- Generate certificate in Java -- Self signed certificate
- How to generate self-signed SSL certificates
- Obtain Key from a Hash of Arrays using array value
- HowTo: Flush Contents Of a Memcached Server Using Command Line
- How to get position of key/value in LinkedHashMap using its key
- Apache Ant -a java library and command-line tool for building different types of applications
- 如何在Win8.1和Win2012上运用PowerShell快速生成、安装、导出自签名证书 (Self-Signed Certificate)
- You are using an unsupported command-line flag --ignore-certificate-errors. Stability and security w
- 改进:How To - Create a custom field using attributes of other UI objects
- Android 使用httpclient对self-signed certificate网站进行SSL连线
- 使用httpClient连接https时使用服务端证书(self-signed certificate)的方法
- Using crosstool-0.43 to generate cross-compiler for ARM
- usage of javasigner and keytool
- ERROR ITEMS-9000.....is not signed using an Apple submission certificate
- attempting to bokeyaunrun eclipse useing the jre instead of jdk,to run eclipse using
- svn服务器搭建和使用:Custom action GenerateSSLKey failed: Command terminated with non-zero exit code