This commit is contained in:
novice.li 2023-12-30 21:53:47 +08:00
parent e2eae0d69d
commit a6f91b9933
2 changed files with 1 additions and 1 deletions

View file

@ -73,7 +73,7 @@ public class LicenseController {
@SneakyThrows
static PrivateKey getPrivateKey() {
ClassPathResource licenseKeyResource = new ClassPathResource("jetbra.key");
ClassPathResource licenseKeyResource = new ClassPathResource("jetbra.pem");
Security.addProvider(new BouncyCastleProvider());
PEMParser pemParser = new PEMParser(new InputStreamReader(licenseKeyResource.getInputStream()));
JcaPEMKeyConverter converter = new JcaPEMKeyConverter().setProvider("BC");