byte[] release = fileManager.getFile("Release", data);
// Get the key and sign the Release file
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PGPSigner signer = signingConfiguration.getSigner();
PGPSignatureGenerator signatureGenerator = new PGPSignatureGenerator(new BcPGPContentSignerBuilder(signer.getSecretKey().getPublicKey().getAlgorithm(), PGPUtil.SHA1));
signatureGenerator.init(PGPSignature.BINARY_DOCUMENT, signer.getPrivateKey());
BCPGOutputStream out = new BCPGOutputStream(new ArmoredOutputStream(baos));
signatureGenerator.update(release);
signatureGenerator.generate().encode(out);