EDI - Digital Signature & Encryption (EDI-INT S/MIME)

Colleagues,
I need to transmit a formatted text file to a government agency using HTTP protocol (SMTP is not permitted) and for the life of me I cannot get this to work ... I can transmit fine but their server cannot decrypt my files. I must use multipart/signed with a syntax similar to this:
Content-type: multipart/signed;
protocol="application/pkcs7-signature";
micalg=<hash symbol>;
boundary="---------------------------9723347566394"
---------------------------9723347566394
Content-Type: Application/edi-consent
+<Formatted Text File/Object>+
-----------------------------9723347566394
Content-Type: application/pkcs7-signature
Cryptographic signature of EDI Object and associated headers+
-----------------------------9723347566394--
I need to digitally sign the Format Text/Object with PKCS#7 and put the output of that in the section of "*Cryptographic signature of EDI Object and associated headers*". How can I do that? Digitally Sign the file and then open it in a text editor and cut and paste the ASCII text?
Once I populate "*Cryptographic signature of EDI Object and associated headers*", I am then suppose the encrypt the whole file (headers and message body parts one & two) and then send it off via HTTP .
Can anyone point me to a working example of this? Or shed some light on how to accomplish this. The technical document that they gave me is useless.
Thanks in advance

yvrMarc wrote:
Thanks for your reply ... here is the technical document - starting at page 30
[http://www.cbsa-asfc.gc.ca/eservices/cig-pid/cig-pid-eng.pdf]
Sorry but I can't help. Though I could be wrong, this looks to be far too big a task to be handled through a forum. I think you need to hire a local consultant who has dealt with this gateway before.
Since it contains a load of code to help with SMIME and PKCS7, a resource that might be useful to you is [http://www.bouncycastle.org/|http://www.bouncycastle.org/].
Best of luck.

Similar Messages

  • How to go about Digital Signature/Encryption for Purchase Orders

    Hi
    We would like to send the Purchase Orders through E-Mail to suppliers in SAP. As per our legal department recommendations, we must implement the digital signature/Encryption mechanism in SAP prior to send the PO's through email.
    I have no knowledge about available features, configuration requirements in SAP and required decryption machanism from Supplier side.
    Appreciate, if you could share your expertise on the above requirements.
    System details:
    SAP : 4.7 (MySAP ERP)
    WAS: 6:20 (Netweaver 2003 Oct)
    Regards
    Kumar

    Guess these documents will be very helpfull..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/55ba9790-0201-0010-aa98-ce8f51ea93cd
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7f52fd28-0b01-0010-afb0-cc70884fa369
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a09f3d8e-d478-2910-9eb8-caa6516dd7d9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1c51c590-0201-0010-ffbc-b2bef1c57385
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1c51c590-0201-0010-ffbc-b2bef1c57385
    Reward points if found helpfull.........

  • Digital Signature & Encryption of an output file

    Hi to all,
    I have the following requirement:
    I need to digitally sign and encrypt a file generated by SAP. The receiver needs that the digital sign has been made with SHA1withRSA algorithms and the envelope with PKCS#7.
    I read many articles about it, but still have a lot of doubts on what really I'm needing to perform the requirement. I already read all the threads in SDN.
    My client gave me a .cer file.
    I try to run the program SSF01, but i don't know how i have to use it.
    My questions are:
    1.- Do any have an example of the utilization of function's modules (function group SSFG)?
    2.- How do i have to use the .cer file? Do I have to run transaction STRUST?
    3.- Who must give me the public and private key?
    Many thanks to all, any help or comment will be apreciated.
    Regards,
    Andrew83.
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Nov 16, 2010 10:29 AM

    Taking up the requirement again (I had to resolved some production issues), I return to perform the test programs to get encrypted and digitally signed.
    I'll comment you the news, so finally I'll can give thanks to whom corresponds. I would be glad, if i could mark this thread as "Answered" at the end.
    Regards,
    News:
    OK, now I'm stuck. I'll give you a list of all the things (files, keys, certificates...) I have, and what I need to do.
    Version of SAP 4.7 with SAP_BASIS and SAP_ABA Release 620.
    Requirement:
    1.- Sign an output file for payments with SHA1withRSA.
    2.- Envelope with PKCS#7.
    3.- This must be done in background mode, so the user doesn't interact with the signing. So I need to perform this in the application server. The problematic of including this on an exit, it's not a big deal, so i only wanted to create some test programs in the first place. 
    The customer gave to me in order to perform this, the followings files:
    1.- File "AAAA.cer" from the receiver, in order to envelope the output file. This I think is the public key of the receiver.
    2.- Files "BBBB.crt", "BBBB.key" and "CCCC.pem" from the customer,
    in order to sign the output file. This seems to be the private key of the customer.
    Now, the questions I have are:
    1.- Is there anything missing to perform the encrypt and the file signing?
    2.- Do I have to use STRUST,  and How? I have already used it, but i think that in the wrong way. Do I have to create 2 PSE files, one for the signing and another for the encrypting?
    3.- I read the help.sap, and found in some cases that the SAPSECULIB only works for signing, and not for encrypting. To Encrypt, do I need to install SAP Cryptographic Library?
    4.- I cannot run report SSF01 succesfully.
    5.- Do I Have to create a SSF Profile?
    I'll really appreciate your help. I have been working with abap, since 2005, but this is driving me crazy.
    Merry christmas for everyone who read my threads!
    Regards,
    Andrew83.
    Edited by: Andrew83 on Dec 21, 2010 10:12 PM
    Edited by: Andrew83 on Dec 21, 2010 10:21 PM

  • Digital Signature & Encryption for PDF

    Irrelevant Links. Please provide answer specific to question asked.
    Edited by: Bhavesh Kantilal on Feb 27, 2009 3:56 AM

    Hi,
    If the pdf documents have already been taken care by ABAP then let abap only take care of digitally signing it. Because i once a had a requirement of having to generate pdf as an output of XI and that involved ADS configuration and installation of sap self extractor for MFC application.Big headache...
    Digital signing and encryption of files from ABAP
    http://help.sap.com/saphelp_erp2004/helpdata/en/53/251a355d0c4d78e10000009b38f83b/frameset.htm
    Rgds
    joel

  • Encrypting a digital signature

    Hi,
    I have a problem, I'm trying to encrypt a digital signature (SHA1withRSA) using symmetric encryption (Rijndael). But when I decrypt the signature bytes and verify the signature I get the message that the signature is not ok, even though I know it is.
    Does anybody know what's the problem?

    Hi floersh
    Thanks for answering.
    I'm sending you the code which I use, the functions and the main method.
    Please, if you have the time give it a look.
    Running the code I noticed that :
    1) The message digest is 20-bytes long
    2) The signature is 128-bytes long
    3) The encrypted signature is 32-bytes long
    4) The decrypted ciphertext (signature) is 16-bytes long
    And I also noticed that the decrypted signature bytes are the same with the 16 last bytes of the original signature.
    As you can see I'm using SHA1withRSA to create and verify the signature, where the public and private keys are 1024-bits long, and the Rijdael (192-bits key)cipher, with CBC and PKCS5Padding, for symmetric encryption and decryption. I have also tried to use Rijndael with ECB and PKCS5Padding and still doesn't work, and Rijndael with ECB and NoPadding where I get a BadPadding exception.
    I look forward for your reply.
    public static void generateAndLockKeys(String publicKeyFilename,String privateKeyFilename) throws Exception{
    KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");
    keyPairGenerator.initialize(1024);
    KeyPair keyPair = keyPairGenerator.genKeyPair();
    byte[] publicKeyBytes = keyPair.getPublic().getEncoded();
    FileOutputStream fos = new FileOutputStream(publicKeyFilename);
    fos.write(publicKeyBytes);
    fos.close();
    byte[] privateKeyBytes = keyPair.getPrivate().getEncoded();
    fos = new FileOutputStream(privateKeyFilename);
    fos.write(privateKeyBytes);
    fos.close();
    public static PrivateKey getPrivateKey(String privateKeyFilename, String password) throws Exception{
    FileInputStream fis = new FileInputStream(privateKeyFilename);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    int theByte = 0;
    while ((theByte = fis.read())!= -1)
    baos.write(theByte);
    fis.close();
    byte[] keyBytes = baos.toByteArray();
    baos.close();
    PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(keyBytes);
    KeyFactory keyFactory = KeyFactory.getInstance("RSA");
    PrivateKey privateKey = keyFactory.generatePrivate(keySpec);
    return privateKey;
    public static PublicKey getPublicKey( String publicKeyFilename) throws Exception{
    FileInputStream fis = new FileInputStream(publicKeyFilename);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    int theByte = 0;
    while ((theByte = fis.read())!= -1)
    baos.write(theByte);
    fis.close();
    byte[] keyBytes = baos.toByteArray();
    baos.close();
    X509EncodedKeySpec keySpec = new X509EncodedKeySpec(keyBytes);
    KeyFactory keyFactory = KeyFactory.getInstance("RSA");
    PublicKey publicKey = keyFactory.generatePublic(keySpec);
    return publicKey;
    public static boolean checkSignature( PublicKey publicKey, byte[] plaintext, byte[] signedtext) throws Exception{
    Signature signature = Signature.getInstance("SHA1withRSA");
    signature.initVerify(publicKey);
    signature.update(plaintext);
    boolean authorized = false;
    authorized = signature.verify(signedtext);
    return authorized;
    public static byte[] signWithSHAAndRSA(byte[] plaintext, PrivateKey privateKey) throws Exception{
    Signature signature = Signature.getInstance("SHA1withRSA");
    signature.initSign(privateKey);
    signature.update(plaintext);
    byte[] signedBytes = signature.sign();
    return signedBytes;
    public static byte[] encryptWithAES(byte[] plaintext, Key key, byte[] iv) throws Exception{
    Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
    IvParameterSpec spec = new IvParameterSpec(iv);
    cipher.init(Cipher.ENCRYPT_MODE, key,spec);
    cipher.update(plaintext);
    byte[] ciphertext = cipher.doFinal();
    return ciphertext;
    public static byte[] decryptWithAESKey (Key AESKey, byte[] ciphertext, byte[] iv) throws Exception{
    Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
    IvParameterSpec spec = new IvParameterSpec(iv);
    cipher.init(Cipher.DECRYPT_MODE,AESKey,spec);
    byte[] decryptedText = cipher.doFinal(ciphertext);
    return decryptedText;
    public static Key generateAESKey() throws Exception {
    KeyGenerator keyGenerator = KeyGenerator.getInstance("AES");
    keyGenerator.init(192);
    Key key = keyGenerator.generateKey();
    return key;
    public static byte[] initAndReturnIV(){
    SecureRandom random = new SecureRandom();
    byte[] iv = new byte[16];
    random.nextBytes(iv);
    return iv;
    public static void main(String[] args) throws Exception{
    Security.addProvider(new BouncyCastleProvider());
    try {
    generateAndLockKeys(System.getProperty("user.dir") + System.getProperty("file.separator") +
    "PublicKey",System.getProperty("user.dir")
    + System.getProperty("file.separator") +"PrivateKey");
    } catch (Exception e) {}
    Key AESKey= generateAESKey();
    byte[] iv = initAndReturnIV();
    byte[] array2 = signWithSHAAndRSA("Hello".getBytes("UTF8"),getPrivateKey(System.getProperty("user.dir")
    + System.getProperty("file.separator") +"PrivateKey"));
    byte[] he = encryptWithAES(array2,AESKey,iv);
    byte[] hd = decryptWithAESKey(AESKey,he,iv);
    boolean ok = checkSignature(getPublicKey(System.getProperty("user.dir") + System.getProperty("file.separator") +
    "PublicKey"),"Hello".getBytes("UTF8"),hd);
    }

  • AS2 error: IP-51083:  General failure creating S/MIME digital signature

    Hello All,
    I am getting a failure when sending AS2 with encryption and digital signature. The certificates have been set up as follows:
    Signing and Encryption for Host : Store the certificate in both wallet and repository
    Signing and Encryption for TP : Store the certificate in repository.
    Looks like it it finding the key but looking for "alternateWrl: /apps6/orab2b/as10gt/product/1012/ip/config/wallet/wallet1". Not sure where this wallet1 comes from?
    Thanks.
    2009.06.24 at 15:41:21:471: Thread-40: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign Entering...
    2009.06.24 at 15:41:21:471: Thread-40: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign Sign using the configured certificate
    2009.06.24 at 15:41:21:471: Thread-40: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign wrl: /apps6/orab2b/as10gt/product/1012/ip/config/wallet
    2009.06.24 at 15:41:21:475: Thread-40: B2B - (DEBUG) Utility:getPrivateKey:Enter
    2009.06.24 at 15:41:21:503: Thread-40: B2B - (DEBUG) Utility:getPrivateKey:matching private key found
    2009.06.24 at 15:41:21:503: Thread-40: B2B - (DEBUG) Utility:getPrivateKey:Exit2009.06.24 at 15:41:21:503: Thread-40: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign alternateWrl: /apps6/orab2b/as10gt/product/1012/ip/config/wallet/wallet1
    2009.06.24 at 15:41:21:503: Thread-40: B2B - (DEBUG) Utility:getPrivateKey:Enter2009.06.24 at 15:41:21:504: Thread-40: B2B - (ERROR) java.lang.NullPointerException
    at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:990)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:426)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1807)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:296)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:121) at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1684)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:975)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:833)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
    at java.lang.Thread.run(Thread.java:534)
    2009.06.24 at 15:41:21:504: Thread-40: B2B - (ERROR) Error -: AIP-51083: General failure creating S/MIME digital signature: java.lang.NullPointerException
    at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:1083)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:426)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1807)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:296)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:121)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1684)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:975)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:833)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.NullPointerException
    at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:990)
    ... 10 more

    Hi Anuj,
    I moved the setup to production and I started to get the failures. I verified and re-verified the setup. It is same as in test. I deleted and re-did the setup. However, still failing. As can be seen from the message below the matching private key is found but the encryption/signature does not happen. Again this is outbound message from host to TP. Appreciate any help.
    Thanks.
    2009.08.24 at 11:20:11:555: Thread-22: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: setSignatureAlgorithm using algorithm name Leaving...2009.08.24 at 11:20:11:555: Thread-22: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: setDigestAlgorithm using algorithm name Entering...2009.08.24 at 11:20:11:555: Thread-22: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: setDigestAlgorithm using algorithm name Leaving...
    2009.08.24 at 11:20:11:555: Thread-22: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign Entering...2009.08.24 at 11:20:11:556: Thread-22: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign Sign using the configured certificate2009.08.24 at 11:20:11:556: Thread-22: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign wrl: /apps6/orab2b/as10gp/product/1012/Apache/Apache/conf/ssl.wlt/default
    2009.08.24 at 11:20:11:562: Thread-22: B2B - (DEBUG) Utility:getPrivateKey:Enter
    2009.08.24 at 11:20:11:595: Thread-22: B2B - (DEBUG) Utility:getPrivateKey:*matching private key found*
    2009.08.24 at 11:20:11:595: Thread-22: B2B - (DEBUG) Utility:getPrivateKey:Exit2009.08.24 at 11:20:11:595: Thread-22: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign alternateWrl: /apps6/orab2b/as10gp/product/1012/Apache/Apache/conf/ssl.wlt/default/wallet1
    2009.08.24 at 11:20:11:595: Thread-22: B2B - (DEBUG) Utility:getPrivateKey:Enter
    2009.08.24 at 11:20:11:599: Thread-22: B2B - (ERROR) java.lang.NullPointerException
    at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:990)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:426)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1807)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:296)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:121)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1684)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:975)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:833)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
    at java.lang.Thread.run(Thread.java:534)
    2009.08.24 at 11:20:11:600: Thread-22: B2B - (ERROR) Error -: AIP-51083: General failure creating S/MIME digital signature: java.lang.NullPointerException
    at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:1083)

  • AIP-51083:  General failure creating S/MIME digital signature: Error

    I know you guys did answer to this kind of question in several threads. But my case is bit different. Please try to help me to resolve this issue.
    OS: AIX 5.3
    B2B: 10.1.2.2 (No Additions)
    I did encrypt the message using certificates (Host & Trading Partner) and send to Trading Partner and got the confirmation. So assuming there is no issue with wallet and certificates.
    But I am not able to sing the same message using same certificates.
    (I don’t have any issue with Host certificate, I can use it for host sing but I have issue with Trading Partner certificate)
    Here the error message. I really appreciate your help.
    <MSG_TEXT>Error -: AIP-51083: General failure creating S/MIME digital signature: Error -: AIP-51083: General failure creating S/MIME digital signature: java.lang.NullPointerException
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:434)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1699)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:262)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:110)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1165)
    at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:701)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:832)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:531)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java(Compiled Code))
    at java.lang.Thread.run(Thread.java:568)
    Caused by: Error -: AIP-51083: General failure creating S/MIME digital signature: java.lang.NullPointerException
    at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:1054)
    at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:392)
    ... 9 more
    Caused by: java.lang.NullPointerException
    at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:965)
    ... 10 more
    </MSG_TEXT>
    Thanks in Advance,
    Rama K

    Hi Anuj,
    Thanks for your good reply.
    I was doing same thing which you mentioned (Thats the reason encryption is working with same certificates, so there is no issue with wallet and certificates).
    in my log (debug mode) I did find some thing is interesting
    From the log,
    <MSG_TEXT>oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign alternateWrl: /oraaiad/B2BHome/Apache/Apache/conf/ssl.wlt/default/wallet1</MSG_TEXT>
    Log is looking for alternateWrl "/*default/wallet1*"
    But my wallet location which I mentioned in tip.props /oraaiad/B2BHome/Apache/Apache/conf/ssl.wlt/*default/wallet.txt*
    I know there is no location called "*wallet1*" thats the reason why it's throwing null pointer. But my questions is, why it's looking for alternateWrl? Here some of debug log.
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2009-09-04T21:56:50.336+00:00</TSTZ_ORIGINATING>
    <ORG_ID>oracle.com</ORG_ID>
    <COMPONENT_ID>B2B</COMPONENT_ID>
    <HOSTING_CLIENT_ID>beta</HOSTING_CLIENT_ID>
    <MSG_TYPE TYPE="UNKNOWN"></MSG_TYPE>
    <MSG_GROUP>B2B</MSG_GROUP>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>abc.abc.com</HOST_ID>
    <HOST_NWADDR>1.1.1.100</HOST_NWADDR>
    <MODULE_ID>B2B</MODULE_ID>
    <THREAD_ID>Thread-12</THREAD_ID>
    <USER_ID>oraaiad</USER_ID>
    </HEADER>
    <PAYLOAD>
    <MSG_TEXT>Utility:getPrivateKey:Exit</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2009-09-04T21:56:50.336+00:00</TSTZ_ORIGINATING>
    <ORG_ID>oracle.com</ORG_ID>
    <COMPONENT_ID>B2B</COMPONENT_ID>
    <HOSTING_CLIENT_ID>beta</HOSTING_CLIENT_ID>
    <MSG_TYPE TYPE="UNKNOWN"></MSG_TYPE>
    <MSG_GROUP>B2B</MSG_GROUP>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>abc.abc.com</HOST_ID>
    <HOST_NWADDR>1.1.1.100</HOST_NWADDR>
    <MODULE_ID>B2B</MODULE_ID>
    <THREAD_ID>Thread-12</THREAD_ID>
    <USER_ID>oraaiad</USER_ID>
    </HEADER>
    <PAYLOAD>
    <MSG_TEXT>oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign alternateWrl: /oraaiad/B2BHome/Apache/Apache/conf/ssl.wlt/default/wallet1</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2009-09-04T21:56:50.336+00:00</TSTZ_ORIGINATING>
    <ORG_ID>oracle.com</ORG_ID>
    <COMPONENT_ID>B2B</COMPONENT_ID>
    <HOSTING_CLIENT_ID>beta</HOSTING_CLIENT_ID>
    <MSG_TYPE TYPE="UNKNOWN"></MSG_TYPE>
    <MSG_GROUP>B2B</MSG_GROUP>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>abc.abc.com</HOST_ID>
    <HOST_NWADDR>1.1.1.100</HOST_NWADDR>
    <MODULE_ID>B2B</MODULE_ID>
    <THREAD_ID>Thread-12</THREAD_ID>
    <USER_ID>oraaiad</USER_ID>
    </HEADER>
    <PAYLOAD>
    <MSG_TEXT>Utility:getPrivateKey:Enter</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2009-09-04T21:56:50.506+00:00</TSTZ_ORIGINATING>
    <ORG_ID>oracle.com</ORG_ID>
    <COMPONENT_ID>B2B</COMPONENT_ID>
    <HOSTING_CLIENT_ID>beta</HOSTING_CLIENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_GROUP>B2B</MSG_GROUP>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>abc.abc.com</HOST_ID>
    <HOST_NWADDR>1.1.1.100</HOST_NWADDR>
    <MODULE_ID>B2B</MODULE_ID>
    <THREAD_ID>Thread-12</THREAD_ID>
    <USER_ID>oraaiad</USER_ID>
    </HEADER>
    <PAYLOAD>
    <MSG_TEXT>java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:984)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:416)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1734)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:286)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:118)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1602)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:900)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1082)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:697)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:373)
         at java.lang.Thread.run(Thread.java:568)
    </MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2009-09-04T21:56:50.506+00:00</TSTZ_ORIGINATING>
    <ORG_ID>oracle.com</ORG_ID>
    <COMPONENT_ID>B2B</COMPONENT_ID>
    <HOSTING_CLIENT_ID>beta</HOSTING_CLIENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_GROUP>B2B</MSG_GROUP>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>abc.abc.com</HOST_ID>
    <HOST_NWADDR>1.1.1.100</HOST_NWADDR>
    <MODULE_ID>B2B</MODULE_ID>
    <THREAD_ID>Thread-12</THREAD_ID>
    <USER_ID>oraaiad</USER_ID>
    </HEADER>
    <PAYLOAD>
    <MSG_TEXT>Error -: AIP-51083: General failure creating S/MIME digital signature: java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:1077)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:416)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1734)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:286)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:118)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1602)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:900)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1082)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:697)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:373)
         at java.lang.Thread.run(Thread.java:568)
    Caused by: java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:984)
         ... 10 more
    </MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2009-09-04T21:56:50.507+00:00</TSTZ_ORIGINATING>
    <ORG_ID>oracle.com</ORG_ID>
    <COMPONENT_ID>B2B</COMPONENT_ID>
    <MSG_ID>AIP-51083</MSG_ID>
    <HOSTING_CLIENT_ID>beta</HOSTING_CLIENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_GROUP>B2B</MSG_GROUP>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>abc.abc.com</HOST_ID>
    <HOST_NWADDR>1.1.1.100</HOST_NWADDR>
    <MODULE_ID>B2B</MODULE_ID>
    <THREAD_ID>Thread-12</THREAD_ID>
    <USER_ID>oraaiad</USER_ID>
    </HEADER>
    <PAYLOAD>
    <MSG_TEXT>Error -: AIP-51083: General failure creating S/MIME digital signature
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:458)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1734)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:286)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:118)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1602)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:900)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1082)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:697)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:373)
         at java.lang.Thread.run(Thread.java:568)
    </MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    Please share your idea/comments.
    I appreciate your help.
    Regards,
    Rama K

  • General failure creating S/MIME digital signature

    Hai Ramesh,
    I followed the following thread in setting up the certificates
    Tech Note :  Oracle AS B2B - Security configuration
    Delivery channel setup when General failure encrypting S/MIME message error occured
    Host DC :
    I selected host certificate for both encryption and Non-Rep in creating Host DC.
    Remote TP DC:
    I selected remote TP certificate for both encryption and Non-Rep in creating remote TP DC.
    Delivery channel setup when General failure creating S/MIME digital signature error
    Host DC :
    I selected host certificate for Encryption and remote TP certificate for Non-Rep in creating host DC.
    Remote TP DC:
    I selected remote TP certificate for Encryption and host certificate for Non-Rep in creating remote TP DC
    What is correct way to setup certificates?
    Regards
    Praveen

    Hai
    Yes I set password correctly...
    What I observed after going through logs was
    its looking for /SLOTS/slot06/oracle/AS_10gR2_MID/wallet1 but I set
    /SLOTS/slot06/oracle/AS_10gR2_MID/ewallet.p12
    Why its looking for non-existing file....?
    Now logs shows
    oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign Entering...
    2007.07.22 at 23:32:06:254: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign Sign using the configured certificate
    2007.07.22 at 23:32:06:255: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign wrl: /SLOTS/slot06/oracle/AS_10gR2_MID
    2007.07.22 at 23:32:06:260: Thread-10: B2B - (DEBUG) Utility:getPrivateKey:Enter
    2007.07.22 at 23:32:07:069: Thread-10: B2B - (DEBUG) Utility:getPrivateKey:matching private key found
    2007.07.22 at 23:32:07:069: Thread-10: B2B - (DEBUG) Utility:getPrivateKey:Exit
    2007.07.22 at 23:32:07:070: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging:SmimeSecureMessaging: sign alternateWrl: /SLOTS/slot06/oracle/AS_10gR2_MID/wallet1
    2007.07.22 at 23:32:07:070: Thread-10: B2B - (DEBUG) Utility:getPrivateKey:Enter
    2007.07.22 at 23:32:07:298: Thread-10: B2B - (ERROR) java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:984)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:392)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1699)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:262)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:110)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1195)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:712)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:855)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:655)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:353)
         at java.lang.Thread.run(Thread.java:595)
    2007.07.22 at 23:32:07:299: Thread-10: B2B - (ERROR) Error -: AIP-51083: General failure creating S/MIME digital signature: java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:1077)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:392)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1699)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:262)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:110)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1195)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:712)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:855)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:655)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:353)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:984)
         ... 10 more
    2007.07.22 at 23:32:07:300: Thread-10: B2B - (ERROR) Error -: AIP-51083: General failure creating S/MIME digital signature
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:434)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1699)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:262)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:110)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1195)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:712)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:855)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:655)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:353)
         at java.lang.Thread.run(Thread.java:595)
    2007.07.22 at 23:32:07:300: Thread-10: B2B - (ERROR) Error -: AIP-51083: General failure creating S/MIME digital signature: Error -: AIP-51083: General failure creating S/MIME digital signature: java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:434)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1699)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:262)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:110)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1195)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:712)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:855)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:655)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:353)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: Error -: AIP-51083: General failure creating S/MIME digital signature: java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:1077)
         at oracle.tip.adapter.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:392)
         ... 9 more
    Caused by: java.lang.NullPointerException
         at oracle.tip.adapter.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:984)
         ... 10 more
    2007.07.22 at 23:32:07:300: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processOutgoingMessage B2BDomainException
    2007.07.22 at 23:32:07:301: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleOutboundException Updating Error Message: Error -: AIP-51083: General failure creating S/MIME digital signature
    2007.07.22 at 23:32:07:301: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Enter
    2007.07.22 at 23:32:07:301: Thread-10: BusinessLogicLayer - (DEBUG) Authorization disabled. UserBootstrapped:false, useAuthorization:true, configType:Runtime
    2007.07.22 at 23:32:07:302: Thread-10: BusinessLogicLayer - (DEBUG) Push Stack: queryBusinessMessage
    2007.07.22 at 23:32:07:317: Thread-10: BusinessLogicLayer - (DEBUG) Pop Stack: queryBusinessMessage
    2007.07.22 at 23:32:07:318: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Wire message not found.
    2007.07.22 at 23:32:07:318: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Creating new b2berror object
    2007.07.22 at 23:32:07:319: Thread-10: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating business message error information

  • B2B General failure creating S/MIME digital signature.

    Hi,
    I am using Oracle SOA Suite 11.1.1.3 (PS2)
    When I am trying to send signed and encrypted messages to my remote trading partner following error occured
    B2B General failure creating S/MIME digital signature.
    Please help
    Thanks,
    Arun Jadhav

    Hi Nitesh,
    I am Using AS2 protocol with custom documents.
    I am using self signed certificates for sending messages.
    For sending AS2 messages we are using Host trading partner Private key and remote trading partner Public Key.
    When I process the message I am getting following error in Log file
    [2010-05-24T12:45:10.456-04:00] [soa_server1] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@278d45c] [userId: <anonymous>] [ecid: 0000IZBD1L87MAYVLqATOA1BxKEY000qZU,0] [APP: soa-infra] [dcid: 1f4ff32b1ffab628:30ee325c:128b6113365:-7ffd-0000000000001c4c] Error -: B2B-51083: General failure creating S/MIME digital signature.: Error -: B2B-51083: General failure creating S/MIME digital signature.: java.lang.NullPointerException[[
         at oracle.tip.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:496)
         at oracle.tip.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1843)
         at oracle.tip.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:328)
         at oracle.tip.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:166)
         at oracle.tip.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1397)
         at oracle.tip.b2b.msgproc.Request.outgoingRequest(Request.java:837)
         at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1411)
         at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:781)
         at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3319)
         at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:2948)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:575)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:214)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:105)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Caused by: Error -: B2B-51083: General failure creating S/MIME digital signature.: java.lang.NullPointerException
         at oracle.tip.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:715)
         at oracle.tip.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:466)
         ... 14 more
    Caused by: java.lang.NullPointerException
         at oracle.security.crypto.smime.SmimeMultipartSigned.addSignature(SmimeMultipartSigned.java:257)
         at oracle.tip.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:683)
         ... 15 more
    Error -: B2B-51083: General failure creating S/MIME digital signature.: java.lang.NullPointerException
         at oracle.tip.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:715)
         at oracle.tip.b2b.packaging.mime.MimePackaging.createSignedMimeBodyPart(MimePackaging.java:466)
         at oracle.tip.b2b.packaging.mime.MimePackaging.applySecurity(MimePackaging.java:1843)
         at oracle.tip.b2b.packaging.mime.MimePackaging.createMimeMessage(MimePackaging.java:328)
         at oracle.tip.b2b.packaging.mime.MimePackaging.pack(MimePackaging.java:166)
         at oracle.tip.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1397)
         at oracle.tip.b2b.msgproc.Request.outgoingRequest(Request.java:837)
         at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1411)
         at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:781)
         at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3319)
         at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:2948)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:575)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:214)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:105)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Caused by: java.lang.NullPointerException
         at oracle.security.crypto.smime.SmimeMultipartSigned.addSignature(SmimeMultipartSigned.java:257)
         at oracle.tip.b2b.packaging.SmimeSecureMessaging.sign(SmimeSecureMessaging.java:683)
         ... 15 more
    Thanks,
    Arun Jadhav

  • How to remove encryption in digital signature

    How to remove the encryption in the digital signatur
    I sign document and signature encrypt document hence not allowing future amendments.  How to remove encryption ??

    Thanks George for the help, I managed to create my own ID using your
    approach, Advanced > Security Settings > Digital IDs > add ID, but when I
    signed it with the PDF of my signature, it is showed as my name in Typing
    such as "XXX YY", instead of the handwritten form. I managed to use the
    same PDF of my signature (signed and converted to PDF) last week when I
    used the Pro 9, how can I attach my signature the same way in handwritten
    form instead of being convered to "XXX YY" and appears "digitally signed"
    Thanks again.

  • Java SSF for Digital Signatures and Document Encryption

    Hello,
    I have read in "SAP Help - Java Development Manual" that there is a Java SSF library for Digital Signatures and Document Encryption API.
    http://help.sap.com/saphelp_nw04s/helpdata/en/4f/65c3b32107964996a56e4165077e24/frameset.htm
    I am trying to develop an example application in NWDS using Interfaces/classes (ISsfData, SsfDataXml...), but NWDS does not find this classes in any library.
    I have searched for Javadocs in NWDS plugins directory and this classes and interfaces should be in JAR com.sap.security.api.jar, but they aren't there.
    Our WAS version is: NW04s WAS 7.0 SP11 and he have downloaded Java Crypto Library (IAIK) and also SAP XML Toolkit.
    Does anyone know how to find or obtain this library?
    Thanks in advance,
    Jorge Linares

    Hello Francesco,
    I want to  generate a digital signature (PKCS#7,XML) using SAP SSF API as explained in
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/65c3b32107964996a56e4165077e24/content.htm and in Amol Joshi's reply in
    Digital Signatures and Document Encryption api
    so my question  is From which PI/XI version and its SPS this SAP SSF LIBRARY is supported ?
    Kind Regards,
    Kubra fatima.

  • Digital Signatures and Encryption in Yosemite Mail

    After upgrading to Yosemite, I am having difficulty using the Mac Mail app to send digitally signed and encrypted email.
    Before the upgrade to Yosemite, I was able to send signed and encrypted emails using certificate/keys in my keychain using both the Mac Mail app and Microsoft Outlook 2011 for Mac.
    After upgrading, I am still able to send signed and encrypted message in Outlook, but the Mac Mail app gives the following error when I attempt to send a signed email:
    'You don’t have a trusted certificate in your keychain that matches the email address “XXXX@XXXX”. Without a certificate, you can’t sign messages sent from this address.'   (Actual name replaced)
    When I look at my certificates in my keychain, a certificate is available with "Usage: Digital Signature" that has the email address from the error message "XXXX@XXXX" with exact case in the RFC 822 Name.
    Another interesting piece of data that might help track this down is that when I first launch the Mac Mail application, the Mac Mail application is able to successfully decrypt emails that have been previously sent encrypted to me.  HOWEVER, after I attempt to send an email and get the "You don’t have a trusted certificate..." error message, these emails are no longer able to be decrypted.  I get the "Unable to decrypt message" header above the message and the content of the message is just a "smime.p7m".  If I close the mail application and restart it, these encrypted message are once again decrypt-able until I attempt to send a message.
    It almost seems like things are working until mail tries to access the keychain.
    I have attempted to delete my certificate and keys from my keychain and then adding those items again.
    I have attempted to close the mail application and reopen it.
    I have attempted to reboot my computer.

    1.  I want to confirm that this is still an issue for me in 10.10.1 and mail Version 8.1 (1993)
    2.  I have another data point.
    At my office I have wired networking and wireless networking available.  Primarily I utilize the wired networking for access to network drives, etc.
    When using the wired networking, I experience all the problems that have been catalogued in this thread.  Can't sign, can't encrypt, can't close the compose window after the mail program fails to find my certificate.
    However, when I switch to wireless networking before starting the mail application, digital signatures and encryption seem to work!  This is pretty weird behavior.  Make sure to restart mail if you were previously wired.
    Here are some theories:
    Something to do with OCSP?  When I am wired vs wireless I am on different ip subnets and subject to different firewall rule sets.  Perhaps OCSP is trying to determine the status of the certificate and failing? 
    Here are some things I have tested:
    I switched to a different official apple brand thunderbolt to ethernet adapter with no change in behavior
    I disabled wireless and disconnected my wired network.  So no network access at all.  Signatures and encryption work!  The message obviously does not send, but it appears in my outbox and I don't get the signature error.  When I reconnect my wired cable, the message sends successfully and appears as encrypted in my sent folder!
    I have attempted to disable OCSP by using "Keychain Access --> Preferences --> Certificates Tab --> OCSP (OFF) and CRL (OFF)" but this hasn't made a difference in the behavior of wired networking.
    Ran a TCPDUMP on traffic to the OCSP service but didn't see any traffic when I attempted to send a message and received the signature error
    I am pretty stumped on this.  This is very odd behavior
    Does anyone else experience this behavior?

  • Digital Signatures and Encryption

    I recently attended the webinar on Web Services interoperability w/ .NET. The
    presenter mentioned that digital signatures and encryption did not work w/ Workshop
    8.1. Is it fixed in 8.1 SP2? Also, are there any interoperability issues w/
    .NET and Workshop using digital signatures and encryption.

    Hi Amber,
    The work is based on the finalization and imminent publication of the
    wsse Oasis spec. This is targeted for WLS 8.1 SP3, and you can contact
    our outstanding support organization, reference CR134931, for details.
    Regards,
    Bruce
    Amber Osterman wrote:
    >
    I recently attended the webinar on Web Services interoperability w/ .NET. The
    presenter mentioned that digital signatures and encryption did not work w/ Workshop
    8.1. Is it fixed in 8.1 SP2? Also, are there any interoperability issues w/
    NET and Workshop using digital signatures and encryption.

  • Digital Signatures and Document Encryption api

    Hello Expert,
    From which SAP NETWEAVER 7.0 SPS  Digital Signatures and Document Encryption api  is supported ?
    I found  Javadocs for  SAP NetWeaver 04 SPS15.Is this api supported from SPS 15  or prior to SPS 15   also?
    Regards,
    Kubra Fatima.

    Hello Francesco,
    I want to  generate a digital signature (PKCS#7,XML) using SAP SSF API as explained in
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/65c3b32107964996a56e4165077e24/content.htm and in Amol Joshi's reply in
    Digital Signatures and Document Encryption api
    so my question  is From which PI/XI version and its SPS this SAP SSF LIBRARY is supported ?
    Kind Regards,
    Kubra fatima.

  • Outlook 2013 won't auto-save emails if encryption or digital signature is enabled.

    In Outlook 2013, I recently noticed that although I have Autosave enabled, I never get drafts autosaved. The option is located in File > Options > Mail > "Save Messages" section > "[ ] Automatically save items that have not been
    sent after this many minutes [3]."
    Experimenting with why I have lost 2 long emails after system crashes, I discovered that Outlook 2013 will
    only automatically save emails if the Encrypt and Sign buttons are turned off. By default, I enable both in our corporate environment. So I never benefit from auto-save. I've changed the Autosave location and tested various other settings to
    no avail. But Autosave always works fine if there's no digital signature or encryption enabled.
    Has anyone else encountered this? Is this a bug?

    Hi,
    I just tested on my Outlook 2013 and experienced exactly the same.
    This is pretty much by design, actually you may find you are even unable to manually save these emails as drafts if encryption or digital signature is enabled.  I can also confirm some email service providers don't allow saving Encrypted Emails
    as drafts either, so this is not a bug but how it works in Outlook.
    Regards,
    Melon Chen
    TechNet Community Support

Maybe you are looking for

  • Mac wifi really, really slow after 10.9.4 update

    Hi, So the other day I updated my MacBook Pro (2.5 GHz Intel Core i5) to Version 10.9.4. Everything worked fine that evening, then I packed up my mac and drove all day home. Then when I got home my wifi was being ridiculously slow, almost as if I was

  • Website performance

    I have been a GTE/Verizon customer for 16 years, and now I'm seriously considering changing to another carrier. The reason is the atricious performance of the Verizon Wireless website. As a developer of highly scalable web applications, I am appalled

  • Selecting one dimension of a two dimension array?

    hi, i want to select only one dimension of an array and put it into an arraylist (or casting the array verbatim into the arraylist) for example, here is an two dimension array: Object[][] data =      {  { new Date(), "A", new Integer(1), Boolean.TRUE

  • I cannot update my plug ins and adobe flash has now crashed

    i cannot update my plugins and adobe flash has now crashed. whenever i go to plugin check page the list of plugins does not load. it does not load any plugins and does not load any 'update' button. how can i update my plugins if firefox wont load the

  • Version 16.0.1 is not refreshing pages

    I have noticed recently that version 16.0.1 is no longer refreshing pages. This problem is not exhibited in IE, Chrome, Opera, or Safari. I notice it especially because I do website development and change the pages frequently and they don't show up a