2012-10-12

Tomcat 관리자 암호를 보안문으로 설정하기 - Encypted password in server.xml

Encypted password in server.xml

digest 기능을 사용


[server.xml]
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase" />
=>
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase" digest="sha" />

D:\apache-tomcat-6.0.18\bin>digest.bat -a sha demo1234
demo1234:6ea7ccdcf642953a24672d10b0d32cef576e0329

암호 방식은 sha, md5 등이 있음

[tomcat-users.xml]
<user username="admin" password="demo1234" roles="admin,manager"/>
=>
<user username="admin" password="6ea7ccdcf642953a24672d10b0d32cef576e0329" roles="admin,manager"/>

댓글 없음:

댓글 쓰기