PGP Encryption Public Key

Hi Experts,
I searched a lot in forums but did not find the suitable answer for my query. Could you please help?
We have an interface (IDoc to File) with a financial entity. When sending out the files from PI, those are first encrypted with PGP utility in UNIX by executing UNIX command from PI channel. I want to find the public key which is used for decryption of these files and send it to the financial entity which is receiving these files.
Can you please let me know where the public key is available and how can I download and use it? How can I convert it to the text format if it is in some other format?
Thanks and Regards,
Dhawal

I think I answered my own problem. I have multiple jdks and/or jres installed and I had placed the Unlimited Strength Policy files under the wrong jre than the one I was using for this project.

Similar Messages

  • Encrypt/Decrypt data, multiple public keys using Bouncy castle api?

    Hi all.
    I need to implement encrypt/decrypt functionality of some data with many public keys using bouncy castle api and EnvelopedData class in java 1.4 SE.
    Could someone give me examples how to do it. I searched whole the internet and i could not find simple example.

    Hi thanks very much.
    I had a quick look at the examples. I will see if they could help me.
    Here is more specific what i want:
    Encrypt data with multiple public keys that are kept in .pkcs12 file.
    And decrypt the data using coresponding private key after that.
    I must use bouncy castle api for java 1.4 se.
    Best regards
    Edited by: menchev on Nov 13, 2008 8:26 AM

  • Encrypting a vote with a servers public key...HELP!

    Hey, I really need some help( online voting application)....what I want to do it allow a voter to be able to submit a ballot(vote) via servlets, they encrypt the ballot with the servers public key and then the ballot is stored in a database, where at another time the administrator may decrypt the ballot(s) using the servers private key. I have already sorted the voters authentication(MD5), and at the moment the servlet submits the ballot in an unencrypted form....so I just need a little help from here. I enclose my code and I would be truly grateful of someone could give me a hand.
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.* ;
    public class CastVote extends HttpServlet{
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException,IOException{
    try {
    String jmulligan= request.getParameter("jmulligan");
    String pkelly=request.getParameter("pkelly");
    String mjones=request.getParameter("mjones");
    response.setContentType("text/html");
    PrintWriter out=response.getWriter();
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection ("jdbc:odbc:evoting");
    Statement stmt = con.createStatement();
    stmt.executeUpdate(
    "INSERT INTO Ballot (JMulligan, PKelly, MJones)"
    + "VALUES ('"+jmulligan+"','"+pkelly+"','"+mjones+"') ");
    stmt.close();
    out.println("<HTML>\n"+
    "<HEAD><TITLE>EVoting</TITLE></HEAD>\n"+
    "<BODY BGCOLOR=\"127734\">\n"+
    "<H1>Your Ballot has been entered as follows</H1>\n"+
    "<H1>J Mulligan got "+ jmulligan +"</H1>\n"+
    "<H1> M Jones got "+ mjones +"</H1>\n"+
    "<H1> P Kelly got "+ pkelly +"</H1>\n"+
    "</BODY></HTML>");
    catch( Exception e ) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    thanks
    Jacinta
    PS I have ssl configured, with a self signed cert.

    Hey!
    I am also in the middle of doing an en=voting application as part of my thesis! Its interesting to see the way other people do the voting. Well, my experience so far is that I cannot get public/private key encryption to work. I have posted many topics on this forum regarding it and the reason it wont work is that the ballot that I am trying to enctypt is too large for the ballot object . I used the RSA algoithm and it wasn't able to handle my large object. So instead I have just used a symmetric algorithm and that works fine. I think its the DES algorithm. The only problem with this is that you are using the same key to encrypt and decrypt the ballot. I dont think this is secure. It has been reccomended to me that I use this symmetric algorithm as it is, but that I then use public/private key to encrypt the symmetric key! I still have a problem with this because if the key is still encrypted with public key, the user must have acces to the private key to decrypt the symmetric key to decryt the ballot. See where I'm going?
    I would love to know of an asymmetric algorithm that can encrypt large objects. That would solve the whole security issue. I will post a replyhere if I find out the answer.
    By the way, how is your project going?
    All the best,
    Chris Moltisanti

  • Public Key Encryption

    Hi guys,
    I have to sign some data (a byte array) using a Public Key.
    How can I do that?
    (I know it's a bit strange..but I have to do this....)
    Thanks a lot...bye!!

    What you're really asking for is to do something with the data that only the owner of the Private Key can use. What you should be looking at is encryption with the Public Key and not Signing with the Public Key. You will find many examples on this forum, in the JCE web-pages at Sun and in David Hook's Book "Beginning Cryptography in Java".

  • Public key encrypt/decrypt app

    Hi all,
    Does anyone know of a public key encrypt/decrypt ipad app (IOS5).  I use gpgtools on the imac (lion 7.2) and put spreadsheets, docs, and the like into dropbox.  I have the dropbox app on the ipad.  It opens non-encrypted files just fine; however, if they are encrypted - no soap. I need something that works with dropbox, or provides a dropbox-like repository.
    Searching the store gives me a couple of email encrypters but nothing for files. 
    Many thanks for any help,
    Best,

    By how much is the file size increasing? Depending on how you do the actual encryption, it can easily grow a bit due to varying headers and some padding, but it shouldn't be a significant part of the file size if the file is reasonably big.
    If, however, the file size grows by some significant factor (say your output is 2 time the size of the input), then there is some problem that you should look into.

  • Public key encryption algorithm for files

    Is there a public key algorithm
    good for encrypting files (large ones)
    or should I stick to secret
    keys for that?
    Thanks.

    There is no good way to encrypt larga data amounts using public key.
    The way to do this is to generate a random key for a symetric algorithm (like DES), encrypt the file with tis file, cipher the symetric key with the asymetric key and append the result to the ciphered file.
    Good luck

  • How to send Encrypted message using public key in Business Service

    Hi,
    I have one public key (abc.cer) which is given by provider. I have to send encrypted message to Provider using public key. How to achieve it in OSB??
    Thanx
    Edited by: Vinit Ahuja on Jun 16, 2011 3:17 AM

    These are the steps needed to accomplish this:
    1. Import the public certificate in the TrustStore of the OSB Weblogic Server.
    2. Export the public certificate in PEM format. (This will be needed to embed in the custom ws policy)
    3. Create a custom WS policy, with the necessary encryption configuration information. I have placed a sample WS - Policy that I have used @ http://dl.dropbox.com/u/19901533/Sample_Custom_WSPolicy_Encryption.doc for your reference.
    Use a unique value for the wsu:Id in the policy.
    4. Apply this custom policy on the business service in the Request section (assuming you only need to encrypt the request fields)
    5. Activate the changes and then test the business service. You can enable tracing on the BS to validate the encrypted content in the logs.
    Hope this helps.
    Thanks,
    Patrick

  • Looking for "PDF Public-Key Digital Signature and Encryption Specification"

    Hi,
    i am looking for the following ("old") document:
    PDF Public-Key Digital Signature and Encryption Specification
    Originally i could be found here:
    http://partners.adobe.com/asn/developer/acrosdk/DOCS/ppk_pdfspec.pdf
    But not anymore. Does somebody of you still have it? Adobe today just offers the latest documents but i specifically need that older version.
    Or is there an archive i don't know of?
    Thanks for your help,
    ToM

    You can read the PDF 1.5 specification OR even ISO 32000-1 itself for that information. Each feature is "tagged" with the specific version in which it was introduced.
    Digital Signatures were first introduced in Acrobat 4 (PDF 1.3) and have seen various improvements which each version since.

  • Encrypt data with public key?

    I am trying to find a class that support encryption with PublicKey.
    In the class Signature there is a method "initSign" that takes a PrivateKey as argument, but that is used for signing certificates.
    What I am looking for is to make A encrypt some data with B' public key that B can decrypt with its private key...is there any class for this scenario?

    You might want to check out these, if you haven't already:
    http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html
    http://java.sun.com/j2se/1.5.0/docs/guide/security/jce/JCERefGuide.html
    http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/package-summary.html
    http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/interfaces/package-summary.html
    http://java.sun.com/j2se/1.5.0/docs/api/javax/crypto/spec/package-summary.html

  • Where do I find the public key for PGP verification

    Where is the PGP pubic key for firefox file verification ?

    Confirm what is the signing name of the public key?
    Confirm which of the sign files shasum1.asc or shasum256.asc should be used ?
    Shasum1 key value is
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.14 (GNU/Linux)
    iQIcBAABAgAGBQJUq8UhAAoJEAV8w+sVoKS8aTIP/Al30xRFgL7NKbnANzavK/Cm
    YviQUkJHdux2PeBSyWgwGjb3skiQRPpKEOzZ0+Jv2zmI/9BpupCYPIkLFq0D9d+6
    kEnC+nFezVS7IUDh46MLL6cSv8OraRDqKRJXapZotpEd62zch+nZJsb5vOsW12Wd
    9YcE7f/0h75KcuzxZ2VK0a78JObm5xcMIIa/R+iDsV1LAEYTDj10o2LrKhJkYD3d
    BIc8EPHaqXeHRhwTt1K7YO0TuXKJEYuhG32jVKWwU6QSAmIuAGSnM60U46fVIde6
    /z41rWZmL5kIRwzZWORHdG9HJvP0CIU/TA9kDKyo7bS+PrHMeLQ8omxAEjLBbM6P
    aUfRd3Qp5rmIp45/dXCmEb5uYZ3HJwmt4EZ7mtxi9rTiCE5wqlRwQySz62YAI8wU
    iZQ/sAw2NkFLZLjP+FsvLwGFAu1AekX8TX8OMredzSW/VzmxJUgXG6OjmpHoPtTk
    /awliL6Tr+SfLaA9zlnWuFk1YSCVj4vIK5Pd3X+NmeVa/hXjw9tiq+LA/p9+L996
    FXj5f+CMCOmivQHmKxloA1Cozb5q6wUf9mZtU2SeSckoH4jfWRRtICUW9r6D9k6a
    eBYk5JhBU73MYyFt7b9+mL5A2gWZ8KGJGuHIw51d0cR+MHfmv+CLK45c2xOLe0Pd
    qaj/+4LO8rZq0z3HIlbU
    =dXvG
    -----END PGP SIGNATURE-----
    Shasum512.asc value is
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.14 (GNU/Linux)
    iQIcBAABAgAGBQJUq8UkAAoJEAV8w+sVoKS8ZmEP/RDrO15NufQabW0dtdDmjL1l
    zMDNZMVhdTNQx5TuQxAzDaAoT3NH9PfobgEgtU2kt/l9fFT8XIHHCBdg6Jci5PvR
    tLG9EyPqcjNxehvyykMlxoO0ajOu3Asm0tZbBCxJ8d5kpzN5eZjHOIKuH4mv9VEs
    cSjy022ZwhWqiH81tAdItJlo0kfxJpJXbkVfmtNQQkNL7yYcrJI/FsGlIq39xyd8
    1LvkvwswSeOYkL8fgMcXvxO4RxZlR8nbd+GIbAzHp3ztl5XYRuMeekLA6igyq3JX
    rdHQXGt1xe4n0lGWNzPwY8YKG7D/ku9RTfH2b78IQLmm5+G4BZoaEAFXjtsBacoe
    kZOem1M1PtVq4A0e7mQNnEGGXz4zLFm8t+g1TXV8FM+dN3K6OXGAXXgA+Yt9LY//
    DR4ESNHS1/sC3pdAtynfg3MtV5yXmDOZKwx2ew1EYEsc7OD9QmYQW+sIkOi8nFgH
    TxU1udep/ZjerMABu1lZoy8WAX29DmheYkTn95oCTHLBh//03FWc76/ENT2cqZVV
    GYS1SRgLtnENXmi2CazVB80o6zOFGLfnL272fHhhr/zMqtWxtPd0WekIVxhA0dhg
    GBvPu6YyjyUXQQqxc/gz86IJus/tHkfd5RhCMbFlU3RNBZLo8SXmJXYlk8xcZtH2
    b3m3ifyXU6sSIkkxorp1
    =WMMi
    -----END PGP SIGNATURE-----
    I am not able to verifiy firefox31.4 ESR for the Mac

  • How encrypt msg with Public Key ?

    I want to encrypt my Session Key with the public key of the recipient but how can I do ?
    I know how to encrypt with the Secret Key but not with the Public Key.
    Thanks for response
    Nicolas

    It depends on the cryptosystem of which the public key you are having.
    If it is of RSA then you have to get the cipher of RSA and pass the session key bytes as input to it.

  • Encrypting with an RSA Public Key

    Hi everyone. I'm trying to encrypt some characters with an already generated RSA public key. Can anybody help with a SUN provider sample script?
    Thanx

    First of all RSA cipher is not suitable for encription of data more then one block (about 80 bytes for the OAEP mode), so it is paractically only good for the secret key wrapping (like Blowfish or DES) and second thing is that SUN JCE provider doesn't include RSA cipher implementation.

  • PGP Encryption Exception in File and SFTP receiver adapter.

    Scenario: We have got the PGP (Private and Public key pair) and stored the same in PI server path.
    We have sample partner Public key which is store at temporary shared location for testing purpose.
    Issue: While doing the encryption we are getting below exception in case of File Adapter and SFTP adapter.
    Case 1: File Receiver Adapter
    Case 1: SFTP Receiver Adapter
    Can anyone please suggest on below exception?
    How to proceed to resolve the above issue or what should be the cause of the issue?
    Thanks,
    Vertika

    Hi everyone,
    Thanks for reply Sarah
    I have downloaded and added the JCE unlimited strengthh juristiction policay files are updated as directed in above blogs.
    Now I am able to encrypt the File using plane File Adapter (NFS). But still it is throwing exception for SFTP adapter. Below is the error detail:
    MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageKey() of a null object loaded from local variable 'message'; nested exception is: javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method
    What could be the reason of above exception in SFTP adapter? Please suggest.
    Thanks,
    Vertika

  • Want  to decode PGP encrypted edi files with oracle soa b2b 11.1.1.6.0

    I am working on a scenario where the trading parter(TP) will publish the edi to our FTP server. These edi files are encrypted using PGP software( we have to provide them our public key for this).
    I have never worked with encryption\ decryption before, but I understand the theory of cryptography.
    Question 1: Can we install PGP on top of soa 11g server and configure the b2b to decode the file using our private key.
    Question 2: If SOA 11g server do not support PGP, then shall i install PGP at the FTP server, and use java to decode the file(using the private key) to a new location and B2B can pick the decode file from here.
    These are two strategy I have planed, please guide me which one is feasible\best , and if you know the steps to implement please do share it with me.
    Thanks in advance.
    Syam
    Edited by: user12196358 on May 10, 2013 4:28 PM

    Both options are feasible but for option#1 (PGP decryption at B2B/SOA), you have to write a java callout. B2B/SOA 11g does not support PGP out-of-box but it can be achieved using java callout. I would prefer option#2, personally as in this case, PGP decryption will be done out of SOA/B2B and hence it will be hot pluggable (can be removed in future, if required, without modifying SOA/B2B configuration).
    Regards,
    Anuj

  • Biztalk PGP encryption and signing

    Hi,
    Currently i am working on a custom pipeline component to PGP encrypt and sign the outgoing message from Biztalk 2013 with public and private keys.
    I am referring the content mentioned in the below posts
    https://code.msdn.microsoft.com/windowsdesktop/BizTalk-Sample-PGP-ebcbc8b2
    http://bajwork.blogspot.co.nz/2007/08/pgp-pipeline-component.html
    But we have a requirement to use PGP version 6.5.8 and i could not find what PGP versions the above components supports.
    Any one has any idea about Biztalk and PGP version 6.5.8 for encryption and signing?
    Thanks
    JB

    PGP has different versions and 6.5.8 is older one. If just download the Bouncy castle pgp dll, it’s not going to use the 6.5.8 version of PGP.
    http://www.pgpi.org/products/pgp/versions/freeware/win32/6.5.8/
    With latest Bouncy castle pgp dll, there are few issues encountered by the user you tried to use PGP version 6.5.8, especially around signature validation. Following are the discussion on
    the issues faced..
    http://stackoverflow.com/questions/7193323/encrypt-with-bc-and-decrypt-with-pgp-6-5-8
    http://bouncy-castle.1462172.n4.nabble.com/ERROR-encrypted-session-key-is-bad-when-trying-to-decrypt-td1466221.html
    http://bouncy-castle.1462172.n4.nabble.com/Compatibility-Issue-with-PGP-6-5-8-td1467170.html
     People have manage to get it working with few changes to the PGP code (which you can get it here
    http://www.bouncycastle.org/csharp/index.html )
    This forum is not the right place to raise question about finding the Bouncy castle pgp dll version compactable with v6.5.8. try to post this question here
    http://bouncy-castle.1462172.n4.nabble.com/
    Once you have their dll compactable with v 6.5.8, then you can use it in BizTalk suggested by the links referenced by you.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Maybe you are looking for

  • Microsoft word notebook layout Saving Problems

    Hi I'm having problems with my microsoft word where in notebook layout it won't allow me to save when the ending is docx, which is the usual saving ending. It allows me to save publisher and normal blank word documents, however not the notebook layou

  • CIN--MIGO--Wrong excise value

    Hi Buddies, We created STO from Plant to Plant and taken SD side to the delivery and profoma and then excise invoice. In this case, we created one STO- with four deliveries(with partial quantity) -one proforma(combining all deliveries in one proforma

  • Partial Sub-Screen Activate in MM06E005

    Hi all, I have made a customization in the Header of My Purchase Order, including a Customer TAB with new customer fields, but once I try to active my subscreen MM06E005-SAPLXM06 0101, it actives all of the others that I will not use (and I did not c

  • How to upload slo-no videos to any cloud storage apps?

    Dear friends, i ve have many slo-mo videos on my iPhone. And, when I tried to upload it to my personal cloud storage app(Google drive, one drive, flikcr) it just got uploaded as a normal video. I've lost the slo-mo in it. It would be really helpful i

  • Ilife apps not seeing some of iphoto multiple libraries

    hello, using a macbook and have iphoto 6. i have only 2 libraries, i do use the "option, q" command to switch between them. now, the ilife apps and the desktop pref is unable to see the original library when its selected. that library does pull up ok