Karl, I solved my problems! Actually it helped me a lot to solve the
certificates issue the sw Portecle, which simplified the import of the
keystore in the cacerts file and thus adding my certificate to the trusted
certificates.
For references on Portecle and very simple guidelines, look at the answer of
"Sarel Botha" in this post:
http://stackoverflow.com/questions/11617210/how-to-properly-import-a-selfsigned-certificate-into-java-keystore-that-is-avail
<http://http://stackoverflow.com/questions/11617210/how-to-properly-import-a-selfsigned-certificate-into-java-keystore-that-is-avail>
To recap, the correct order of the authorization in the /security.policy/
file is:
/ALLOW {
[org.osgi.service.condpermadmin.BundleSignerCondition "CN=xxxx, OU=xxx,
O=xxx, L=xxxxxx, ST=xx, C=xx"]
( java.io.FilePermission "*" "read, write")
} "Allow my signed bundles to read and write file"
DENY {
[org.osgi.service.condpermadmin.BundleLocationCondition
"file:.\\bundle\\plugins*"]
( java.io.FilePermission "*" "write")
} "Deny other bundles to write file"
ALLOW {
( java.security.AllPermission "*" "*")
} "But give all other not denied permissions to all bundles"/
Thanks for your great help!!! I hope this will be useful to someone else!
Andrea
--
View this message in context:
http://apache-felix.18485.x6.nabble.com/Problem-with-Felix-security-and-bundle-policies-tp5006903p5006969.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]