Dave Chen has posted comments on this change.
Change subject: Trusted Compute Pools - Open Attestation integration with oVirt
engine proposal
......................................................................
Patch Set 1: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsSelector.java
Line 533: try {
Line 534: KeyStore trustStore =
KeyStore.getInstance(KeyStore.getDefaultType());
Line 535: FileInputStream instream = new FileInputStream(new
File(trustStorePath +"/TrustStore.jks"));
Line 536: trustStore.load(instream, null);
Line 537: SSLSocketFactory socketFactory = new
SSLSocketFactory(trustStore);
I saw the class named 'XmlRpcUtils' has this functionality, but this class
cannot be re-used due to the different logic, such as this statement:
"keystoreUrl = new URL("file://" + Config.resolveKeyStorePath());". We are
planning to create a class similar with 'XmlRpcUtils' in the package of
"attestionbroker" to implement such a function, any suggestion?
Line 538: Scheme sch = new Scheme("https", 8443, socketFactory);
Line 539:
httpclient.getConnectionManager().getSchemeRegistry().register(sch);
Line 540: HttpPost httpPost = new HttpPost(attestationWSURL
+"/PollHosts");
Line 541: httpPost.setEntity(new StringEntity("{\"hosts\":[\""
+hostname +"\"]}"));
--
To view, visit http://gerrit.ovirt.org/11237
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I4de780cd46069638433255f3f9c994575f752e55
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Dave Chen <[email protected]>
Gerrit-Reviewer: Dave Chen <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches