...
- Creating a keystore with a self signed certificate
- Getting the self signed certificate authenticated/signed by a Certificate Authority and importing the updated certificate back into the keystore (see Authorizing Authorize a self signed certificate by a trusted third 3rd party Certificate Authority)
It is important to note that for signing libraries a Code Signing certificate is required from the CA, while for HTTPS/SSL support a SSL certificate is needed
...