X.509 and PKCS#11 provider

Sorry if I'm asking the stupid question, but there is something in JCE PKCS#11 provider architecture that I'm missing.
Let's say I have some hardware crypto module (e.g. SUN SCA-6000) and want to be sure that all crypto work is done in it. So I would configure PKCS#11 provider as the 1st (highest priority) entry in java.security file (and configure PKCS#11 to use my hardware crypto module).
Now, let's say I need to work with some X.509 certificate. When I check the supported algorithms of PKCS#11 and SUN providers, it looks like CertificateFactory.X509 algorithm is supported only by SUN provider, and not by PKCS#11 provider.
http://java.sun.com/javase/6/docs/technotes/guides/security/p11guide.html#ALG
http://java.sun.com/javase/6/docs/technotes/guides/security/SunProviders.html#SUNProvider
So I wonder what does this essentially mean? Does it mean that even though I configured my HCM PKCS#11 provider, some crypto work is still done in other software modules (e.g. SUN provider)? Or may be SUN provider just "decomposes" these "high-level" algorithms to more "primitive" ones (e.g. Signature.SHA1withRSA) and essentially "proxies" all work to whatever provider supports these "primitive" algorithms - i.e. essentially to my HCM PKCS#11 provider?
Regards,
Alex

This is not a stupid question. Any question involving cryptography isn't stupid IMO, and one that includes hardware security modules (HSM) is even less stupid. :-)
That said, sabre150 has provided some information, and I'll try to add a little more from my experience.
HSM's are used primarily to perform "raw" cryptographic operations in highly constrained environments for security reasons - the goal is to ensure that symmetric keys (DES, 3DES, AES) or the private-keys of asymmetric key-pairs (RSA, DSA, EC) do not come out of the HSM into the main memory of the computer. This ensure that attackers cannot snoop the secrets from main memory.
So, the CertificateFactory in JCE is primarily used to do cryptographic operations with the digital certificate; however any operation involving just the digital certificate - and not its corresponding private-key - involves just the public-key in the certificate, the certificate attributes or certificate extensions. Since ALL information in a digital certificate is public information, there is no reason to waste HSM resources to perform X509 operations inside the security module. Not only is there nothing to protect in those operations, but as sabre150 pointed out, some old HSM's may not be able to handle them very well.
However, some HSM's are not just for security, but they also perform crypto-acceleration. This means that they can speed up raw cryptographic processing, and there is a benefit from having them perform even the public-key operations inside the HSM. However, the PKCS11 libraries will typically send in only the "raw" crypto operation into the HSM, leaving all the certificate-parsing work outside.
One final point: in order to make sure that you are definitely performing all secret operations inside an HSM, make sure you explicitly name the specific HSM provider for your crypto operations, otherwise the JVM may silently use a software module to perform the operation (if possible) and expose your secret in main memory.
Hope that helps.

Similar Messages

  • OWSM 11g : Authentication Providers for X.509 and SAML policies

    Hi All,
    I am currently trying to implement the X.509 and SAML policies. As per the documentation for these polices I need to configure an authentication provider(or Identity Assertion provider) that can handle perimeter authentication via the NameCallback. I had configured an authentication provider(default authentication provider) that handled the namecallback and passwordcallback. What I can't figure out is how do these two authentication providers differs. And, incase one has to configure for the X.509 and SAML policies how to do the same.
    Any pointers will be useful. Especially, from anyone who has worked and implemented the above policies.
    Thanks in advance.
    Edited by: Shomit Sahdev on ८ अप्रैल, २०१० १२:२५ पूर्वाह्न

    After research by Oracle Support it actually turns out that this problem was a combination of factors:
    1) some clients were effectively using an invalid certificate so it is corrrect they got an error and everything worked fine when they started using the right certificate
    2) it does, however, turn out that, in the case of an error the error handling has been obfuscated in WLS 10.3.6 as compared to WLS 10.3.4 which gives a more descriptive error stating the nature of the problem (missing certificate, invalid certificate, unknown user, ...). Apparently this was deemed a security issue and has thus been replaced by a generic "internal server error". It is however possible to re-activate this older behaviour using a couple of JAVA_OPTS that you pass during server startup:
    -Dweblogic.wsee.security.debug=true -Dweblogic.wsee.security.verbose=true
    The above reintroduced the behaviour we had in WLS 10.3.4 and thus solves our problem!

  • My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    Hmmmm... would appear that you need to be actually logged in to enable the additional menu features.
    Have you tried deletting the plists for MAS?
    This page might help you out...
    http://www.macobserver.com/tmo/answers/how_to_identify_and_fix_problems_with_the _mac_app_store
    Failing that, I will have to throw this back to the forum to see if anyone else can advise further.
    Let me know how you get on?
    Thanks.

  • Since my last firefox update, I have been unable to type an email - the text box does not appear when I press 'reply' , or press 'compose'. The email provider is '123-reg.co.uk. I have been using both firefox and the provider ['webfusion Ltd/webmail123] s

    Hello. Since my last firefox update, I have been unable to type an email - the box within which one would usually type does not appear when I press 'reply' to a received email, or press 'compose'. The email provider is '123-reg.co.uk. I have been using both firefox and the provider ['webfusion Ltd/webmail123] successfully for well over a year. The provider says it is a browser problem. I can still add an attachment to the email header, which successfully can be sent, but the recipient gets my standard email 'signature' with font messages and the attachment. Can anyone help? My email addresses are [email protected] [this is the one with the issue] and [email protected] in English
    == today

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • "Amount, currency, and date fields and service provider reset"

    Hi all,
    I am trying to save a trip request via TCode: TRIP but receive the following message:
    "Amount, currency, and date fields and service provider reset"   Messsage no. PTRA_WEB_INTERFACE150
    The system is on ECC6.0 with IS-PS (i.e. Funds management activated).
    Anyone encountered this previously - hope you can share your solution.
    Thanks in advance.

    Hi
    I am also facing the same and checked the table mention below and dates are same but still facing the error "Amount, currency, and date fields and service provider reset" along with other error message i.e "Expense type not allowed (T70S_RECEIPT)" .
    Please guide .
    V_T706B1
    V_T706B1_A
    V_T706B1_B
    V_T706B4
    V_T706B4_A

  • Difference  Between Provide and RP-PROVIDE-FROM-LAST  in ABAP-HR

    what is the Difference Between Provide and RP-PROVIDE-FROM-LAST  IN hR. IF I want to retrieve data in BETTWEEN BEGDA AND ENDDA. what these 2 ill return.
       Both ill return the LAtest record. plz  let me know what ill happen.
      With Regards,
       Venkata Suresh K

    PROVIDE is like a loop statement and it reads records between BEGDA and ENDDA. There is a lot to it, you can read doc...
    RP-PROVIDE-.. _> This is like read table.
    It is similar to : Sort itab descending. read itab index 1.
    If you want data between BEGDA and ENDDA and you have 2 internal tables, you can use PROVIDE. Otherwise, you can use a normal LOOP statement. Provide is helpful if you want to get data from more than 1 table.
    For eg: Infotype 0000 has 2 records from 1.1.2000 to 1.1.2006, and 2.1.2006 to 31.12.9999, and Infotype 0185 has 1 record from 1.1.2005 to 31.12.9999.
    If you use a provide BETWEEN BEGDA and endda in this case, it will run through the loop 3 times with these dates :
    1.1.2000 to 31.12.2004.
    1.1.2005 to 1.1.2006
    2.1.2006 to 31.12.9999
    If a record is not there in one of the internal tables during the date, there is a PNNNN_VALID flag which is filled up (4.6c) and in mySAP onwards, you have explicit valid flags.
    Hope it helps. Please reward points if helpful.
    Regards.
    Samant

  • Difference between RP_PROVIDE_FROM_LAST and RP-PROVIDE-FROM-LAST

    Can anyone tell me the difference between RP_PROVIDE_FROM_LAST and RP-PROVIDE-FROM-LAST?  Both the macros are same difference is with underscore(_) and hiphen(-).  Both are working fine for the functionality without any difference.  Then why there are two macros for a single functionality?

    Just providing the links are considered as link farming ( which are against the rules of the forums ), the links would be removed for the following reasons:
    1) If a link is provided( not many ) , then you must point out the explanation in it
    2) If the links were easily searchable by the OP
    3) If the links just direct you to sap documentation
    4) If the reply consists only bunch of link references.
    I think the 3rd & 4th point made your post to be deleted.
    There are no links which states the differences between these two Macro's. Mod's are doing their right job, please join them and make this forum clean
    Kesav

  • Why do we need to specify Role baseprovider and membership provider in Central Admin and security config files?

    Hi,
    why do we need to specify role base provider and membership provider files in central admin and securiy config files.
    thanks,
    gaurav

    We use 3 settings in Forms based auth:
    1 Membership = This contains Users and groups information. (This table also has username and password)
    2 ConnectionString = Connetion details to connect to database is stored here(servername, databasename, username, password, port )
    3 Role = This table contains all the Roles (Admin, contibutor, etc of the data source)

  • Provide and End Provide....

    Hi All,
    I would like to know the Provide and End Provide usage and the syntax for the same.
    Thanks in Advance,
    Praveen

    Hi Ashis,
    Thanks for your reply here is my program
    REPORT  ZIBP_UPDATE_TECH_QUALS3.
    DATA: BEGIN OF I_TECHS OCCURS 0,
            TECID TYPE BU_PARTNER.
            INCLUDE STRUCTURE BAPIRET2.
    DATA: END OF I_TECHS.
    DATA: V_TECID TYPE BU_PARTNER.
    TABLES : BUT001.
    SELECT-OPTIONS: S_TECIDS FOR BUT001-PARTNER.
    SELECT PARTNER FROM BUT000 INTO TABLE I_TECHS
       WHERE TYPE = '1'  AND
        PARTNER IN S_TECIDS.
    DATA: V_ESADDRESS LIKE BAPIBUS1006_ADDRESS.
    LOOP AT I_TECHS.
    *first get country of technician
    *the get conditions for the product for that country
    *then validate the course,certificates requirement against possessed by technician.
      CLEAR: V_ESADDRESS.
      CALL FUNCTION 'BUPA_ADDRESS_GET_DETAIL'
       EXPORTING
         IV_PARTNER              = I_TECHS-TECID
      IV_PARTNER_GUID         =
      IV_ADDRNUMBER           =
      IV_ADDRGUID             =
      IV_VALDT                = SY-DATLO
       IMPORTING
         ES_ADDRESS              = V_ESADDRESS          .
      IF V_ESADDRESS-COUNTRY = SPACE.
        I_TECHS-NUMBER = 012.
        I_TECHS-ID = 'ZLEN'.
        I_TECHS-TYPE = 'E'.
        MESSAGE E012(ZLEN) INTO I_TECHS-MESSAGE.
        MODIFY I_TECHS.
      ENDIF.
      DATA: I_SRV_CONDS LIKE ZIBP_QUAL_CONDI OCCURS 0 WITH HEADER LINE.
    Types: begin of I_TEC_COURSES.
           include structure ZBUT0000HCZ0SY.
    Types: end of I_TEC_COURSES.
      DATA: I_TEC_COURSES LIKE ZBUT0000HCZ0SY OCCURS 0 WITH HEADER LINE.
      DATA: I_TEC_CERTS LIKE ZBUT0000FAZ1S7 OCCURS 0 WITH HEADER LINE.
      DATA: I_SRV_CONDS2 LIKE ZBUT0000F8FNVK OCCURS 0 WITH HEADER LINE.
      SELECT * FROM ZIBP_QUAL_CONDI INTO TABLE I_SRV_CONDS
          WHERE COUNTRY = V_ESADDRESS-COUNTRY.    "AND PRODUCTID = PRODUCT.
      SELECT * FROM ZBUT0000F8FNVK INTO TABLE I_SRV_CONDS2
          WHERE  ZZBRAND_GROUP = I_SRV_CONDS-PRODUCTID.
    *get Training courses, certificates here
      SELECT * FROM ZBUT0000HCZ0SY INTO TABLE I_TEC_COURSES
          WHERE PARTNER = I_TECHS-TECID.
      SELECT * FROM ZBUT0000FAZ1S7 INTO TABLE I_TEC_CERTS
          WHERE PARTNER = I_TECHS-TECID.
    DATA: SRVDT_NUMC(14) TYPE N.
    SRVDT_NUMC(8) = SERVICEDT(8).
    SRVDT_NUMC+8(6) = '000000'.
      DATA: THIS_COND_FAILED, THIS_COURSE_PASSED.
      DATA: CURRENT_PROD LIKE I_SRV_CONDS-PRODUCTID.
      DATA: THIS_PRODUCT_DONE.
      SORT I_SRV_CONDS BY PRODUCTID.
      LOOP AT I_SRV_CONDS.
        AT NEW PRODUCTID.
          CURRENT_PROD = I_SRV_CONDS-PRODUCTID.
          CLEAR: THIS_PRODUCT_DONE.
        ENDAT.
        CHECK THIS_PRODUCT_DONE = SPACE.
        CLEAR: THIS_COND_FAILED.
        DATA: TMSTMP_FROM LIKE I_TEC_COURSES-DATE_FROM,
              TMSTMP_TO  LIKE I_TEC_COURSES-DATE_FROM.
        DATA: DAT TYPE D,   "tim TYPE t,
              TZ  TYPE TTZZ-TZONE.
        TZ = 'UTC'.
        DAT = '00010101'.   "tim = '013000'.
        CONVERT DATE DAT INTO TIME STAMP TMSTMP_FROM TIME ZONE TZ.
        DAT = '99991231'.   "tim = '013000'.
        CONVERT DATE DAT INTO TIME STAMP TMSTMP_TO TIME ZONE TZ.
        DATA: WA1 LIKE I_TEC_COURSES.
        DATA: WA2 LIKE I_TEC_COURSES.
        DATA: WA3 LIKE I_TEC_COURSES.
        DATA: WA4 LIKE I_TEC_COURSES.
        DATA: WA5 LIKE I_TEC_COURSES.
        DATA: WA6 LIKE I_TEC_COURSES.
        DATA: WA7 LIKE I_TEC_CERTS.
        DATA: WA8 LIKE I_TEC_CERTS.
        DATA: WA9 LIKE I_TEC_CERTS.
        DATA: FLAG1(1) TYPE C,
              FLAG2(1) TYPE C,
              FLAG3(1) TYPE C,
              FLAG4(1) TYPE C,
              FLAG5(1) TYPE C,
              FLAG6(1) TYPE C,
              FLAG7(1) TYPE C,
              FLAG8(1) TYPE C,
              FLAG9(1) TYPE C.
        PROVIDE  * FROM I_TEC_COURSES INTO WA1
                                       VALID FLAG1
                                       BOUNDS DATE_FROM AND DATE_TO
                                       WHERE COURSEID = I_SRV_CONDS-COURSE1
                                       BETWEEN TMSTMP_FROM AND TMSTMP_TO.
          WRITE: / WA1-DATE_FROM, WA1-DATE_TO, WA1-COURSEID, FLAG1.
          SKIP.
        ENDPROVIDE.
      ENDLOOP.
    ENDLOOP.

  • Doubt about integration CUCM and VoIP Provider

    Hi Guys,
    I have the follow doubt: Is possible to do integration CUCM and VoIP Provider using authentication? Is there necessary another equipment to do this? CUBE for example? or another alternative
    Thanks,
    Wilson

    If you are referring to authentication over sip trunk, then NO! CUCM doesn't do authentication you will need a CUBE for that

  • Model provider class and data provider class

    please explain Model provider class and data provider class?

    Hi,
    both MPC and DPC get generated as runtime artifacts.
    MPC - This is used to define model. you can use the method Define to create entity, properties etc using code based implementation. you rarely use MPC extension class.
    DPC - used to code your CRUDQ methods as well as function import methods. you write all your logic in redefined methods of DPC extension class.
    Refer Generated ABAP Classes and Service Registration - SAP NetWeaver Gateway - SAP Library for more information.
    you can also refer my blog Let’s code CRUDQ and Function Import operations in OData service! which will provide you clear idea on how to redefine various CRUDQ methods in DPC extension class.
    Regards,
    Chandra

  • Event IDs 508,509 and 510 (Health Service ESE Store) on SCOM agents

    Hi Team,
    Many of my SCOM agents are getting the Event IDs 508,509 and 510 on them.
    HealthService (2944) Health Service Store: A request to write to the file "C:\Program Files\System Center Operations Manager\Agent\Health Service State\Health Service Store\edb.log" at offset 1485312 (0x000000000016aa00) for 512 (0x00000200)
    bytes succeeded, but took an abnormally long time (60 seconds) to be serviced by the OS. This problem is likely due to faulty hardware. Please contact your hardware vendor for further assistance diagnosing the problem.
    Because of these events I keep getting "Health Service Heartbeat Failure" Alerts in SCOM whenever these events occur on the agents. After a couple of minutes these alerts get auto resolved and closed.
    Has anyone faced a similar issue and let me know what should be done here to solve the issue.
    Thanks,
    S K Agrawal

    I am still not able to resolve the issue. But I came to know that the servers that had this issue were having some issue with the blade servers they all were hosted on and probably this is the issue they got these Event IDs.
    I am closing this as a faulty hardware issue on the servers.
    Thanks, S K Agrawal

  • How to change phone number and service provider

    Assuming you kept the same Blackberry device and changed your number and service provider.
    How one can update this information on Blackberry ID.
    Solved!
    Go to Solution.

    Hello aasalem
    Please refer to this Knowledge Base :
    KB03889 : Changing the service provider or network
    Go through it and let us know if you have any questions.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Domain name and hosting provider

    Can anyone recommend a good domain name and hosting provider (preferably based in Australia if possible) that I can use to set up my customers' websites? I'm with Domain Central and ready to hang myself. I've been with them for 3 years and decided to stay because it was just too hard to leave, but if I could find something better I'd be out of there. The interface is the most confusing, erronious, complex, slow, antiquated and difficult piece of software I've ever known and the help documentation in way relates to what is actually there.
    I have a reseller account with them, which means I buy the domain name and hosting space at about half the price that it would normally be, make a small profit on it, and still pass on a good rate to my customers.  Domain Central is cheap, but after this latest fiasco, I've wasted so much time on Help desk it's not worth it. I want a provider that has an easy to use, straightforward website, so I can sign up for some sort of reseller account, buy the domain name and hosting at a discounted rate, do the name servers and all that stuff myself and even set up email accounts without too much grief and suffering.
    Any advice would be so appreciated. What do other web designers do? I've come to the point of having a hollow feeling of dread when I log in to Domain Central : (

    I'd recommend heading over to www.webhostingtalk.com .  You'll get a better and faster response.  But you will need to be more specific for them with your needs.  The registrar part is simple, but the hosting you should add in what type of plan you think you are looking for (reseller, VPS, dedicated), how much space/bandwidth you require, environment (Unix vs Windows), database/scripting information, etc., etc.

  • Why apple is not disable people friendly and not providing an auto answer solutions for iphones isn't it the best smartphone in the world?

    why apple is not disable people friendly and not providing an auto answer solutions for iphones isn't it the best smartphone in the world?

    Your question sounds more like a statement.
    It's just a phone afterall...

Maybe you are looking for

  • The Sky is Falling! ORA-01652: unable to extend temp segment by 128

    So we currently have a production problem and I'm not so in the know as a lowly java developer and not an Oracle expert. We keep getting this error(below) when a certain heavy query hits the DB. Our DBA claims that the tablespace for 'TABLE_SPACE_NAM

  • Out look 365 crash when preview excel or word file

    Good day Nobody help me first time i write I got this problem with my outlook 365 Every time i try to preview excel or word file in any message on outlook 365  It hang then crash and restart Fny help how can i fix this problem i even try to fast rein

  • Oracle Globalization - GetSessionInfo gives error

    I am using ODP.Net OracleGlobalization class to get the SessionInfo and then to override the sessionInfo settings. I am able to override these settings properly on an English OS with the NLS_Lang set to American_America.AL32UTF8. After overridding th

  • Having trouble updating to Aperture 2.1.1

    Hello, Has anyone come across this. I have Aperture 2 installed on my computer and I am trying to update to 2.1.1. only to get the error message (ALERT Aperture 2.0 or later is required to install this update) ?? Then I am forced to close the update.

  • Suspend + Resume crashes

    I moved from Ubuntu to Arch today on my main computer in an effort to curb a problem I have been having: On Ubuntu, every once in a while when I would suspend + resume, the computer would freeze upon resume. Now, with Arch it has yet to suspend and n