serviceMix https

来源:互联网 发布:网络大电影摄影收入 编辑:程序博客网 时间:2024/03/29 12:54

http://fusesource.com/docs/esb/4.4/esb_security/CamelJetty-Ssl.html

http://www.trustasia.com/symantec/secure-site/

http://www.ioshin.com/ssl/ssl-knowledge/ssl-faq/index.html

ServiceMix 4 comes with a useful web console. It needs to be installed manually; it is not deployed out of the box:

karaf@root> features:install webconsole


... and thereafter the console can be accessed using URL: 
http://localhost:8181/system/console/bundles
(applies to 4.3.1, URL might differ on other versions of SMX).

In order to secure the console to use HTTPS, it is necessary to create a file 

$KARAF_HOME/etc/org.ops4j.pax.web.cfg 

and configure it using any of the property keywords defined in this WebContainerConstants class. 

Here is a possible example:



# configures the SMX Web Console to use SSL

#
# @SeeAlso: https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-api/src/main/java/org/ops4j/pax/web/service/WebContainerConstants.java
# for possible configuration properties

org.osgi.service.http.enabled=false
org.osgi.service.http.port=8181

org.osgi.service.http.secure.enabled=true
org.osgi.service.http.port.secure=8183

org.ops4j.pax.web.ssl.keystore=/path/to/keystore.ks
org.ops4j.pax.web.ssl.keystore.type=JKS
org.ops4j.pax.web.ssl.password=blah
org.ops4j.pax.web.ssl.keypassword=bluh
org.ops4j.pax.web.ssl.clientauthwanted=false
org.ops4j.pax.web.ssl.clientauthneeded=false
原创粉丝点击