I've got a certificate from sslforFree.com that it contains 3 files:
1-ca_bundle.crt
2-certificate.crt
3-private.key
I could config my Spring-Boot application with a self-signed certificate that was created by Java key tools, now my question is that how can I use these three files??
I expected that there should be just one file that I can put it into my Keystore, but now there are 3 files and I don't know how to use them.
On the other hand, I have android applications as a client. It needs to have a .pem
file as a certificate that contains a public-key as below format(I mean just the value of the tags):
<pin-set>
<pin digest="SHA-256">k3XnEYQCK79AtL9GYnT/nyhsabas03V+bhRQYHQbpXU=</pin>
</pin-set>
Now how can I generate .pem
file contains a public-key with this format?
I have searched and also found some commands to concatenate .crt
and .key
files and the result is .pem
but it contains some Base64 text that includes these at the start and the end of the file:
-----BEGIN CERTIFICATE-----
xxxxx
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
xxxxx
-----END RSA PRIVATE KEY-----
How can I create a public-key for clients?
And do I need to put that .pem
file into my Keystore??
Any help would be appreciated!!