How do I sign blackberry file

Ok so I packaged a swf file into a bar file using the command line in terminal like this:
blackberrySDK/bin/blackberry-airpackager -package appname.bar -installApp -launchApp appName.xml appName.swf blackberry-tablet-default-icon.png -device 172.16.26.135
the last bits add the app to my simulator and launch it.
But when I tried to upload it to the portal today I got this message
"Bar is not RDK signed Bar is not AUTHOR signed This bar contains unsigned entries which have not been integrity-checked"
How do I author sign it?

Take a look at this thread: http://forums.adobe.com/message/4250291#4250291
There is a link to a great tutorial that explains this step by step at:
http://www.hsharma.com/tutorials/10-easy-steps-to-package-and-sign-air -apps-for-playbook/
Worked for me... I now have 2 apps in the Blackberry Appstore... ;-)

Similar Messages

  • How to digitally sign pdf file

    Hi,
    I am working on Java and Digital Signature and new to this field. I want to sign a pdf file using smart card. I have tried signing xml files and it's now running fine. The signature is attached with the xml file. Similarly I want to sign a pdf file and the signature should be attached with it.
    Please help me to do that.
    Thanks in advance.

    Thnx.
    Any way I could manage the matter.
    I hope my code may help people working on same.
    So the code is here
    static String fname = "D:\\file.pdf";
    static String fnameS = "D:\\file_signed.pdf";
    //The main method
    public static void main(String[] args) {
            try {
                this.signPdf() ;           
            } catch (Exception e) {
                System.out.println(e);
    //The signer method
    public static final boolean signPdf()
                throws IOException, DocumentException, Exception {
            String fileKey = "D:\\MyCertificate.pfx";
            String fileKeyPassword = "password";
            try {
                KeyStore ks = KeyStore.getInstance("pkcs12");
                ks.load(new FileInputStream(fileKey), fileKeyPassword.toCharArray());
                String alias = (String) ks.aliases().nextElement();
                PrivateKey key = (PrivateKey) ks.getKey(alias, fileKeyPassword.toCharArray());
                Certificate[] chain = ks.getCertificateChain(alias);
                PdfReader pdfReader = new PdfReader((new File(fname)).getAbsolutePath());
                File outputFile = new File(fnameS);
                PdfStamper pdfStamper;
                pdfStamper = PdfStamper.createSignature(pdfReader, null, '\0', outputFile);
                PdfSignatureAppearance sap = pdfStamper.getSignatureAppearance();
                //sap.setCrypto(key, chain, null, PdfSignatureAppearance.SELF_SIGNED);
                sap.setCrypto(key, chain, null, PdfSignatureAppearance.VERISIGN_SIGNED);
                sap.setReason("Security");
                sap.setLocation("Kolkata, India");
                sap.setSignDate(Calendar.getInstance());
                sap.setVisibleSignature(new Rectangle(10, 10, 50, 30), pdfReader.getNumberOfPages(), "Subhadip Pramanik");
                pdfStamper.setFormFlattening(true);
                pdfStamper.close();
                return true;
            } catch (Exception key) {
                throw new Exception(key);
        }

  • BlackBerry : How to OTA Install my RIM signed .cod file on the handset ?

    Blackberry :
    I am using phone book access in my project.
    I created the .cod file using rapc and signed it online using signatureTool and RIM provided key.
    I am able to install this RIM signed .cod file of my project to the handset BlackBerry 7100G using usb cable and .alx file
    with Desktop Manager. It works perfect.
    I have already set the mime type for .cod on my server.And put the signed .cod, .jar and .jad files. With my wap page having
    link to the jad file.
    When I open this wap page from my Black Berry 7100G Browser and clik on the link, I see the details of my application. Then I
    press download, it starts the download but then gives error in JAD.
    For the project version without PIM, where no signature is required I am able to download it OTA on the handset using the
    .jad & .jar file only.
    Issues that I feel are creating this problem.(I am using JDE 4.0.2)
    1) RAPC.exe added RIM specific attributes to jad file that shows project.cod & project-1.cod with different byte sizes and
    different SHA-1 codes.
    But in the bin directory, after runing rapc over the jad & jar file I get only project.cod with size almost same as the
    sum of project.cod & project-1.cod and project-1.cod is not found.
    2) RAPC adds the SHA-1 code & byte size to jad file. But when I use SigntureTool to sign the .cod file its size is changed
    but the jad file is not updated by it.
    Thank you,
    Amitabh

    Since my last post I have been discussing this issue with commercial application developers and have been experimenting with various applications.
    Firstly, let's make the JAR/JAD situation absolutely clear. Some, but not all, applications unquestionably require the JAD file as a part of the installation process. If the application is a "signed" application then the security authorisation is contained within the JAD file, not the JAR file. The JAD file is created from the JAR file and contains security verification information that is separate from the JAR file and which enables the application to signed as kosher.
    The Nokia PC Suite Application Installer does not need to show you the JAD file. The JAR file is sufficient. If you install the application from a folder on your PC that contains both the matching JAR and JAD files then Application Installer will correctly install the application from both the JAR and JAD files. If the folder ONLY contains the JAR file then it will only install from the JAR file. I have proved this.
    So, if you cannot get the application to work then the reason is not the installation process. The reason is far more likely to be that you are trying to install the application on a branded handset rather than on a standard Nokia handset. Some service providers heavily modify the base standard software that Nokia installs on its vanilla handsets and these modifications may well include changes to security authorisation rules that will prevent many applications working on handsets that they sell.
    I am in dispute with one such as we speak. I will not name them right now but if I am unable to achieve a satisfactory outcome then be assured I will let EVERYONE know. Thank God for YouTube.

  • How to creat a resource file in blackberry playbook

    Hai,
    how to creat a resource file  in blackberry playbook.
    Regards
    Ratheesh R Kurup

    I think you will have to use PP for this.

  • How can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    how can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    As has been mentioned Adobe Reader cannot export PDF page content. Nor can it create PDF or manipulate PDF page content.
    What you can do is use one of Adobe's online subscription services. Two provide for PDF  to Word export.
    There's ExportPDF and PDF Pack.
    Be well...

  • How can i add update signed jar file

    I am developing an applet which requires signing to run in a browser.
    I am developing supporting classes. But these class files have to be added
    to the jar. Isnt it??
    But to test the applet i need to load it in the browser each time i modify the class files. So the jar file need to be updated every time. But an
    IOError
    is being displayed when i try to update the signed jar file.
    How can i update signed jar file?? Or is there any othe way to test the signed applet during development??

    How can i update signed jar file?You can't, the signature is there to make sure the content of the jare hasn't been messed
    with.
    Either recreate the jar and re sign it or set up a policy during testing.

  • How do I view blackberry media files on my iphone

    How do I view Blackberry Media files on my iPhone?

    If your media is in iTunes restore the iPod, but the iPod is/was the only location currently hosting some of your media then the first task is to try to extract it. See the user tip Recovering your iTunes library from your iPod or iOS device for some recovery tools. Most third party tools will probably require the device to have a functioning library however the techniques outlined in the iLounge Article referenced at the end should work as long as the device still shows up in Windows Explorer or Finder.
    tt2

  • How to create and sign CAB files info on Supplement Option

    To all Supplement Option subscribers:
    At the supplement option for iDevelopment Accelerators, I uploaded a zip with detailed info on how to create and sign CAB files (necessary when you are running your application on the Native IE Java Virtual Machine).
    Not all functionality provided to you through JInitiator will work (e.g. WebUtil doesn't) but the way how to make and sign a CAB file will become more easy.
    Cheers,
    Marc Vahsen
    Headstart Team

    This defeats the purpose of trying to centralize SAP-related web resources on the SAP server. Typically IIS/Apache or other non-SAP servers are under the control of IT and not the SAP BASIS group.
    We simply would like to have a centralized location to store static web files so that they are not overwritten during Portal support pack applications.

  • Does anyone know how to get a preflight file signed by apple for the 21 mac

    does anyone know how to get a preflight file signed by apple for the 21 mac

    im trying to get a hold of them to see if they can deauthorize a computer. I am unable to do it because i can't get the internet to hook up. And i got a new laptop that i get the internet on but i can't authorize it unless i deauthorize the other one. i've called apple 3 times and theyve not been very helpful saying i need to get  hold of itunes.

  • Digital signature: How to sign a file ( algorithm SHA1withRSA )

    Hi
    I need create and sign a File. I need some example how to do that.
    I Found this functions:
    ssfSign ( to sign )
    ssfEnvelop ( to encrypt )
    Thanks a lot!
    Mariano

    check program SSF01
    regards
    Prabhu

  • Java XML Digital Signature API, how to sign different files

    Hello,
    I need to sign several files: binary and/or xml (in some cases just part of xml), and to implement digitla signatures in xAdes standard. So I'm looking to use Java XML Digital signature API, but can't find any examples, that would cover issues I encountered:
    How to sign binary file?
    Just to sign some simple "aaa.png" file and have it's signature in XML. How in right way to create referece?
    (should it be something like: Reference ref = fac.newReference("aaa.png", fac.newDigestMethod(DigestMethod.SHA1, null), null, null, null); )
    And how to pass file for signing? what to add/change to this code:
    Document doc = dbf.newDocumentBuilder().parse(new FileInputStream("aaa.png"));
    DOMSignContext dsc = new DOMSignContext(keyEntry.getPrivateKey(), doc.getDocumentElement());
    (I have only found some information about needing to "dereference" or so - but no examples, how to make things work.)
    How to sing several different files?
    As I wrote before, several files needs to be signed, but in all examples, it's only one Document object (and only one file), how/where to add more files and if API will be capable to deal with such thing?
    In one of examples what I have to achive was such code:
    <Reference URI="aaa.png" xmlns="http://www.w3.org/2000/09/xmldsig#">
    <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
    <DigestValue>8rl/xzjAnE4yQQ2LTBvFTU2JH+c=</DigestValue>
    </Reference>
    If I do write code like: "fac.newReference("aaa.png", <...> );
    I'll get an error during signing: signature.sign(dsc);
    *"java.net.MalformedURLException: no protocol: aaa.png"*
    How to avoid this?
    Also, from exmaple (what to reach) above:
    <Reference URI="aaa.png" xmlns="http://www.w3.org/2000/09/xmldsig#">
    There is additional attribute "xmlns=<...>" - the question is if it is possible to add it by XMLSignatureFactory.newReference ?
    Java API adds a lot of prefixes "ds:" , like:
    <...>
    <ds:Reference URI="file:/D:/try5/SignableMetadata0.xml">
    <ds:Transforms>
    <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
    </ds:Transforms>
    <...>
    Is it possible to avoid them?
    Any help on any of these questions would be very appreciated

    Hi,
    I would like to sign a specific part of a xml message [Only the contents under the <Buyer> tag]. I have also pasted the code which i used to do this. I am getting an output xml after the xml is signed, but when I validate the xml , the xml is valid even after I change the xml contents. Could you pls tell me what I am doing wrong here. I want to know whether the xpath implementation which I have done is correct.
    <?xml version="1.0" encoding="UTF-8"?>
    <PurchaseOrder>
    <Item number="130046593231">
    <Description>Video Game</Description>
    <Price>10.29</Price>
    </Item>
    *<Buyer id="8492340">*
    *<Name>My Name</Name>*
    *<Address>*
    *<Street>One Network Drive</Street>*
    *<Town>Burlington</Town>*
    *<State>MA</State>*
    *<Country>United States</Country>*
    *<PostalCode>01803</PostalCode>*
    *</Address>*
    *</Buyer>*</PurchaseOrder>
    // The code which i have used to perform the xpath transformation.
              XMLSignatureFactory fac = XMLSignatureFactory.getInstance("DOM");
         XPathFilterParameterSpec xpathFilter = new XPathFilterParameterSpec("PurchaseOrder/Buyer");
              javax.xml.crypto.dsig.Reference ref = fac.newReference
              ("", fac.newDigestMethod(DigestMethod.SHA1, null),
              Collections.singletonList
              (fac.newTransform
              (Transform.XPATH, xpathFilter)),
              null, null);
              SignedInfo si = fac.newSignedInfo
              (fac.newCanonicalizationMethod
              (CanonicalizationMethod.INCLUSIVE,
              (C14NMethodParameterSpec) null),
              fac.newSignatureMethod(SignatureMethod.DSA_SHA1, null),
    Collections.singletonList(ref));
    // Load the KeyStore and get the signing key and certificate.
         KeyStore ks = KeyStore.getInstance("JKS");
         char[] password = "changeme".toCharArray();
         ks.load(new FileInputStream("c:\\KeyStore"), password);
         KeyStore.PrivateKeyEntry keyEntry =
         (KeyStore.PrivateKeyEntry) ks.getEntry
         ("EISKeys", new KeyStore.PasswordProtection(password));
         X509Certificate cert = (X509Certificate) keyEntry.getCertificate();
         // System.out.println("X509Certificate:"+cert);
         // Create the KeyInfo containing the X509Data.
         KeyInfoFactory kif = fac.getKeyInfoFactory();
         List x509Content = new ArrayList();
         x509Content.add(cert.getSubjectX500Principal().getName());
         x509Content.add(cert);
         X509Data xd = kif.newX509Data(x509Content);
         KeyInfo ki = kif.newKeyInfo(Collections.singletonList(xd));
         // Instantiate the document to be signed.
         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
         dbf.setNamespaceAware(true);
         Document doc = dbf.newDocumentBuilder().parse
         (new FileInputStream("C:\\Life2012\\DigSign\\ACORD_Request.xml"));
         NodeList rootChildList = doc.getDocumentElement().getChildNodes();
         Node bodyNode = null;
         for(int i=0;i<rootChildList.getLength();i++){
              if("Buyer".equalsIgnoreCase(rootChildList.item(i).getLocalName())){
                   bodyNode = rootChildList.item(i);
                   System.out.println("Body Node is obtained"+bodyNode);
                   break;
         // Create a DOMSignContext and specify the RSA PrivateKey and
         // location of the resulting XMLSignature's parent element.
         //DOMSignContext dsc = new DOMSignContext
         // (keyEntry.getPrivateKey(), doc.getDocumentElement());
              // Sign only the body node
         DOMSignContext dsc = new DOMSignContext
         (keyEntry.getPrivateKey(), bodyNode);
         // Create the XMLSignature, but don't sign it yet.
         XMLSignature signature = fac.newXMLSignature(si, ki);
         // Marshal, generate, and sign the enveloped signature.
         signature.sign(dsc);

  • How to append to a signed PDF file

    We have Adobe Acrobat 8.1 Professional on PCs running Vista.
    In the past, we could append a scanned document to a PDF document that has already been signed using a self-created Adobe digital signature.  Now we have docs with a digital signature from a Certificate Authority.  I can no longer append a scanned doc to the signed PDF file.  Is there a way to do this?  Previously, we selected Create PDF > From Scanner > selected Append > and clicked Scan.  The scanned paper file would be added to the existing signed PDF document.  Now, however, we get the message "File can't be appended" when we select Append and navigate to the file signed with a digital signature from a Certificate Authority.  One more factor, the documents we get are now signed with PDF signing software other than Adobe Acrobat.  I tried scanning the doc to a file and then combining and Adobe Acrobat would not allow that either because of the digital signature.  Does anyone know how to do the append procedure now?
    Thanks!

    Click on the "arrow out of box" icon on the menu when you're viewing your PDF document (2nd button from right). then click "E-mail document".

  • How to automate digital signing PDF Files in batch

    I am trying to find a way to automate as much as possible the placing of a digital signature on a set of PDF documents.  We have Adobe Acrobat Pro 8.1 and the machine has MS Office 2003 with Vista Business.  Here's a scenario:  A set of documents exist in a TO-BE-SIGNED folder, each unsigned.  The user uses MS Access 2003 form with a button with VBA code to open and show the first document in the folder.  The AcroExch.App, AcroExch.AVDoc, and AcroApp.Show APIs are used to do this.  I found code on the internet to do that.  Rather than having my client now have to go through all the manual steps to place a digital signature on the document, I want to streamline it to a single click if possible.  Right now he has to click Advanced > Sign and Certify > Place Signature > then click and drag > then enter his password > then click sign > then save and close the doc.  Can all this be automated?  An added bonus would be automatically saving or moving the signed doc to a different folder when it is signed.
    I have created a stamp that allows me to add a stamp with just two clicks.  Can such be done to add a digital signature?  Is it possible to add a button to the toolbar to do this?  Can it be done in Access VBA using some Acrobat API calls?  Another feature I want to include is moving quickly from one document to the next in the TO-BE-SIGNED folder.  Like the arrow buttons take you from page to page, can a button be added to the Acrobat toolbar to take you from doc to doc in a particular folder?  Or can that be done using VBA and some Acrobat API calls?  To maintain the security of the password protection and yet cut down on clicks and keystrokes, I would like to input the password just once at the beginning of the session and have it remembered or applied to all the docs that get signed as long as that session is open.
    I've found some software that purports to do much of the above, but they are all very expensive and assume a big business with big bucks.  If anyone knows of inexpensive software that will REALLY do this, I'm open to that as well, though I'd like to control the process myself if possible.  I consider myself a beginner with Acrobat and using API calls and would appreciate any help anyone can give.  Is the above clear and even possible?
    PS:  I'm new to this site and using SDK.  I posted this under Security (thinking digital signatures) and was asked to post it here, which I'm glad to do.
    Thanks much!

    Our workflow is such that on infrequent occasions, we have a digitally signed PDF file and the doctor wants to append a scanned note to it.  In the past, we could do this, but not now.  In the past, when we added the scanned doc, we received a message saying that the doc is already signed and asking if we want to overrwrite the doc.  If we respond Yes, then Acrobat would allow it and the signature would indicate that the original part of the document was not modified, but that something had been changed--namely, a doc had been appended.  The signature indicated that something had changed since it was added, but it still allowed the append.  The signature would have an exclamation point in a yellow triangle indicating the doc had been updated since signed.  For our purposes, that was okay because we know what the change is based on the original doc and we know what is appended.  Now, however, we cannot append at all.  The only thing that is different that I know of is that the doc was signed with software that is not Adobe Acrobat, even though the other software uses an Adobe Acrobat self-created digital signature.
        I hope I've explained that clearly enough.
    Thanks for your help.

  • How to remove password-encryption in a signed PDF file?

    I can open a password-encryption and digitally signed PDF file using Acrobat X Standard but cannot remove the password protection.
    Can anyone help me remove the password encryption?  The Acrobat only allows to set passsord encryption before adding digital signature to a PDF file.  Can I sign a PDF file and then encrypt it with password?  Thanks.

    Removing the security, if it is possible, would destroy the signature.
    Encrypting a signed PDF would destroy the signature.
    This is because signatures validate the file exactly as it is, and changes to the file break the signature by design. Setting security is a change to the PDF (a big change).

  • How do I sign my VB / VS 2010 based shared COM add-in for Excel so it loads when the user has checked "Require application add-ins to be signed by a trusted publisher"?

    My COM add-in is developed using VS 2010 and VB. It's a shared COM add-in (not VSTO) and it works with Excel 2007 - 2013. My installer is signed with a code signing certificate but it would appear that my add-in's .dll should also be signed if the user has
    checked the "Require application add-ins to be signed by a trusted publisher" option.
    The "Sign the assembly" option is checked in my add-in's VB -> My Project -> Signing. I have a .snk file selected which I seem to recall generating 6 or 7 years ago when I ported the COM add-in from VB6 to .NET. 
    I have an up-to-date Comodo code signing certificate (a pfx file called MyCompanyCodeSigningCertificatePrivateKey.pfx) which I purchased to use with the installer and was wondering if and how I could use this.
    I tried selecting my pfx file in the My Project -> Signing -> "Choose a strong name key file" dialog. It made a copy of the pfx file in my project folder but when I tried to build the project, I got the following error:
    Error 1 Cannot import the following key file: MyCompanyCodeSigningCertificatePrivateKey.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the
    following key container name: VS_KEY_C0B6F251F0FB6016
    After a little research, I found out I might be able to use signtool to sign the dll in a post-build step.
    I added the following command to the post-build event, before the command I use to regasm the assembly.
    "path to signtool\signtool" sign /f "MyCompanyCodeSigningCertificatePrivateKey.pfx" /p "xxxx" /v "$(TargetPath)"
    When I built the project, the dll appeared to get signed (the output window showed a bunch of confirming text as well as "Successfully signed: c:\MyAddIn\bin\Release\MyAddIn.dll") but the next step in the post-build (regasm myaddin.dll /codebase)
    issued a warning RA0000 (see below) but reported "Types registered successfully".
    Here's the message I get from regasm, even though the output window says the dll was sucessfully signed:
    RegAsm : warning RA0000: Registering an unsigned assembly with /codebase can cause your assembly to interfere with other applications that may be installed on the same computer. The /codebase switch is intended to be used only with signed assemblies. Please give your assembly a strong name and re-register it.
    Types registered successfully
    I'm not using a shim if that makes a difference.
    How do I sign my add-in so it loads when the user has checked "Require application add-ins to be signed by a trusted publisher"?
    Any tips would be appreciated.

    Hello,
    Why do you need to use the regasm utility from the post-build action?
    There is a difference between signing the assembly with a strong name and digital signature. The
    How to: Sign an Assembly with a Strong Name article in MSDN explains how to sign an assembly with a strong name (.snk). See
    How to digitally sign a strong named assembly for adding a digital signature.
    You may also find the
    What's the Difference, Part Five: certificate signing vs strong naming article helpful.

Maybe you are looking for

  • JBO-26061: Error while opening JDBC connection how to debug in project

    Hi, Am using adf 11.1.1.5 jdev Can any one guide me . how can i debug and find out exactly where jdbc error is occurring .How to track down the error as am new to project . <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives u

  • Getting a single line from a JTextArea

    I have a JTextArea with a fixed size. I've used the .setLineWrap(true) and .setWrapStyleWord(true) on this JTextArea, so when the user types in some text, that's longer that the JTextArea, it will wrap unto the next line. I need to get each visible l

  • Print continuous pages in sap script

    Hi all, I am taking the start from and end form twice. The first page has next page and the page numbers are fine, as i am going with the new page I created the page numbers are restarted. I've tried the option (jobpages and formpages which are givin

  • SMARTFORM PO BACKPAGE LANDSCAP FORMAT

    hi, It is a smartform in Landscape format. I have a problem in smartforms front and back printing. Ihave three pages, First page, back page (has terms and condition) and next page. when taking the printout First page comes correctly, but the back pag

  • My online number doesn't ring through

    Hi, I'm in Sweden, but have an Oregon online number. When people call me they just get a recorded message to leave a message... it doesn't ring through to me. Any ideas how to fix this? Thanks.