Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@develop ssl]# keytool -genkey -keysize 2048 -keyalg RSA -alias tomcat -keystore yiqihi.com.jks
- Enter keystore password:
- Re-enter new password:
- What is your first and last name?
- [Unknown]: michael xiao
- What is the name of your organizational unit?
- [Unknown]: yiqihi.com
- What is the name of your organization?
- [Unknown]: yiqihi.com
- What is the name of your City or Locality?
- [Unknown]: beijing
- What is the name of your State or Province?
- [Unknown]: cn
- What is the two-letter country code for this unit?
- [Unknown]: cn
- Is CN=michael xiao, OU=yiqihi.com, O=yiqihi.com, L=beijing, ST=cn, C=cn correct?
- [no]: no
- What is your first and last name?
- [michael xiao]: michael xiao
- What is the name of your organizational unit?
- [yiqihi.com]:
- What is the name of your organization?
- [yiqihi.com]:
- What is the name of your City or Locality?
- [beijing]:
- What is the name of your State or Province?
- [cn]: beijing
- What is the two-letter country code for this unit?
- [cn]: cn
- Is CN=michael xiao, OU=yiqihi.com, O=yiqihi.com, L=beijing, ST=beijing, C=cn correct?
- [no]: yes
- Enter key password for <tomcat>
- (RETURN if same as keystore password):
- [root@develop ssl]# ll
- total 4
- ===================================================================================
- -rw-r--r-- 1 root root 2255 Feb 22 03:16 yiqihi.com.jks
- ===================================================================================
- [root@develop ssl]# keytool -certreq -alias tomcat -file yiqihi.com.csr -keystore yiqihi.com.jks
- Enter keystore password:
- [root@develop ssl]# ll
- total 8
- ====================================================================================
- -rw-r--r-- 1 root root 1101 Feb 22 03:17 yiqihi.com.csr
- -rw-r--r-- 1 root root 2255 Feb 22 03:16 yiqihi.com.jks
- ====================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement