In my code I am exporting a certificate from a java keystore via the Certificate's getEncoded function and then Base64 encoding the resulting encoded cert. I will now be dealing with certificate chains as well.
My question is how do I export the certificate chain? Do I call the getEncoded method on each of the certificates in the Certificate array and then concatinate them together? Is there a more elegant method?
Thanks very much.