Access denied to /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacerts although I'm root user
Dear Experts,
I am using OS X El Capitan 10.11.4 on MacBook Pro (Retina, 13-inch, Early 2015), 2.9 GHz Intel Core i5, 8 GB 1867 MHz DDR3, Intel Iris Graphics 6100 1536 MB.
I want to add a Root CA certificate to my root certificate trust store in Java.
Running as root, (or as admin) I try to use the following command :
sudo keytool -import -alias Alias_cert -file /Path_to_cert/CERT.crt -keystore /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacer ts -storepass changeit
But I get the following error :
Trust this certificate? [no]: yes
Certificate was added to keystore
keytool error: java.io.FileNotFoundException: /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib/security/cacer ts (Operation not permitted)
I have tried to change the access permissions of "cacerts" using sudo chmod but nothing seems to work.
Please help,
Thanks in advance.
Nairit
MacBook Pro, OS X El Capitan (10.11.4)