HPOS 4.0 technical note 3
HP Web Services for Output Server 46
Using HP Web Services for Output Server
SSL
http://wiki.jboss.org/wiki/SSLSetup
NOTE: You must have signed certificates to configure SSL, which must be deployed on JBoss
server.
When you have the certificate, you can make changes to the server.xml file located at:
DAZEL_HOME/share/server/default/deploy/jboss-web.deployer
An example of snippet of server.xml file is as follows:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" keyStoreFile="WEB-INF\wsg.keystore"
keyStorePass="welcome1" sslProtocol="TLS" />
NOTE: The value of the keystoreFile file is the path of the certificate and keystorePass
is the password while creating the certificate.
Restart the JBoss server.
2. Import the certificates on the Web service client from the JBoss server using the following utility:
NOTE: Using the utility, you can import the public key on to the Web service client.
/**This is a standard Sun utility.
The class is used to import the Public Key from the server which has the signed certificate installed on JBoss
server. This class will persist the information (public key) in a file system on the client.
By using the file system from the java client you can make a call using SSL.
**/
public class InstallCert {
package com.hp.ws.client.standalone;
import java.io.*;
import java.net.URL;
import java.security.*;
import java.security.cert.*;
import javax.net.ssl.*;
public class InstallCert {
public static void main(String[] args) throws Exception {
String host= "<IP Address>";
int port = <port number>;
char[] passphrase;
String p="changeit";
passphrase = p.toCharArray();
File file = new File("jssecacerts");
System.out.println("file path="+file.getAbsolutePath());