<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008C3jiNSAROkta Classic EngineAdministrationAnswered2019-11-22T23:27:33.000Z2016-07-20T10:47:22.000Z2018-08-12T04:14:24.000Z
  • Hi Anshu

    Yes, you need the IdP's certificate.

    Are you writing your own SP? Most SPs or SAML libraries come with functionality to do this, and I strongly suggest using one because it can be tricky to get it right yourself.

     

    Thanks.
    Expand Post
    Selected as Best
  • Hi Anshu

    Yes, you need the IdP's certificate.

    Are you writing your own SP? Most SPs or SAML libraries come with functionality to do this, and I strongly suggest using one because it can be tricky to get it right yourself.

     

    Thanks.
    Expand Post
    Selected as Best
  • AnshuK.96543 (Customer)

    We are using Guidewire as SP. 

    For validation of signature it is expecting idp's public and private key.

    How do we get both idp's keys? Is this avalible in the idp's certificate?

     

    BasicCredential basic = new BasicCredential()

    basic.setPublicKey(publicKey)

    basic.setPrivateKey(privateKey)

    var sigValidator = new SignatureValidator(basic)

    Expand Post
  • Hi Anshu

    A private key belongs to the entity that created it and no one else (that's why it's "private"). The public key, on the other hand, can be shared with anyone. So, Okta's private is internal to Okta, no one else can see it.

    Furthermore, to verify a signature only requires a public key (not a private key).

    Can you post URLs for Guidewire and/or the code you listed above?
    Expand Post
This question is closed.
Loading
How to validate signature in SAML Response from Okta to SP?