Https Class for Encryption Message...One question on this

(1)I have written a java code that connects to an https server.
Do I always need to have a client certificate in my code for the browser
to recognize the Server Certificate? like the example I have written below?(the try-catch block..)
Is it possible to write a normal class that makes an https connection without
having to use the try-catch block defined in the code?
Assuming that the Server has a valid certificate,what needs to be done
in my code so that I can get rid of the try-catch block and just make a normal
https connection to transfer data securely.
(2)Also,how do we install a certifcate in a browser? Why do we do this?
Please an urgent response will be much appreciated to question 1.
ajay
[email protected]
Code attached
package Encryption;
import java.io.*;
import java.util.*;
import java.security.*;
import javax.net.*;
import javax.net.ssl.*;
import com.sun.net.ssl.*;
import java.net.*;
public class Encrypt
public String sMess;
public static void ec(String sMess)
try {
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
URL url;
String uri="https://myserver.com/<java.class>";
url = new URL(uri);
HttpsURLConnection hpCon=null;
try {
KeyManager[] km = null;
TrustManager[] tm = {new RelaxedX509TrustManager()};
SSLContext sslContext = SSLContext.getInstance("SSL");
sslContext.init(null, tm, new java.security.SecureRandom());
SSLSocketFactory sslSF = sslContext.getSocketFactory();
hpCon = (HttpsURLConnection)url.openConnection();
hpCon.setSSLSocketFactory(sslSF);
}catch(Exception e){}
hpCon.setDoOutput(true);
hpCon.setDoInput(true);
OutputStream output = hpCon.getOutputStream();
output.write(sMess.getBytes());
output.flush();
output.close();
//Response from the Receiving Servlet.
System.out.println("Received response from the Server.....");
int i;
InputStreamReader input = new InputStreamReader(hpCon.getInputStream());
while((i = input.read())!=-1)
System.out.println((char)i);
}catch(IOException e)
System.out.println("Error in Client " + e);
} // End of Method Encrypt.
static class RelaxedX509TrustManager implements X509TrustManager
public boolean checkClientTrusted(java.security.cert.X509Certificate[] chain)
return true;
public boolean isServerTrusted(java.security.cert.X509Certificate[] chain){
return true;
public boolean isClientTrusted(java.security.cert.X509Certificate[] chain){
return true;
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return null;
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) {}
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) {}
} // End of Class Encryption
Now to get rid of the try-catch block can I say the attached to send a secured message without the
try catch block....Is it necessary to have the try-catch
block if the Server has a valid Certificate
import java.io.*;
import java.util.*;
import java.security.*;
import javax.net.*;
import javax.net.ssl.*;
import com.sun.net.ssl.*;
import java.net.*;
public class Encrypt
public String sMess;
public static void ec(String sMess)
try {
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
URL url;
String uri="https://myserver.com/<java.class>";
url = new URL(uri);
HttpsURLConnection hpCon=null;
hpCon = (HttpsURLConnection)url.openConnection();
hpCon.setDoOutput(true);
hpCon.setDoInput(true);
OutputStream output = hpCon.getOutputStream();
output.write(sMess.getBytes());
output.flush();
output.close();
int i;
InputStreamReader input = new InputStreamReader(hpCon.getInputStream());
while((i = input.read())!=-1)
System.out.println((char)i);
}catch(IOException e)
System.out.println("Error in Client " + e);
} // End of Method Encrypt.
} // End of Class Encryption

Hi Amelin
Thanks for your reply.
I havent understood your statement:
But You'll not authenticate your client. Everyone will be able to acces to your server.
My objective is:
1) Send a Message over HTTPS to a Servlet.
This Servlet will decrypt the Message,and then
send a response back to the caller in encrypted
format and the caller will decrypt the response from
the Servlet.
For this,I created a class called Encrypt,which will
transfer data over https to the Receiving Servlet.
That Servlet will decrypt the message and send
a response back to the caller in encrypted format
and the caller will decrypt the Response.
My codes are as follows:
Class Encrypt2
package Encryption;
import java.io.*;
import java.util.*;
import java.security.*;
import javax.net.*;
import javax.net.ssl.*;
import com.sun.net.ssl.*;
import java.net.*;
public class Encrypt2
public String sMess;
public String sURL;
public static void ec(String sMess,String sURL)
try {
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
URL url;
String uri = "https://" + sURL + ":8443/AHTTPS_USERPWD/servlet/SecureServer3";
System.out.println("uri is " + uri);
url = new URL(uri);
HttpsURLConnection hpCon=null;
// Code below is used as the Client doesnt trust the Server Certifcate.
// This will be deleted if the Server has genuine/valid certificates.
try {
KeyManager[] km = null;
TrustManager[] tm = {new RelaxedX509TrustManager()};
SSLContext sslContext = SSLContext.getInstance("SSL");
sslContext.init(null, tm, new java.security.SecureRandom());
SSLSocketFactory sslSF = sslContext.getSocketFactory();
hpCon = (HttpsURLConnection)url.openConnection();
hpCon.setSSLSocketFactory(sslSF);
}catch(Exception e){}
hpCon.setDoOutput(true);
hpCon.setDoInput(true);
// Send the Message over HTTPS as a Stream to the Receving Servlet
System.out.println("Sending data over HTTPS ..." + sMess);
System.out.println();
// Transfer Data
OutputStream output = hpCon.getOutputStream();
output.write(sMess.getBytes());
output.flush();
output.close();
//Response from the Receiving Servlet.
System.out.println("Received response from the Secure Server...");
System.out.println();
int i;
InputStreamReader input = new InputStreamReader(hpCon.getInputStream());
while((i = input.read())!=-1)
System.out.println((char)i);
}catch(IOException e)
System.out.println("Error in Client " + e);
} // End of Method Encrypt.
static class RelaxedX509TrustManager implements X509TrustManager
public boolean checkClientTrusted(java.security.cert.X509Certificate[] chain)
return true;
public boolean isServerTrusted(java.security.cert.X509Certificate[] chain){
return true;
public boolean isClientTrusted(java.security.cert.X509Certificate[] chain){
return true;
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return null;
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) {}
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) {}
// End of Class Encryption
The Servlet to receive the Message and respond back
// The Secure Server Servlet.
// Receives the PAP Push Message in an Encrypted Format and decrypts this.
// This servlet is invoked first by: https://localhost:8443/AHTTPS_USERPWD/servlet/SecureServer3
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.security.*;
import javax.net.*;
import javax.net.ssl.*;
import com.sun.net.ssl.*;
import java.net.*;
import java.io.*;
import java.sql.*;
import java.math.*;
import oracle.jdbc.driver.*; // See classpath and check how this is set
public class SecureServer3 extends HttpServlet {
private static final String CONTENT_TYPE = "text/html";
Connection dbConn;
PreparedStatement userPwd=null;
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
doPost(request,response);
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
System.out.println("Secure Server Ready to receive Message from application : TestEncryption.java");
System.out.println();
BufferedReader br=null;
/* Receives the String Message here and decrypts it... */
String sMess="";
InputStream input = request.getInputStream();
int i;
while((i = input.read())!=-1)
sMess += (String.valueOf((char) i));
System.out.println("Displaying at the SecureServer:");
System.out.println();
System.out.println(sMess);
// Send a Response back to the Caller depending upon
// whats received.
String sResponse = sMess;
OutputStream output = response.getOutputStream();
output.write(sResponse.getBytes());
} // End of doPost
As I will be porting all this on Apache 1.3.12/WAS Websphere 3.5.5 shortly,I wanted a go-ahead from
you (as you know all the ins-and outs)
PLEASE RESPOND.
Ajay
France Telecom R&D,London
[email protected]

Similar Messages

  • Configure plain http adapter for receiving message from an external system

    Hi,
    we use Pi/700.
    Now I have an external system and I have to use HTTP (plain) to send messages to XI (via plain http adapter).
    I have no experiences with HTTP!
    In the external system I can only configure "URL, Username, Password" for sending messages - that's all!
    What do I have to configure in XI (communication channel, abap-stack, java-stack,...)?
    I don't know the URL of my XI-system. Is there an transaction code to get this information?
    Why do I need a Username/Pasword?
    For testing I can use a "http-post test tool" I found here in this forum.
    Thank you all for any help!
    Regards
    Wolfgang

    Hi Hummel,
    In Exteranl System u have to use these values
    name="myhost"      value="xiserver"
    name="myport"      value="8000"
    name="mysystem"    value="XY_BSservice"
    name="myinterface" value="Order_out"
    name="mynamespace" value="urn:xi:hcl:powebapp"
    name="myqos"       value="BE"
    name="myclient"    value="300"
    name="myuser"      value="XYZCLNT"
    name="mypass"      value="xiuser"
    Here My system is the Business service created in Integration directory of XI, Interface is the one created in Integration Repository (This is Outbaound from external sys to XI)
    In XI U have to create
    Data Types : 1) Source Structure data type(from extenal sys)
                 2) Target structure (where u want to send from XI)
    Message Types : 2 with above DT's
    Message Interface: 1) Outbound, Async (Order_out)
                       2) Inbound , Async (for the target sys)
    Then Message mapping and Interface mapping as usual..
    And in ID u have to create 2 services one is XY_BSservice for sending system and the other is for receiving system...
    For sending system no communication channel required...
    Hope u will get idea from the above..
    Need any further u r welcome..
    Regards
    Sridhar

  • Duplicate notifications for encrypted messages

    Hi all,
    We're using our C150 to quarantine emails that arrive with some form of encryption (e.g. a password-protected .zip).  When a matching email first arrives, it's correctly quarantined and sends an "Encrypted message detected" notification to the relevant recipient, as expected.  However, after releasing the email to the recipient, another "Encrypted message detected" notification is sent related to the same email, even though the recipient receives the released version too.  It's causing some people a bit of confusion to get this second notification at the same time they get the email it's complaining about.
    We have the following setup under Mail Policies:Anti-Virus -> Anti-Virus Settings -> Encrypted Messages:
    Action applied to message = Quarantine
    Archive original message = No
    Modify message subject = Prepend the text "[WARNING :  MESSAGE ENCRYPTED]"  (Interestingly, the first notification generated doesn't include this prepended text as part of the subject, but the second one does; not sure if this is a clue to what's happening)
    Under Advanced:
    Add custom header to message = No
    Container notification = System Generated
    Other Notification = Recipient + Others (admins)
    Modify message recipient = No
    Send message to alternate destination host = No
    If anyone can shed some light on why this is happening or if you've seen it before, please let me know.
    Kind regards,
    Dan

    Hi Steven,
    Thanks for the tip.  I've traced the logs as suggested, and they really only seem to confirm the symptoms.  There's the initial message getting quarantined based on the encrypted content, followed by two notifications sent out (one to the affected user, and one to an admin email address.)  Then, after release, there are two more notification messages generated based on the original message, and delivery of the released message.  They all seem to relate back to the original message; in brief:
    Initial arrival:
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 matched all recipients for per-recipient policy DEFAULT in the inbound table
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 interim verdict using engine: CASE spam negative
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 using engine: CASE spam negative
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 interim AV verdict using McAfee ENCRYPTED
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 interim AV verdict using Sophos ENCRYPTED
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 antivirus encrypted
    Fri Mar 26 10:55:59 2010 Info: MID 3222428 was generated based on MID 3222427 by antivirus ## Notification to user
    Fri Mar 26 10:55:59 2010 Info: MID 3222429 was generated based on MID 3222427 by antivirus ## Notification to admin
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 quarantined to "Virus" (a/v verdict:ENCRYPTED)
    After release:
    Fri Mar 26 11:00:26 2010 Info: MID 3222471 was generated based on MID 3222427 by antivirus ## Duplicate notification to user
    Fri Mar 26 11:00:26 2010 Info: MID 3222472 was generated based on MID 3222427 by antivirus ## Duplicate notification to admin
    Fri Mar 26 11:00:29 2010 Info: Message finished MID 3222471 done
    Fri Mar 26 11:00:30 2010 Info: Message finished MID 3222427 done ## Original mail that is being released
    Fri Mar 26 11:00:30 2010 Info: Message finished MID 3222472 done
    Nothing I've omitted to save space seems to indicate anything other than regular delivery behaviour.
    cheers,
    -dan

  • How to use inbound exit class for more than one workflow step

    Hi All,
    In Offline Workflow Approval Scenarios where the work items are sent to outlook of non sap users inbox through workitem exit of the respective workflow item. Based on the user reply from outlook email(either approve or reject) which sends an auto reply to Offline user . We configure an inbound exit class and assign the same in the SMICM transaction. Based on the code written using SAP_WAPI function modules in inbound class exit offline user gets the user approval result and performs the action in SAP.
    My question now Is how can we use this inbound exit class for all the steps of a workflow.
    For ex: In a workflow I have a decision step followed by an activity step. First I will write the work item exit for the user decision step and inbound exit code for the user decision step and offline user executed the user decision step with approve action.
    followed by that I have an activity step for that I will code a work item exit for that activity level but how can I user the same inbound exit class for the activity step as well .
    Quick reply  would be of great  help for me.
    With Best Regards,
    Veni

    For the outbound processing you have the option of replacing the workflow exit by chancing the bsp application of the extended notification (see note 1448241 solution as an example of how to do the change) and replacing the standard links with a "mailto:...".
    As far as the inbound processing, that depends on what should be done in the activity step, if for example you have a bapi which executes what the user does you can call it in the inbound class instead of the user and then the relevant wapi (complete the workitem/raise event etc.).

  • JMS sender adapter issue for encrypted message

    Hello Folks,
    We have JMS to AS2 interface facing issues when JMS sender channel read the encrypted files placed in MQ queue, messages size is
    increasing to almost double when it reaches PI.
    When sending an encrypted message from MQ to AS2, message is showing in success flag but inbound file size is increasing almost double the size, when compared to message size placed in the MQ Queue. When partner is decrypting the message he is getting total garbage values. But it working fine for unencrypted messages,we are getting the same size as it is in MQ queue.
    Can you please trrough some light on the issue not getting excatly issue is in MQ or JMS sender adapter.
    Kind Regards
    Praveen Reddy

    Hi Praveen,
    the issue seems to be with your encryption/decryption mechanism rather then JMS adapter. if you have encrypted file in JMS queue then channel only pick the file and sent to target (i am assuming there is no tranformation). So it will not alter the file size.
    Please check how the file is encrypted before it places in JMS queue.
    regards,
    Harish

  • Http Header for SOAP message.

    Hello,
    I need to set some custom HTTP Header when i send the SOAP message to an endpoint.
    I tried this..but doesn't solve my requirement.
    SOAPMessage soapmsg = messageFactory.createMessage();
    MimeHeaders mime = soapmsg.getMimeHeaders();
    mime.addHeader("SOAPAction", "xxxx");
    mime.addHeader("Sender", "yyy");
    SOAPMessage reply = connection.call(soapmsg, destination);
    Can anyone please guide me how to set HTTP headers for SOAP?
    Thanks,

    The following snippet is some code froma stand-alone web service client that I use for testing. It picks up an XML as the payload of the web service, wraps it in a SOAP message and fires it at the web service endpoint.
         System.out.println("Create the SOAP message.\n"); 
         MessageFactory messageFactory = MessageFactory.newInstance();
         SOAPMessage message = messageFactory.createMessage();
         System.out.println("Creating a DOM object from the JAXB payload.");
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setValidating(false);
                 factory.setNamespaceAware(true);
         DocumentBuilder parser = factory.newDocumentBuilder();
         Document doc = parser.parse("file:payload.xml");
         //  Add the HTTP headers.
         message.getMimeHeaders().addHeader("User-Agent", "Mozilla/4.0 [en] (WinNT; I)");
         message.getMimeHeaders().addHeader("Host", "localhost:9080");
         message.getMimeHeaders().addHeader("Content-type", "text/xml");
         message.getMimeHeaders().addHeader("SOAPAction", "http://www.xxx.com.au/wsdl/someWebService");
         message.setProperty(SOAPMessage.CHARACTER_SET_ENCODING, "utf-8");
         SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
         envelope.addNamespaceDeclaration("n", "http://xxx/webService");
         envelope.addNamespaceDeclaration("xsd", "http://www.w3.org/2001/XMLSchema");
         envelope.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
         System.out.println("Adding the payload to the SOAP body.\n");
         SOAPBody body = message.getSOAPBody();
         SOAPBodyElement docElement = body.addDocument(doc);
         System.out.println("This is the SOAP message.\n");
         message.writeTo(System.out);
         System.out.println("\nPutting the payload on the wire.\n");
         SOAPConnectionFactory conFactry = SOAPConnectionFactory.newInstance();
         SOAPConnection connection = conFactry.createConnection();          
         URL endpoint = new URL("http://localhost:9080/xxx/services/yyy-webservices");
         SOAPMessage response = connection.call(message, endpoint);
         System.out.println("Payload sent. Closing the connection.\n");
         connection.close();

  • Fan is alway running on my new dv7-4290us. Should I exchange for a new one or is this normal?

    I just got my new dv7-4290us from the HP store and after a little while of playing with it, I noticed that the fan seems to always be running. It's not spinning very fast, just kind of a soft blowing or purring sound but audible for sure. Is this normal for this notebook or notebooks with quad cores and dedicated graphics? I called HP tech support and asked them if it was normal for the fan to run all the time, but they where kind of clueless with, 3 different guys giving me 3 different answers. I did mess around with some power management settings and the HP Thermal program but that didn't help. Turning off the fan always on setting in the bios just causes the fan to blow up every 20 seconds, so that is not a solution. There wasn't a bios update on the driver page, so I don't know about that as a fix. Otherwise everything seems to be functioning properly with no BSOD or lockups so far.  The computer doesn't seem to be running hot (core temps stay under 50°c under light load) and the fan doesn't sound unhealthy like it has a bad bearing or anything. I just want to know if the fan always running at a low speed thing is normal on these machines. From my expereince with notebooks the fan alway running is a sign that your system is not cooling properly, so I wanted to get a second opinion from fellow users before I go through the hastle of exchanging this for a new one.

    Does this happen on AC power only?  There maybe an option in BIOS for 'Fan always on while on AC power'.
    ________________________________________________________________________________________________________ I Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly

  • Test sample for encrypted message?

    Hi, there. I have created a client/server program with the sslscoket and sslserversocket, using the keystore and truststore and the self-signed certificate. Now I can send a message from the client and receive the message in the server side using the socket's outputstream and inputstream.
    Now my question is if there is a way (or test program) that can tell the message is indeed encrypted in the client side and it is decrypted in the server side. Better to have some actual output from the test sample, rather than explaining the theory from the JSSE document.
    Thanks

    Thanks so much. I can actually see it encrypted now.
    But, i still have something not clear. I saw the program was using the cipher suite of "SSL_RSA_WITH_RC4_128_MD5", and it added 16 bytes at the end of my message and 5 bytes at the beginning of the message.
    Do you know what the 16 bytes and 5 bytes stand for?

  • Can we capture HTTP response for async message without BPM?

    We are in the process of migrating an XI 2.0 scenario to XI 3.0.
    The scenario is as follows in XI 2.0 - SAP sends an IDoc to XI which is mapped to an HTTP request and sent to an endpoint.  The HTTP response is captured and shown in SXMB_MONI.
    When we migrate this scenario to XI 3.0, we do not see the HTTP response in MONI.  It looks like since the incoming message (IDoc) is triggering an asynchronous message flow, the HTTP receiver is ignoring the HTTP response payload if it sees a 200 OK status code.  Ideally, we would like for the HTTP response to be captured in MONI just as in XI 2.0.
    Is there a way to capture the HTTP response without using a BPM to make the HTTP synchronous call?  It appears that there is nothing in the HTTP receiver communication channel that we can change (to change it from asynchronous to synchronous).
    Thanks for your help,
    Jay Malla
    SAP XI Consultant
    Licensed To Code

    It looks like the problem I am having might be due to a bug in SP15.  It looks like i should see the HTTP response in MONI by default.  Some other people had this problem with SP 15.  Here is the posting:
    Re: SXMB_MONI does not show payload after upgrade to SP15
    Regards,
    Jay

  • Upon activating my Siri button, I get an unbearable screeching sound.  I already turned in my old ipad under warranty for a new one because of this same problem.  Now the newest one is doing the same thing.  Anyone else out there experiencing this?

    I'm wondering whether or not to get yet another warranty exchange for my ipad 3 over this horrible screeching sound associated with the home button.  I was told at the Apple Store by the technician that he had never heard of this problem before and they gave me a new one.  Now a few weeks later the new one is doing the same thing.  Anyone else having this problem?

    Try going to Settings > General > Siri and turn off Siri.  Now try to activate Siri with the home button and you should get the voice command system (similar to Siri).  Does it screech?
    Next, go back and turn on Siri.  Then back up your iPad to iTunes or iCloud.
    Go to Settings > General > Reset > Reset All Settings.  Does Siri still screech?
    Lastly, Go to Settings > General > Reset > Erase All Content & Settings.  When the Set up screens show up, choose 'Set up as new..." and skip everything you want to.  Test Siri again and see if it screeches.
    If it does not screech when set up as new, then you may have something corrupt going on in your backup.  You can restore form your backup and see if the issue returns.  If it does, then go back and set it up as new again and maually set up your accounts and apps again.
    If the issue continues even when set up as new, go back to the Apple Store.

  • Mail uses wrong certificate for encrypting S/MIME messages

    Encrypted email I send using Mail Version 4.2 (1077) under OS X 10.6.2 to my work account cannot be decrypted. It appears that Mail is using the signing certificate, rather than the encryption certificate, to encrypt the email.
    The internal Certificate Authority at my employer has issued two certificates to me: A signing and an encryption certificate. Both certificates are properly stored in my keychain.
    The encryption certificate carries a 0x20 in the key usage field to designate the certificate to be used for encipherment purposes. The signing certificate carries a 0x80 in the key usage field to designate the certificate to be used for digital signatures.
    I understand that the S/MIME standard stipulates that for encrypting messages, the certificate with 0x20 in the key usage field should be used by the mail application.
    However, messages I sent are encrypted using the signing certificate (0x80 in the key usage field) and therefore cannot be decrypted on the receiving end. I examined the encrypted email using an [application|http://www.eriugena.org/blog/?p=57] to extract the serial number of the certificate used for encryption.
    We are using Outlook 2003 as our mail application at work.
    Has anybody ever come across this problem? Am I missing something - is there a way to tell Mail what certificate to use for encryption?
    Thanks,
    -Michael.

    I'm have a problem that sounds related.
    Both my wife and I created self signed mail certificates, and sent email to each other and trusted each others certificates. We were then able to send encrypted emails back and forth and our emails showed up as having trusted digital signatures.
    Then, we both purchased Verisign email certificates, and installed them in our keychains, deleting the old self-signed certificates, and repeated the process of establishing a chain of trust.
    This worked fine for me running Snow Leopard but did not work for her on Leopard. Her emails to me appear to be signed by both the old self-signed certificate and to include the new verisign certificate. Looking at the message source there is only one application/pkcs7-signature block, but in the UI it is showing both certificates.
    I don't understand how the self-signed certificate is showing up at all, since it has been deleted from her keychain.

  • Development class for message class

    can you tell me the development class for sap message classes?
    is there any table where the message classes are stored.
    Thanks

    If you are asking the table where messages are stored , it is T100.
    Development class for message class is project specific. You need to check that.

  • How to change RSAPublicKeySpec to Key for encrypt?

    I have RSAPublicKeySpec and I want to encrypt message with this key.
    How to change RSAPublicKeySpec to Key for encrypt message?

    I try to do this
    try {
    kf = KeyFactory.getInstance("RSA");
    pk = kf.generatePublic(pubCard);
    catch (NoSuchAlgorithmException ex4) { System.out.println("1");
    catch (InvalidKeySpecException ex4) { System.out.println("2");
    try {
    Cipher cipher = Cipher.getInstance("RSA");
    try {
    cipher.init(Cipher.ENCRYPT_MODE, pk);
    catch (InvalidKeyException ex2) { System.out.println("a");
    try {
    ticket = cipher.doFinal(mes.getBytes());
    catch (IllegalStateException ex3) {System.out.println("b");
    catch (IllegalBlockSizeException ex3) {System.out.println("c");
    catch (BadPaddingException ex3) {System.out.println("e");
    catch (NoSuchAlgorithmException ex1) {System.out.println("f");
    catch (NoSuchPaddingException ex1) {System.out.println("g");
    It cougth exception that "NoSuchAlgorithmException"
    What wrong with line
    Cipher cipher = Cipher.getInstance("RSA");
    please tell me

  • I am being billed for premium messaging and I've never used it.

    I received my verizon bill last month. Noted I was charged $19.98 for premium messaging under Data. This showed up on my statement for my one phone - 989-600-7940.  I've never used premium messaging for data on any of my phones. I want my bill adjusted.

    vtx1800sba wrote:
    I received my verizon bill last month. Noted I was charged $19.98 for premium messaging under Data. This showed up on my statement for my one phone.  I've never used premium messaging for data on any of my phones. I want my bill adjusted.
    Welcome to the community, vtx1800sba!
    Thank you for making us aware of potential billing errors. Please be cautious about posting your cell phone number here or anywhere online. (To protect yourself and the billing on your account). 
    Let me add to what the community posted by explaining that a premium SMS is a premium message service above the standard texting on your plan.  It allows special daily/weekly/monthly services, whether it be horoscopes, ringtones, jokes-of-the-day, reality television voting, etc. 
    If this issue has not already been addressed please PM me your name and contact number so I can help in resolving this issue.
    Thank you again!

  • How to find classtype and class for a material.

    Hi,
    How to find classtype and class for a material.
    which table contains this data.
    Thanks
    Kiran

    Hi Kiran,
    Check below sample code. Use this BAPI which will give all info about the class for the material.
      DATA:      l_objectkey_imp    TYPE bapi1003_key-object
                                         VALUE IS INITIAL.
      CONSTANTS: lc_objecttable_imp TYPE bapi1003_key-objecttable
                                         VALUE 'MARA',
                 lc_classtype_imp   TYPE bapi1003_key-classtype
                                         VALUE '001',
                 lc_freight_class   TYPE bapi1003_alloc_list-classnum
                                         VALUE 'FREIGHT_CLASS',
                 lc_e               TYPE bapiret2-type VALUE 'E',
                 lc_p(1)            TYPE c             VALUE 'P',
                 lc_m(1)            TYPE c             VALUE 'M'.
      SORT i_deliverydata BY vbeln posnr matnr.
      CLEAR wa_deliverydata.
      LOOP AT i_deliverydata INTO wa_deliverydata.
        REFRESH: i_alloclist[],
                 i_return[].
        CLEAR:   l_objectkey_imp.
        l_objectkey_imp = wa_deliverydata-matnr.
    *Get classes and characteristics
        CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
          EXPORTING
            objectkey_imp         = l_objectkey_imp
            objecttable_imp       = lc_objecttable_imp
            classtype_imp         = lc_classtype_imp
    *   READ_VALUATIONS       =
            keydate               = sy-datum
            language              = sy-langu
          TABLES
            alloclist             = i_alloclist
    *   ALLOCVALUESCHAR       =
    *   ALLOCVALUESCURR       =
    *   ALLOCVALUESNUM        =
            return                = i_return
    Thanks,
    Vinod.

Maybe you are looking for

  • Usb ports not working- Hp Pavillion dv6

    1. Product Name and Number     Hp Pavillion dv6-6124ca  2. Operating System installed (if applicable)      •Windows 7 64 bit/Ubuntu 12.04.1  3. Error message (if any)      • Usb device not recognized  4. Any changes made to your system before the iss

  • IPod Mini Synch Problem

    I have a mini with about 100 songs that I purchased from Apple. My original computer Hard Drive crashed and it is non-recovarable. I want to synch back from IPod to my new PC and it would not allow. In addition if I want to buy new songs I can not tr

  • I want to update my Adobepdf creator installed in my home pc with win7

    I want to update my Adobepdf creator installed in my home pc with win7

  • Please help with simple esle code

    Hi all Please can someone tell what I am doing Wrong with tis code. I just can not see it Please Help Me Craig void ShippAddressjCheckBox_actionPerformed(ActionEvent e) { if (ShippAddressjCheckBox.setSelected(true )); CopyAddress1(); else (ShippAddre

  • How to get hibernate annotations help in eclipse ide

    hi, i am trying to add hibernate annotations in my source code. eclipse provides a code-complete help provided that the correct jars are in the classpath. so this will result in typing "@hibernate." and at this point eclipse provides all the relevant