2013년 10월 29일 화요일

ActiveMq 보안적용

웹 콘솔 보안 적용

activemq의 jetty.xml 에서 빈 아이디 'securityConstraint'의 'authenticate' 프로퍼티를 'true'로 설정하면 웹 콘솔에 시큐어리티를 적용할 수 있다.



ACTIVEMQ 통신 보안 설정

activemq의 {ACTIVEMQ_HOME}/conf/activemq-security.xml 파일에서 빈 아이디  'propertyConfigurer' 의 'location' 프로퍼티를 ' 아래와 같이 설정    

<property name="location" value="file:${activemq.conf}/credentials.properties"/>


simpleAuthenticationPlug 설정
<plugins>
    <!-- Configure authentication; Username, passwords and groups -->
    <simpleAuthenticationPlugin anonymousAccessAllowed="false">
        <users>
            <authenticationUser username="system" password="${activemq.password}" groups="users,admins"/>                             <authenticationUser username="admin" password="admin" groups="users,admins,publishers,consumers"/>                 </users>
    </simpleAuthenticationPlugin>


activemq 시작 시에 인증을 적용하려면 아래와 같이 실행한다.

$ nohup ./activemq start xbean:file:../conf/activemq-security.xml &

댓글 없음:

댓글 쓰기