Java Keytool error after importing certificate , “keytool error: java.io.FileNotFoundException & Access Denied”

后端 未结 11 1047
再見小時候
再見小時候 2020-12-02 06:37

I\'m trying to connect a Java Web API via HTTPS; however, an exception is thrown:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorExcept         


        
11条回答
  •  忘掉有多难
    2020-12-02 07:36

    I got this error too even I ran cmd as an Administrator.

    The root cause is: The file is from VCS(subversion, perforce, etc.), and when I checked the properties of this file, its' Attributes is Read-only.

    So the solution is:

    • (1) disable the 'Read-only' Attribute;
    • (2) check out from VCS, let the file under the status of read&write.

提交回复
热议问题