"how to solve “the certificate is not valid and cannot be used to verify the identity of this website” error?" Code Answer

3

i found how to solve this issue, and thanks to steffen ullrich for a valid proposal.

this is related to the certificate's common name (cn) value. in my case, that value was *.domain.net, and to change it to *.domain.net, all we had to do was a procedure called "domain transfer". this means, to change the cn to *.rekey.domain.net, and then to change it again to *.domain.net. we could not change it to *.domain.net directly because the certificate provider says *.domain.net and *.domain.net are the same.

now, this issue happened only with java 7.71 and java 8.25. previous version of java 7 and 8 don't have this issue (ssl certificate restrictions for cn in a different casing).

anyway, this solved the issue, and now we receive a gentle information message about the domain:

By Robjong on June 16 2022
Only authorized users can answer the Search term. Please sign in first, or register a free account.