개발

keytool 인증서 만들기

킁한국인 2013. 12. 5. 16:53

인증서 목록 보기

# keytool -list

Enter keystore password:  


인증서 삭제 하기

# keytool -delete -alias kas


* 인증서 생성

# keytool -genkey -keyalg RSA -validity 10000 -alias kas -keystore kas.keystore

Enter keystore password:  

Re-enter new password: 

What is your first and last name?

  [Unknown]:  

What is the name of your organizational unit?

  [Unknown]:  

What is the name of your organization?

  [Unknown]:  

What is the name of your City or Locality?

  [Unknown]:  

What is the name of your State or Province?

  [Unknown]:  

What is the two-letter country code for this unit?

  [Unknown]:  

Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?

  [no]:  yes


Enter key password for <kas>

        (RETURN if same as keystore password):  

Re-enter new password: 



* jar 파일에 인증서 쒸우기(jar 파일 인증하기)

# jarsigner -keystore kas.keystore -storepass 비밀번호 -keypass 비밀번호 index.jar kas