Fix dependencies
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<name>spring-cloud-commons-dependencies</name>
|
||||
<description>Spring Cloud Commons Dependencies</description>
|
||||
<properties>
|
||||
<spring-security-rsa.version>1.1.0</spring-security-rsa.version>
|
||||
<spring-security-rsa.version>1.1.1</spring-security-rsa.version>
|
||||
</properties>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
|
||||
@@ -39,7 +39,7 @@ public class EncryptorFactory {
|
||||
|
||||
TextEncryptor encryptor;
|
||||
if (data.contains("RSA PRIVATE KEY")) {
|
||||
encryptor = new RsaSecretEncryptor(data);
|
||||
encryptor = new RsaSecretEncryptor(data.replaceAll("\\n *", ""));
|
||||
}
|
||||
else if (data.startsWith("ssh-rsa") || data.contains("RSA PUBLIC KEY")) {
|
||||
throw new KeyFormatException();
|
||||
|
||||
Reference in New Issue
Block a user