WS-Security - JKS or DER file ?

wim.godden.net's picture
We're trying to get WS-Security working. We've been given a Java KeyStore file (.jks) but that's not supported (ofcourse). They then offered us a .der file, which is also not supported, but we're able to convert it to a .pem file using OpenSSL. However, how do we get the .cert file from the .der ? Is there some way to do this ?
koen.thomeer.be's picture

DER -> PEM conversion

Just convert it with OpenSSL: openssl x509 -in cert.der -inform DER -out cert.pem -outform PEM then put cert.pem in: $cert = ws_get_cert_from_file("cert.pem");
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
KeellsSuper is a leading supermarket chain with 50-plus outlets in Sri Lanka, and it offers the only online supermarket in the country. In 2005, JKH implemented SAP ERP across it’s 70 subsidiaries...
Thursday, February 16th 2012, 09.00 AM (PST)

Thursday, February 16th 2012, 10.00 AM (GMT)