keytool Certificacion用于API使用

I dont know alot about certification, Ive been ask to do some API usage, and I need to "attach certificate" with the request, which makes sence (I know what certificates are used for). How ever, they've added an example on their documentation. They wrote:

  • We also provide on our website in the web service’s package our server’s certificate.
  • You will need to create a keystore containing this certificate and add it in your application with the corresponding password.

They left a rough example on how its supposed to look like I assume.

keytool -import -alias xxx.web.com -file xxx.web.com.crt -keystore xxx.web.com.jks -storepass password.

How does that work, I assume I need to:

  • Generate a new certificate using theirs
  • Attach my needed password to it
  • Ship API using newly generated certificate

I'm pretty sure I am missing some bits. I've tried to play around with it, but I am not sure what my end result and whats the process of it would be.