private static Certificate[] makeCertificateChain(Certificate cert, Certificate... caCerts) {
		Certificate[] chain = new Certificate[caCerts.length + 1];
		chain[0] = cert;
		System.arraycopy(caCerts, 0, chain, 1, caCerts.length);
		return chain;
	}
Pack ordered list of certs to create a certificate chain array
@param cert primary certificate
@param caCerts CA certificate chain.
@return ordered certificate chain
Ghidra/Framework/Generic/src/main/java/ghidra/net/ApplicationKeyManagerUtils.java