You can also configure a self-signed certificate authority (CA) using OpenSSL or perhaps your Java tool. You can then use this CA to sign a number of server certificates.
You still have to manually trust the self-signed CAs to all clients that access your test servers, but at least you need to trust only one root CA, not a bunch of separate self-signed server certificates.
Another option is to check CAcert .
source
share