PDF document signing with Google KMS and Entrust certificate
问题 I am trying to make a valid signature in a pdf document by using a certificate from CA (Entrust) generated with a private key from Google KMS (private key never goes out from the KMS). The certificate chain is made as: [entrustCert, intermediate, rootCert] Following the part of the code I am using to make this happen: String DEST = "/tmp/test_file.pdf"; OutputStream outputFile = new FileOutputStream(DEST); CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509");