Problem with Issuer of  Signerinfo

Hi,
I have a prblem with the Issuer in the signerInfo.
SignerInfo si = new SignerInfo(
new X500Name(x509.getIssuerDN().getName()), // X500Name issuerName,
serial, //x509.getSerialNumber(), // BigInteger serial,
AlgorithmId.get(digestAlgorithm), // AlgorithmId digestAlgorithmId,
authenticatedAttributes,// PKCS9Attributes authenticatedAttributes,
new AlgorithmId(AlgorithmId.RSAEncryption_oid), // AlgorithmId digestEncryptionAlgorithmId,
signedAttributes, // byte[] encryptedDigest,
null); // PKCS9Attributes unauthenticatedAttributes
Issuer with some certificates doesn't give back a correct result. If we turned pkcs7 binary, it gives back 0x13 and it would have to give back 0x0c. This problem doesn't happen if we make the PKCS7 with capicom or other languages.
This problem is only with Java. Is it a java bug?
Thanks

Can anybody pass on the reverse code. I have one, but
its faulty.Post it, I'm sure we can fix it...

Similar Messages

  • Problem with issuing command via CustomScriptExtension

    I am trying to issue a CustomScriptExtension command to an Azure virtual machine from within my C# application. The CustomScriptExtension is installed in the VM and working. I verified this by issuing a test command via PowerShell. Essentially I am trying
    to execute what would be the equivalent to the PowerShell command Set-AzureVMCustomScriptExtension, but in code.
    Below is the code segment that I am having problems with:
    ComputeManagementClient client = new ComputeManagementClient(AzureSessionInfo.CloudCredentials);
    IList<ResourceExtensionReference> extReferences = new List<ResourceExtensionReference>();
    IList<ResourceExtensionParameterValue> extParamValues = new List<ResourceExtensionParameterValue>();
    string account = "{\"storageAccountName\":\"" + AzureSessionInfo.StorageAccount + "\",\"storageAccountKey\": \"" + AzureSessionInfo.StorageAccountKey + "\"}";
    string scriptfile = "{\"fileUris\": [\"" + "https://teststorageaccount.blob.core.windows.net/testcontainer" + "\"], \"commandToExecute\":\"powershell -ExecutionPolicy Unrestricted -file " + "ScriptName.ps1" + "\"}";
    byte[] bytes1 = System.Text.Encoding.UTF8.GetBytes(account);
    bytes1 = System.Text.Encoding.UTF8.GetBytes(account);
    string ScriptPrivateConfig = Convert.ToBase64String(bytes1);
    byte[] bytes2 = System.Text.Encoding.UTF8.GetBytes(scriptfile);
    bytes2 = System.Text.Encoding.UTF8.GetBytes(scriptfile);
    string ScriptPublicConfig = Convert.ToBase64String(bytes2);
    ResourceExtensionParameterValue extRef_Parameter1 = new ResourceExtensionParameterValue()
    Key = "CustomScriptExtensionPrivateConfigParameter",
    Value = ScriptPrivateConfig,
    Type = "Private"
    ResourceExtensionParameterValue extRef_Parameter2 = new ResourceExtensionParameterValue()
    Key = "CustomScriptExtensionPublicConfigParameter",
    Value = ScriptPublicConfig,
    Type = "Public"
    extParamValues.Add(extRef_Parameter1);
    extParamValues.Add(extRef_Parameter2);
    ResourceExtensionReference extRef_CustomScript = new ResourceExtensionReference
    Name = "CustomScriptExtension",
    Publisher = "Microsoft.Compute",
    Version = "*",
    ReferenceName = "CustomScriptExtension",
    ResourceExtensionParameterValues = extParamValues
    extReferences.Add(extRef_CustomScript);
    AzureSessionInfo.CloudServiceName = "CS1000001";
    AzureSessionInfo.VMName = "CS1000001";
    AzureSessionInfo.ImageFamilyName = "Windows Server 2012 R2 Datacenter";
    client.VirtualMachines.Update(AzureSessionInfo.CloudServiceName,
    AzureSessionInfo.VMName,
    AzureSessionInfo.VMName,
    new VirtualMachineUpdateParameters
    RoleName = AzureSessionInfo.VMName,
    ResourceExtensionReferences = extReferences
    I receive the following error message back from the call:
    BadRequest: Invalid extension reference parameter value in JSON configuration data for the Role: CS1000001, Reference name: CustomScriptExtension.
    I could only find very little documentation on this. Any help would be appreciated.

    Thanks Mekh... after many hours of researching and trial/error, I figured it out.
    The MSDN article I used previously led me down the wrong path. (see article here: http://msdn.microsoft.com/en-us/library/azure/dn781373.aspx). This may work for RESTful calls but not for .NET API calls.
    The part of the code that was hurting me was where the command strings (account and
    scriptfile) were being converted to Base64 encoding. This is NOT correct for .NET calls. Once I removed that, everything worked fine.
    I came across this after researching the same commands used by Linux scripts. They don't convert to Base64 either so I wonder why this is included in the documentation at all.
    In either case, I figured it out, but the documentation is very poor in this area (or all together non-existent). I don't even see where it is documented as to which JSON parameters names are supposed to be used, or even that JSON is required.
    Also, related to the Update command, if you are truly "updating" the config, you must include everything about the original config (whether it changed or not) along with the changes you want to make. If not then you will undo ALL but the changes
    you issued via the command.

  • Is anyone having a problem with the new iPad (Gen. 3) not staying connected to the charger? It seems to ALWAYS get jiggled loose and no longer be charging. My iPad 1 has no issue but I can't browse Internet w/o new iPad unplugging. Horrible!

    I notice that my new IPad (3rd generation) will not stay connected to the power cord at all, I'm not exagerating, if I plug it in and browse the Internet without fail it will become unplugged and I will have to push the plug back in (Ba-beep). Ive actually grown to despise that sound when you plug your iPhone or iPad in because it reminds me of how much money I spent on something that PHYSICALLY will not charge while I'm using it.
    I know the problem with it holding a charge while in use, I get it, the screen is amazing and it takes a lot to run the display, however, it is unacceptable to me that I can't even keep the thing plugged in while I'm using it. I can not even leave it on my Cal King bed overnight because I will wake up in the morning to find that the plug has been jiggled loose in a corner, so it's still attached but not making a connection thus not being charged. 
    I love the 4GLTE from Verizon and I love the iPad, but I'm actually using my 1st generation IPad while I am at home so I can leave my new $900 iPad on a table to charge free of incident so I can use the 4G while I'm away from wifi during the day. I have been getting more upset about this because I can not even use the Griffin extended cord to charge the iPad and be far from the plug because only the original apple sync/charge cord will have a better shot at staying in. Absolutely none of my non apple cables will stay in the iPad 3 while having it in my hands.
    The plug is at an angle, unlike the first iPad, not sure about the iPad 2. Please let me know if they have same issue.
    If anyone else is having this problem with the Gen 3 iPad please let me know because I'm tempted to do something about it with apple and I'm hoping that I just for some reason have a bad cable receiver or something and maybe I can get a replacement and enjoy the iPad as I had expected to. There is no reason why I should be even using my first iPad and I have friends that want to buy it but I am not selling it because I'm unable to sell it because I can't handle the new iPad while it's plugged in, that is ridiculous if it's a common issue so please let me know!

    Thanks for the swift reply, I have been looking online and a loose plug seems to be somewhat of an issue with many, I hope mine is actually a problem and not what others are experiencing. It's taken me this long to even reach out for the simple fact I HATE being a complainer but this is just horrible.
    Do you have an iPad 3 as well? And is yours not experiencing any issues close to mine?
    Thanks again!

  • TS1702 I have problem with accessing to my Game Center. I was not able to log in to y game center. The loading took anyone ever had this problem? How do I solve this issue?

    My Game Centre was disabled. I was advise to login to my Game Center to enable my achievements. But everythime I login in to my Game Center, it take ages for the loading to process and just hang there. Can some one help me to solve this issue?

    If the problem persists, you'll probably have to make another apple id, it wont take off any games or music or apps or anything you've bought it will all stay there, i have two apple id's and i don't have a problem with anything.

  • I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies

    I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies. After starting it in recovery mode, it will not allow me to download OS X Mavericks- it says the disk is locked. Any ideas? I do not have a back-up and do not want to erase everything before I have explored my options. Help?

    try forcing internet recover, hold 3 keys - command, option, r - you should see a spinning globe
    most people will tell you to do both pram and smc resets (google) and if you still have issues, either clean install (easy) or troubleshoot (hard)

  • Problems with EFI Firmware Update to 1.5 for mid 2010 Mac Pro, and sleep issues

    Hello to the community, I have run into an annoying issue.
    I need to update the EFI firmware on my 8 core mid-2010 Mac Pro. I downloaded the EFI update from the apple website from here : http://support.apple.com/kb/DL1321
    But everytime I download it, as I click to install, it gives me the message:
    Alert
    This software is not supported on your system.
    But clearly this is the correct EFI for my computer. I tried burning the Firmware restoration onto a CD from here:
    http://support.apple.com/kb/DL1320
    But the computer did not respond the way it said it should (with the 3 flashes/beeps etc.) and have the optical drive open for the CD.
    So I'm completely stuck.
    *Also my Mac Pro had issues with sleep, when I put it to sleep, sometimes when I try to bring it back, it restarts itself, and other times, it just turns itself on and the monitor screen remains black, so I have to hit the power button to turn it off then back on again. This only happnens when the computer has been put to sleep for a slightly extended period of time, roughly 20mins +, sometimes longer.  I was trying to solve this problem by first updating the firmware because I think it could be related to that, but I've had this problem with the firmware so I couldn't find out. This is actually the bigger problem for me because it will affect my work. I am currently using an iMac while I fix up this mac pro.
    I'm a music composer so I've upgraded many aspects of my system due to work. I have a 1TB Samsung 840 evo SSD, 2 seagate 2 TB HDD, and 1 WD 1TB HD (the original one in the mac pro), along with 32 GB of RAM. So my only problems are the firmaware and the weird activity when the computer is put to sleep.
    Some help would be greatly appreciated!
    I'm running OS X Mavericks 10.9.2
    mid-2010 Mac Pro
    8 core processor (2 X 2.4gHz)

    According to this article, your EFI firmware is up to date:
    Computer
    Model identifier
    EFI Boot ROM version
    SMC version
    Mac Pro
    Mac Pro (Late 2013)
    MacPro6,1
    MP61.0116.B04 (EFI 2.0)
    2.20f18 (SMC 2.0)
    Mac Pro (Mid 2010)
    MacPro5,1
    MP51.007F.B03 (EFI 1.5)
    Mac Pro (Early 2009)
    MacPro4,1
    MP41.0081.B07 (EFI 1.4)
    Mac Pro (Early 2008)
    MacPro3,1
    MP31.006C.B05 (EFI 1.3)
    Mac Pro (8-core)
    MacPro2,1
    MP21.007F.B06 (EFI 1.2)
    1.15f3 (SMC 1.1)
    Mac Pro (Original)
    MacPro1,1
    MP11.005C.B08 (EFI 1.2)
    1.7f10 (SMC 1.1)
    EFI and SMC firmware updates for Intel-based Macs

  • Problem with connecting to a website.  Just purchased a new iMac with Version 10.10.2 Yosemite.  Once in a while I have trouble connecting to a site.  It takes forever.  Is this an issue with Yosemite or my internet service?

    I purchased this iMac in Feb. 2015.  When I try to connect to a web site using Safari or Google Chrome I usually have no problems getting connected to the site.  But maybe once a day I will try to connect and I will see the blue progress bar at the top of the screen showing it is trying to connect and then it just stops.  It may take a couple of minutes before it connects to the site. 
    Would this be a problem with OS X Yosemite Version 10.10.2 ?  Or would this be a problem with my internet company? 
    Thank you,
    Laurie

    Hi lauriefrommi,
    Welcome to the Apple Support Communities!
    i understand that you have some intermittent webpage loading issues while using Safari on your Mac. In this situation, to ensure that Safari is working as it should, I would suggest reading over the attached article and using the information to make sure Safari has no unsupported third-party add-ons. 
    Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues - Apple Support
    Best regards,
    Joe

  • I've problem with Game Center . I can't sign in Game Center on my iPad . I tap on the Game Center icon but the page is blank. I tried go to setting, my Apple ID appear but the page keep on loading and  nothing pop up. How to resolve this issue?

    I've problem with Game Center . I can't sign in Game Center on my iPad . I tap on the Game Center icon but the page is blank. I tried go to setting, my Apple ID appear but the page keep on loading and  nothing pop up. How to resolve this issue?

    Hi, bamboo64. 
    Try closing all open applications in multitasking and power cycling the device.  Once this is done test the results.  If the issue persists, I have included a couple troubleshooting articles that I would recommend going through. 
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Troubleshoot issues on an iPhone, iPad, or iPod touch
    If you haven't been able to connect to the iTunes Store:
    Make sure your date, time, and time zone are correct in Settings > General > Date & Time.
    Note: Time Zone may list another city in your time zone.
    Make sure that your iOS software is up to date by tapping Settings > General > Software Update (iOS 5 or later) or connecting your iOS device to iTunes and clicking Check for Update on your device's Summary page.
    Check and verify that you're in range of a Wi-Fi router or base station. If you're on a device with cellular service, make sure that cellular data is turned on from Settings > General > Cellular.
    Note: If connected to cellular data, larger items may not download. You may need to connect to Wi-Fi to download apps, videos, and podcasts.
    Make sure that you have an active Internet connection. You can check the user guide for your device for help with connecting to the Internet.
    Make sure that other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the Internet.
    Try resetting (turning off and then on again) your Wi-Fi router.
    If the issue persists, try troubleshooting your Wi-Fi networks and connections.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Cheers,
    Jason H. 

  • Is anyone else having a problem with a "no service" issue on the iPhone 5?

    There are times my phone will go to "No Service" when the signal is low. I just got the iPhone 5. I did not have this problem with my 4. It doesn't say "searching..." it just automatically says "No Service" for a few seconds and then back to having bars. It comes and goes. I had my phone replaced at the Genius Bar and still have this problem. Is anyone else also having this problem? I hope it's just a software issue they will solve with an iOS update.

    I have this problem all the time. when i get back home from a overseas trip (about 3-4 times a month) I have to turn airplane mode of and on a few times to get rid of the "No Service" message.

  • Apple tv is giving me a meesage that says... There is a billing problem with a previous purchase. Go to the iTunes Store on your computer and click Purchase History to resolve problem. I have gone to my purchase history but can't seem to fix this issue.

    Apple tv is giving me a meesage that says... There is a billing problem with a previous purchase. Go to the iTunes Store on your computer and click Purchase History to resolve problem. I have gone to my purchase history but can't seem to fix this issue.

    You can contact the iTunes Store Customer Service department at no charge using the form on their Support page (select the category and subcategory closest to the issue you're reporting and you'll find an "Email Us" button) and explain your problem to them.
    Copied from Varjak Paw in :https://discussions.apple.com/thread/2598671

  • The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

    The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

    The Control A key is not working. I cannot multi-select my songs. I'm not sure if it is the problem with iTunes 10.6.1.7 or my PC settings encounter issues. Also, i cannot find Album Artwork online using iTunes and i cannot select any view form but List.

  • I have a problem with HP laserJet P2055dn... Has anyone resolved this issue??

    I have a problem with HP laserJet P2055dn...
    Since I changed OX to Mavericks, my macpro does not connect to the HP printer (laserJet P2055dn)
    Has anyone had this issue? Anyone resolved this??

    How do you force the printer driver to reinsall?
    I delete the printer and re-added, but nothing changes.
    All the forums topics concerning driver updates reference the App Store, but I cannot find anything there.
    Nor I can download the driver from the vendor website, as it also redirects me to the App Store, where nothing happens.
    I am new to Mac, so the question may be a silly one.
    Thank you for your help.

  • Problem with HP Officejet 8620 (just bought it) not sure if Printer or wireless issue.

    Alright so hopefully I have put this in the right forum.
    I just bought an HP Officejet 8620, and set it up. It printed the test pages fine yet upon trying to print homework it would dissapear in the Print Queue while saying it was "printing". Thus nothing has come out of the printer except test pages so I am in a bit of a bind.
    Now the computer brought up a trouble shoot issue stating "problem with wireless network".
    To give some back ground on this issue our previous printer HP Officejet 6500A about a month ago starting printing abnormally slow, and eventually reached a crawl not doing anything. 
    So im not totally lost, yet as of now do not know what is going on. 

    Hello Libertine74,
    Welcome to the HP Forums.
    I see that you are having some connectivity issues when attempting to print wireless.
    Please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    I have also located a document that deals with when the Printer Does Not Maintain Wireless Connection.
    Please feel free to write me back if you have any other questions or concerns.
    Cheers,   
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Problem with final issue of production order components

    Hi Gurus,
    Currently we have a problem with the production order components.
    The problem is that, we needed some components (components which are categorized as dangerous goods) deleted from the production orders.
    So we tried to manually tick the final issue indicator and save the production order. However, the reservations reappeared after the MRP Run.
    Hence, we then tried to delete the component line items, but then again the reservations reappeared.
    Also, since the components are externally procured materials, new purchase requisitions are generated by MRP for these materials.
    Kindly request your help on the same.
    Thanks and Regards,
    Sanju

    Hi Kiran,
    Please find the screenshots of MD04 for the header and component in the attachment:
    MD04 for Header:
    MD04 for Component:
    For the header material no entry is available for 07.01.2015 as the status is delivered for the production order of the header material.
    Kindly help me with the same.
    Thanks,
    Sanju

  • OS X 10.5.x AirPort Dropout Issue - Problem with Apple

    I am posting this as a new topic in the hope that Apple will take urgent action to resolve these AirPort dropout issues with OS X 10.5.x.
    Yesterday, I installed setup a new 40GB partition on my firewire drive and installed OS X 10.5.2 (from my original installation dvd) and did all updates (via Software Update) to arrive at an up-to-date OS X 10.5.5. Only stock standard OS X 10.5.5 installed now.
    Some interesting observations along the way:
    1. After installing 10.5.2 the AirPort network kept dropping out or stalling.
    2. Installed following updates:
    - AirPort Utility (5.3.2)
    - QuickTime (7.5.5)
    - iLife Support (8.3)
    - iTunes (8.0)
    - Remote Desktop Client Update (3.2.2)
    - Java For Mac OS X 10.5 Update 1 (1.0)
    I did not update to OS X 10.5.5 at this time.
    3. Restarted and AirPort network stable and fast.
    4. Ran Software Update again - installed:
    - Front Row Update (2.1.6)
    - Mac OS X Update Combined (10.5.5)
    5. Restarted and AirPort network stable and fast.
    6. Ran Software Update again - all software up to date.
    7. Repaired permissions with Disk Utility.
    Everything has been going fine with connections to the internet with Safari - until this morning.
    My 'clean' OS X 10.5.5 installation is now suffering from the same AirPort network dropouts - no 3rd party applications installed. Ran OK for a day, but after being shutdown for 5 or 6 hours, the problem arose following startup this morning.
    Conclusion:
    1. AirPort problem with OS X 10.5.x; or
    2. AirPort problem with new 17" MBP; or
    3. Problem with AEB 802.11n (gagabit ethernet); or
    4. Problem with DSL modem or ISP connection.
    Comments on item 1 - think I have conclusively eliminated 3rd party software.
    Comment on item 2 - no problems indicated by TechTool Delux or TechTool Pro 4; works OK via ethernet connection.
    Comment on item 3 - previously did factory reset and textbook setup on AEB. Connection via AEB 802.11g relay and remote work fine.
    Comment on item 4 - fact that other computers connect OK and this computer can connect OK via ethernet rules out problems with DSL modem and ISP.
    Draw your own conclusions, but I am now certain the problem is clearly with Apple.

    Hello,
    looks same to me.
    the log says:
    kernel AirPort: Link Down on en1
    kernel unable to collect channel list from hal;(...)
    my AEB is just 2 ms away from the MacBookPro, the AEB is brand new.
    In the moment I have an ethernet cable going from the router through the house, because the AEB is unrelyable. I used all the tricks people posted and said it would solve the problem, which is not the case for me. Dropouts just continue.
    With the old ufo-style extreme there was no problem at all.
    So please Airport developers put effort to solve the problem and suffering of users.
    thanks

Maybe you are looking for

  • How can I delete podcasts from my Mac without them deleting on my iPhone?

    I'm trying to free up some space on my office Mac, and there's only one podcast out of several I actually listen to at work. So I deleted one of the other, bigger podcasts from the list in iTunes. Unfortunately, when I go into the Podcasts app on my

  • One other user & I can no longer see each other in the buddy list

    My friend & I, who have used iChat for years, and also recently, and neither of us has changed anything, can no longer see each other in either one of our buddy lists. We've checked: - That neither of us is blocking the other - That other people can

  • How to transport proxy  object  abap part

    Hi , I am working with one outbound proxy . The proxy was working fine in production ,now one requirement came in which we have to add one extra field to Proxy .field has been added in message type  and proxy was generated in respective ABAP box abap

  • Date & Time on Photos

    Hi there,  Need to be able to show & print  date & time on the photos I take with my 9320, can anybody suggest how.

  • Waking computer any password works

    Hello - I am using my work MacBook at home.  When my computer goes to sleep, and then I try to wake it, the username and password prompt appears.  Unsually I have to enter my password to get access to my computer.  However, now I can type ANYTHING in