mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[ANY] Предупреждение при использовании Autogen сертификата
This commit is contained in:
parent
19831a6f72
commit
4e4f606636
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue