Installing an applet on a JavaCard - applet

I am trying to install an applet on a JavaCard using GlobalPlatformPro, however keep getting the error code 6985 - conditions of use not satisfied. I have done some research and found that this could mean the card is locked?
Installing an applet is the first thing I tried to do when I got this error so I haven't (at least purposefully) locked it myself.
When listing all the applets on the card my applet is there, but listed as 'LOADED' and not 'SELECTABLE' which I believe it should be.
Is there a way I can inlock the card? Or is this another issue?

Your card is not locked. If the card is locked you cannot list the applets anymore. The mutual authentication would also fail, only "selection of the application with the Final Application privilege." according to GP 2.3.1 is possible.
If the applet could get loaded but not installed, i.e. the loading succeeded and the package is on the card but the instantiation failed, this means usually that an exception was thrown in the constructor or the install method. Debug your code by removing code until the installation works to find the erroneous code line. It could also be that an applet with the same instance AID is already on the card.

Related

Smart Card Validation Pin Error 0x80100001

I'm using gemalto usb token and SafeNet software to digitally sign my documents in Adobe Acrobat Pro. While everything worked fine and nothing has changed, I'm getting this error after entering my (correct) pin number. The message says: 'Error occurred during PIN validation'. According to authentication return values, it is related to:
SCARD_F_INTERNAL_ERROR: An internal consistency check failed.
Besides that, 'Validating Signatures' option in Adobe is disabled.
Thank you!
For somebody else encountering a similar problem: The error code is by PCSC, and so not necessarily card-related.
If other applications are also unable to verify the PIN, issue might be caused by reader driver, or as in the case above by any software required for accessing the card [here: SafeNet]. Re-installing those is worth a ttry.
Same problem here.
On a new PC couldn't use this token.
I checked how windows recognized the device on a different one where worked fine. Seems like the culprit is a newer driver from microsoft.
All I had to do was to replace it. Visit here and click:
"Gemalto IDPrime - SmartCard - 10/20/2017 12:00:00 AM - 8.5.0.7 Windows 10 Creators Update and Later Servicing Drivers"
Download the cab file.
Extract it.
Next you have to "update" the driver with the old one.

Using the Plugin Profiler

Hi every one and sorry for my poor English.
Im' trying to use the plugin profiler in Dynamics CRM 2011 but I can't really success to use it.
First, when i try to Profile an asynchronous plugin i'm not able to Download the error Log file (fine with synchronous, th message dialog pop and i can click on the link button to download it)
Is that possible to use Plugin profiler on asynchronous plugin ?? If yes, how i download the error log file ? I know asynchronous plugin are not executed at the same place, that probably why i d'ont have the dialog message but i can see the task have been executed in the "Parameters" "systems task" in the CRM itself. The status of the task is waiting. I can see in the error details something like the error log but i'm not able to download it.
Second, with synchronous plugin it work fine. I'm able to download the error log file and put it in the plugin registration debug tool. But when I attach my process and run the start execution my plugin stop at this line wich work fine when the plugin execute itself normally :
IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
//This line i got null references exception
serviceFactory.GetType().GetProperty("ProxyTypesAssembly").SetValue(serviceFactory, typeof(Account).Assembly, null);
I got a null reference exception. This line needed to use early bound in plugin. (If i remove this line i got some error during the plugin execution : "Unable to cast object of type 'Microsoft.Xrm.Sdk.Entity' to type '....'."
After doing some test it's the property he can't get with the Plugin Profiler :
//Null
var myProperty = serviceFactory.GetType().GetProperty("ProxyTypesAssembly");
I got null reference for the property with Plugin Profiler but during a normal execution of the plugin this work fine. Any ideas ??
Thx a lot !
For async plugin you have to select another Profile storage. You need "Persist to Entity" option, not the "Exception". That is step 6 from this link
Hope that helps.

Hosted app: “Installation of this item may not work properly”

My hosted app is showing a floating banner with a notice saying “Installation of this item may not work properly.” on its Google Chrome Web Store product page. The app is undiscoverable by searching the Web Store.
What is causing this problem? I find no additional information in the developer dashboard.
If you get this message, it is probable that there really is an error in the manifest or locale files (For example, in my case it was a trailing comma on the locale files).
The process y follow to solve the problem was:
Try to instal the app version you have just submited to the chrome store. When you try to install the app you will probably get a error message thats points you on the track of the problem of your manifest file.
Solved the problem on the app and upload it again. You may get the same error on the developers panel. Two thinghs can be appening:
A) If you've already corrected all errors in the manifest files remenber to publish the changes and what is more important remenber that the publication process may take a few minutes to become effective. The message will disappear after a while if everything is okay. (This explains why is you look on the internet for that problem you find people saying that the message will disappear after a while)
B) If error persist event after the publishing process have been complete finished. You may have not solved all error on the manifest file go back to Step 1
cheers
I had this exact problem. When I tried installing, I got an error message about a missing file.
When I removed my locales directory, everything worked fine.

VxWorks PCI driver - compilation error

I am trying to write a PCI device driver in VXworks. Even though the source file is in place for the pciConfigLib, after compilation, it throws error stating " undefined function reference".
Any help is appreciated.
Thanks
VxNewbee
I am just going to throw this out there, but if you are in fact calling Pcifinddevice then that is wrong, you need pciFindDevice (case matters)
If that doesn't work, then from the vxworks shell can you show me the output of
lkup "pci"
Also be sure to read the device driver developers guide:
http://www.mecatronica.eesc.usp.br/wiki/upload/0/07/Vxworks_device_driver_developers_guide_6.0.pdf
It doesn't really have a good basic example of how to create a basic driver, but if you are using eclipse, then you should be able to create a new device driver project in there, it does give some good advice however, start from an existing template driver. Also there are other docs that you should be able to access from the wind river support site.
http://www.windriver.com/products/vxworks/

Using Turbolinks with Selenium IDE

When I run my selenium test without the turbolinks gem installed in my Ruby on Rails app, the tests pass. When I include turbolinks, the tests fail. For example if the test starts off
Open /
clickAndWait link=Sign in
type id=session_email any#example.com
Then I will get an error
"[error]Element id=session_email not found.
When I look at the page source, the session_email id is still there with turbolinks installed. I found this page, http://www.digitalkingdom.org/rlp/tiki-index.php?page=Selenium+And+Javascript, which seems to indicate there could be a problem with detecting the page has fully loaded.
Is there away to fix this without changing hundreds of lines in my test suites? If not, is there a reliable selenium method that can test that a turbolinked page has fully loaded?
After some help with the github turbolinks-compatability project, I am able to provide a partial answer to this question.
If the turbolinks gem is being used, then you will need to modify your selenium test cases in order to make sure the page is really loaded. For example, if your test has the following code in it
Open /
clickAndWait link=Sign in
type id=session_email any#example.com
then it needs to be modified to
Open /
click link=Sign in
waitForElementPresent id=session_email
type id=session_email any#example.com
There are a number of "waitFor" modifiers you can used, depending on what is the feature on the page you want to test next.
However, if the test involves a javascript pop up, then you should not add a waitFor command. So for example if you have at test like
clickAndWait link=Delete
assertConfirmation Are you Sure?
you should not modify the code. Indeed adding a waitFor test hangs execution in the case of javascript popups.
This solution involves line-by-line manual modification of the code. I have opened up an issue on the Selenium Users group to see if there is some better way to handle this problem.