[ANY] Предупреждение при использовании Autogen сертификата

This commit is contained in:
Gravit 2020-05-01 09:57:14 +07:00
parent 19831a6f72
commit 4e4f606636
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -50,6 +50,9 @@ public String getName() {
public Path process(Path inputFile) throws IOException {
if (signedDataGenerator != null) return inputFile;
try {
LogHelper.warning("You are using an auto-generated certificate (sign.enabled false). It is not good");
LogHelper.warning("It is highly recommended that you use the correct certificate (sign.enabled true)");
LogHelper.warning("You can use GenerateCertificateModule or your own certificate.");
X500NameBuilder subject = new X500NameBuilder();
subject.addRDN(BCStyle.CN, server.config.projectName.concat(" Autogenerated"));
subject.addRDN(BCStyle.O, server.config.projectName);