websphere - How to extract certificate from SAML Identity provider Metadata -


i using websphere's admintask.importsamlidpmetadata() function import saml idp metadata server.

admintask.importsamlidpmetadata('-idpid 1 -ssoid 1 -idpmetadatafilename ' + idpmetadatafile + ' -signingcertalias ' + idpcertificatealias + securitydomainparam);

it working fine.

problem if same certificates imported under other alias then, not create new alias same certificate.

to achieve need write custom logic tasks of importsamlidpmetadata() , in create alias

my questions:

  1. how extract certificate idp metadata. ( in java, jython or ant )

  2. how check if certificate present in websphere "signer certificates". ( in java, jython or ant )

i tried doing above task myself 1) certificate can extracted idp metadata in java, normal xml pasring , reading

2) check if certificate present in websphere "signer certificates" :- use jython certificates

admintask.listsignercertificates('[-keystorename nodedefaulttruststore -keystorescope (cell):cell_name:(node):node_name ]')

it give big string each key value pair in square brackets []

pass java , parse required.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -