Hi Martin, thanks for the response, but it did not work for me:
curl --insecure -k --data "common_name=itm1level.app.corp.dsa.de:itm1level" https://192.168.98.134/rpc/enroll/SearchCertificate {"error":{"message":"Missing or invalid parameters: The following fields do not match the expected type of value","code":40004,"data":{"fields":[{"name":"common_name","error":"I18N_OPENXPKI_UI_VALIDATOR_EMPTY_BUT_REQUIRED"}]}}} curl -k -H "Content-Type: application/json" -d '{ "params": { "common_name":"itm1level.app.corp.dsa.de" } }' https://192.168.98.134/rpc/enroll/SearchCertificate {"error":{"message":"Missing or invalid parameters: The following fields do not match the expected type of value","code":40004,"data":{"fields":[{"name":"common_name","error":"I18N_OPENXPKI_UI_VALIDATOR_EMPTY_BUT_REQUIRED"}]}}} I really don't know what I am doing wrong here. Best, On Fri, Nov 22, 2024 at 9:47 AM Martin Bartosch via OpenXPKI-users < [email protected]> wrote: > Hi, > > > I am facing an issue for a while now regarding rpc, for instance I make > the following calls: > > > > curl --insecure -k -F "common_name=itm1level.app.corp.dsa.de:itm1level" > \ https://192.168.98.134/rpc/enroll/SearchCertificate > > curl --insecure -k -F "common_name=CN=itm1level.app.corp.dsa.de:itm1level" > \ https://192.168.98.134/rpc/enroll/SearchCertificate > > > > curl --insecure -k -F "common_name=CN=itm1level.app.corp.dsa.de" \ > https://192.168.98.134/rpc/enroll/SearchCertificate > > > > curl --insecure -k -F "common_name=itm1level.app.corp.dsa.de" \ > https://192.168.98.134/rpc/enroll/SearchCertificate > > > > ..... and I get the same error every time: > > {"error":{"message":"Missing or invalid parameters: The following fields > do not match the expected type of > value","data":{"fields":[{"error":"I18N_OPENXPKI_UI_VALIDATOR_EMPTY_BUT_REQUIRED","name":"common_name"}]},"code":40004}} > > Try > > --data "common_name=..." instead of -F "common_name...". > > Cheers > > Martin > > > > > _______________________________________________ > OpenXPKI-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openxpki-users > -- Tamara Nikolovska. --------------------------------- Linkedin: https://www.linkedin.com/in/tamara-nikolovska-55887b16a/ Skype: [email protected] (skype name: *nikolovska.t_94*)
_______________________________________________ OpenXPKI-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openxpki-users
