PKIX path building failed

After importing it with keytool, the console says this:
keytool error: /nix/store/gpxl5qgg8kicmcvivwmybwjlpf7wh20l-graalvm17-ce-22.3.0/lib/security/cacerts (Permission denied)
I think its actually imported because when I try to reimport it, it says a similar one already exists… But I still got the original error, so its not really working
One thing I wanted to ask, how did you know that that certificate you linked is the one needed?