Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. [root@develop ssl]# keytool -genkey -keysize 2048 -keyalg RSA -alias tomcat -keystore yiqihi.com.jks
  2. Enter keystore password:
  3. Re-enter new password:
  4. What is your first and last name?
  5. [Unknown]: michael xiao
  6. What is the name of your organizational unit?
  7. [Unknown]: yiqihi.com
  8. What is the name of your organization?
  9. [Unknown]: yiqihi.com
  10. What is the name of your City or Locality?
  11. [Unknown]: beijing
  12. What is the name of your State or Province?
  13. [Unknown]: cn
  14. What is the two-letter country code for this unit?
  15. [Unknown]: cn
  16. Is CN=michael xiao, OU=yiqihi.com, O=yiqihi.com, L=beijing, ST=cn, C=cn correct?
  17. [no]: no
  18. What is your first and last name?
  19. [michael xiao]: michael xiao
  20. What is the name of your organizational unit?
  21. [yiqihi.com]:
  22. What is the name of your organization?
  23. [yiqihi.com]:
  24. What is the name of your City or Locality?
  25. [beijing]:
  26. What is the name of your State or Province?
  27. [cn]: beijing
  28. What is the two-letter country code for this unit?
  29. [cn]: cn
  30. Is CN=michael xiao, OU=yiqihi.com, O=yiqihi.com, L=beijing, ST=beijing, C=cn correct?
  31. [no]: yes
  32.  
  33. Enter key password for <tomcat>
  34. (RETURN if same as keystore password):
  35. [root@develop ssl]# ll
  36. total 4
  37. ===================================================================================
  38. -rw-r--r-- 1 root root 2255 Feb 22 03:16 yiqihi.com.jks
  39. ===================================================================================
  40.  
  41.  
  42.  
  43.  
  44. [root@develop ssl]# keytool -certreq -alias tomcat -file yiqihi.com.csr -keystore yiqihi.com.jks
  45. Enter keystore password:
  46. [root@develop ssl]# ll
  47. total 8
  48. ====================================================================================
  49. -rw-r--r-- 1 root root 1101 Feb 22 03:17 yiqihi.com.csr
  50. -rw-r--r-- 1 root root 2255 Feb 22 03:16 yiqihi.com.jks
  51. ====================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement