How do I get into a non-password protected Java keystore or change the password?

前端 未结 4 1281
轻奢々
轻奢々 2021-01-30 01:27

I\'m trying to import a trusted certificated into the Java cacerts keystore, but I have a problem. I tried to list existing trusted certificates and it seems that the keystore i

相关标签:
4条回答
  • 2021-01-30 01:48

    The password of keystore by default is: "changeit". I functioned to my commands you entered here, for the import of the certificate. I hope you have already solved your problem.

    0 讨论(0)
  • 2021-01-30 01:55

    which means that cacerts keystore isn't password protected

    That's a false assumption. If you read more carefully, you'll find that the listing was provided without verifying the integrity of the keystore because you didn't provide the password. The listing doesn't require a password, but your keystore definitely has a password, as indicated by:

    In order to verify its integrity, you must provide your keystore password.

    Java's default cacerts password is "changeit", unless you're on a Mac, where it's "changeme" up to a certain point. Apparently as of Mountain Lion (based on comments and another answer here), the password for Mac is now also "changeit", probably because Oracle is now handling distribution for the Mac JVM as well.

    0 讨论(0)
  • 2021-01-30 01:59

    Getting into a non-password protected Java keystore and changing the password can be done with a help of Java programming language itself.

    That article contains the code for that:

    thetechawesomeness.ideasmatter.info

    0 讨论(0)
  • 2021-01-30 02:05

    Mac Mountain Lion has the same password now it uses Oracle.

    0 讨论(0)
提交回复
热议问题