Import client certificate using Mendix Service Console

0
  Hi there, I consume a Rest service which needs client certificate. (saw this post ) In my local enviroment, I imported the certificate from 'project settings > Certificates' and it works fine. But I cannot find a import function of certificates in Mendix Service Console. So I tried to import with custom settings. - ClientCertificates  I set like this : 'C:/Users/project/ApplicationCA2.cer'. - ClientCertificatePasswords  The client certificate has no password. but I have to set 'ClienCertificatePasswords'.  So I set blank to the 'ClienCertificatePasswords'. When I do Run locally, following error occurs, Use DER encoded binary X.509(.CER) or Cryptographic Message Syntax Standard(.P7B) com.mendix.m2ee.api.AdminException: Starting Mendix Runtime failed. at com.mendix.basis.impl.MxRuntimeImpl.fireZeeMissile(MxRuntimeImpl.java:541) Caused by: java.io.IOException: DER input, Integer tag error at sun.security.util.DerInputStream.getInteger(DerInputStream.java:192) at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1916) at java.security.KeyStore.load(KeyStore.java:1445) at com.mendix.basis.conf.CertificateProcessor.setClientCertificates(CertificateProcessor.java:94) at com.mendix.basis.conf.CertificateProcessor.readCertificates(CertificateProcessor.java:46) at com.mendix.basis.impl.MxRuntimeImpl.readConfiguredCertificates(MxRuntimeImpl.java:615) at com.mendix.basis.impl.MxRuntimeImpl.fireZeeMissile(MxRuntimeImpl.java:534) ... Use Base 64 4ncorded X.509(.CER) com.mendix.m2ee.api.AdminException: Starting Mendix Runtime failed.     at com.mendix.basis.impl.MxRuntimeImpl.fireZeeMissile(MxRuntimeImpl.java:541) Caused by: java.io.IOException: toDerInputStream rejects tag type 45     at sun.security.util.DerValue.toDerInputStream(DerValue.java:874)     at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1915)     at java.security.KeyStore.load(KeyStore.java:1445)     at com.mendix.basis.conf.CertificateProcessor.setClientCertificates(CertificateProcessor.java:94)     at com.mendix.basis.conf.CertificateProcessor.readCertificates(CertificateProcessor.java:46)     at com.mendix.basis.impl.MxRuntimeImpl.readConfiguredCertificates(MxRuntimeImpl.java:615)     at com.mendix.basis.impl.MxRuntimeImpl.fireZeeMissile(MxRuntimeImpl.java:534) ...     Does Anyone have any idea how to solve this? Thanks in advance! Satomi
asked
1 answers
0

Did you see this forum post: https://forum.mendix.com/link/questions/87225? I am no expert with on premise installations but I think it will largely depend on which server you did the installation and how to get the certificates on that server.

Regards,

Ronald

 

answered