Alon Bar-Lev has uploaded a new change for review.

Change subject: utils: pki resources: return engine alias based on ConfigValues
......................................................................

utils: pki resources: return engine alias based on ConfigValues

Related-To: https://bugzilla.redhat.com/show_bug.cgi?id=961677
Change-Id: Ie87ece2025245c9afdb6fbe084c04f4bfac468b9
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/PKIResources.java
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/31/23931/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/PKIResources.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/PKIResources.java
index ef7acdd..0263801 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/PKIResources.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/PKIResources.java
@@ -6,6 +6,8 @@
 import java.security.cert.Certificate;
 import java.security.cert.CertificateEncodingException;
 import java.security.cert.CertificateFactory;
+import org.ovirt.engine.core.common.config.Config;
+import org.ovirt.engine.core.common.config.ConfigValues;
 
 import org.apache.commons.codec.binary.Base64;
 
@@ -79,7 +81,7 @@
 
     public enum Resource {
         CACertificate(EngineLocalConfig.getInstance().getPKICACert(), 
Format.X509_PEM_CA, null),
-        EngineCertificate(EngineLocalConfig.getInstance().getPKIEngineCert(), 
Format.X509_PEM, "ovirt-engine");
+        EngineCertificate(EngineLocalConfig.getInstance().getPKIEngineCert(), 
Format.X509_PEM, Config.<String> getValue(ConfigValues.SSHKeyAlias));
 
         private final Certificate cert;
         private final Format defaultFormat;


-- 
To view, visit http://gerrit.ovirt.org/23931
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie87ece2025245c9afdb6fbe084c04f4bfac468b9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to