Intel® Business Client Software Development
Support for Intel® vPro™ software development and technologies associated with Intel vPro platforms.

Provisioning Server in Java

peri
Beginner
530 Views
Hi,
I am planning to implement the iAMT provisioning server in java so that it can be easily integrated with our product and will work in both windows and linux platforms. But when i looked at the iAMT SCA and SCS it got implemented in .NET environment and can be used on only windows.

Could you please let us know if you have any java samples (or implementation) for the provisioning server?

Thanks,
Periyasamy

0 Kudos
7 Replies
Lance_A_Intel
Employee
530 Views

Hello,
Unfortunately we do not have any provisioning samples in Java at this time.
I will pass on you request to our development teams.

There have been requests for Java in the past and I anticipate something for Java will be available ina future release.
0 Kudos
peri
Beginner
530 Views

Hello,
Unfortunately we do not have any provisioning samples in Java at this time.
I will pass on you request to our development teams.

There have been requests for Java in the past and I anticipate something for Java will be available ina future release.
Hi,
Does the webservices exposed in the iAMT SDK support provisioning through java client (using axis stubs)?

I am trying to provision the iAMT device with PSK method (one-touch) and using the following java client code to call the methods in the SecurityAdministrationService for the provisioning after we get hello packets from the iAMT device.

SecurityAdministrationService serv = new SecurityAdministrationServiceLocator();
// Get the port from the "vpro" host
URL targetEntry = new URL("https://164.99.164.82:16993/SecurityAdministrationService");
SecurityAdministrationSoapPortType pt = serv.getSecurityAdministrationSoapPortType(targetEntry);

// Set the authentication data (read username and password)
((SecurityAdministrationSoapBindingStub) pt).setUsername("admin");
((SecurityAdministrationSoapBindingStub) pt).setPassword("Novell@1");
((SecurityAdministrationSoapBindingStub) pt).setTlsEnabled(true);

String pidString = "O6UI48K6";
String ppsString = "G5JIDUIAVKPPW8DVN4OTEIZGGJ4HOFXL";
byte [] PID =pidString.getBytes();
byte [] PPS = ppsString.getBytes();

((SecurityAdministrationSoapBindingStub) pt).setTLSPSK(PID, PPS);


UnsignedIntHolder status = new UnsignedIntHolder();
StringHolder version = new StringHolder();

((SecurityAdministrationSoapBindingStub) pt).getCoreVersion(status, version);

But i get the following error:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: javax.net.ssl.SSLException: Received fatal alert: internal_error
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLException: Received fatal alert: internal_error
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191)
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:196)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.intel.schemas.platform.client.SecurityAdministration._2004._01.SecurityAdministrationSoapBindingStub.getCoreVersion(SecurityAdministrationSoapBindingStub.java:2362)
at com.test.iamt.provisioning.ProvisioningTest.main(ProvisioningTest.java:62)

Please let me know what is the sequence of method calls need to made to access the webservice on the iAMT device if we use axis for the provisioning.


Thanks,
Periyasamy
0 Kudos
Richard_B_Intel1
Employee
530 Views
Quoting - pperiyasamy
Hi,
I am planning to implement the iAMT provisioning server in java so that it can be easily integrated with our product and will work in both windows and linux platforms. But when i looked at the iAMT SCA and SCS it got implemented in .NET environment and can be used on only windows.

Could you please let us know if you have any java samples (or implementation) for the provisioning server?

Thanks,
Periyasamy


Hi Periyasamy-

Sorry for the slow reply here, I was trying to locate some ad hoc java samples to possibly assist you, but i was unsuccessful in my search. As soon has we have some samples we will make them available. To answer your general question..."Does the webservices exposed in the iAMT SDK support provisioning through java client"... There is nothing in the SDK that prohibits the use of java.
0 Kudos
peri
Beginner
530 Views
Hi RB,
Thanks RB for the update.

When i looked at the SCA sample (ConfigurationServer.exe), it uses modified (done by Intel) OpenSSL's TLS-PSK for opening the connection with iAMT webservices during the provisioning. Similar way i m looking for a java implementation that i can use with the java client code (uses axis stubs). Can you suggest me if we have any such implementation which supports TLS-PSK?

Thanks,
Periyasamy

Quoting - RB (Intel)

Hi Periyasamy-

Sorry for the slow reply here, I was trying to locate some ad hoc java samples to possibly assist you, but i was unsuccessful in my search. As soon has we have some samples we will make them available. To answer your general question..."Does the webservices exposed in the iAMT SDK support provisioning through java client"... There is nothing in the SDK that prohibits the use of java.

0 Kudos
Richard_B_Intel1
Employee
530 Views

Periyasamy-

Have you looked through the manageability site to see what Java resources are available?http://software.intel.com/en-us/manageability/
You can simply type "AMT Java" in the search box and find out what others are doing with Java. Also, have you looked at http://software.intel.com/en-us/articles/intel-active-management-technology-downloads/ ? This site has a link to an old (and no longer supported) Java based RDK.
0 Kudos
peri
Beginner
530 Views
Quoting RB (Intel)

Periyasamy-

Have you looked through the manageability site to see what Java resources are available?http://software.intel.com/en-us/manageability/
You can simply type "AMT Java" in the search box and find out what others are doing with Java. Also, have you looked at http://software.intel.com/en-us/articles/intel-active-management-technology-downloads/ ? This site has a link to an old (and no longer supported) Java based RDK.

Hi RB,

I don't see any reference implementations in java for the provisioning. RDK only has the java code for managing iAMT devices not the provisioning.

Thanks,

Periyasamy

0 Kudos
Gael_H_Intel
Moderator
530 Views

Hi pperiyasamy,

The RDK does not provide samples in Java for Provisioning. It was based on AMT 2.0 and, most likely, it was demonstrated on systems that were setup in Small Business Mode. To my knowledge, we have no Java samples for provisioning.

Gael

0 Kudos
Reply