Add certificate chain

This commit is contained in:
M66B
2019-12-19 16:01:06 +01:00
parent c1e59c912e
commit 6d25f04b8c

View File

@@ -1975,7 +1975,7 @@ public class FragmentCompose extends FragmentBase {
}
// Sign
Store store = new JcaCertStore(Arrays.asList(chain[0]));
Store store = new JcaCertStore(Arrays.asList(chain));
CMSSignedDataGenerator cmsGenerator = new CMSSignedDataGenerator();
cmsGenerator.addCertificates(store);