如何在XML的WSO2 Enterprise Integrator 7 IDE中添加.csr证书

问题描述

您好,有人可以告诉我如何将curl命令中的.csr证书添加到xml中的wso2企业集成商中。 curl -v -X POST --cert {{path_to_client_certificate_Generated_in_developer_portal}} --cert-type DER --key {{insert_path_to_private_key_used_to_create_CSR}} -H“内容类型:application / x-www-form-urlencoded” -H“接受: application / json“ -H” x-fapi-financial-id:test“ -H” Cache-Control:no-cache“ -d'grant_type = client_credentials&scope = accounts&client_assertion_type = urn:ietf:params:oauth:client-assertion-type :JWT承载&client_assertion = eyJhbGciOiJSUzI1NiIsImtpZCI6IjhkZThjYTc3LWQ2ODEtNDc4Mi04MTIyLWUwMzkyNTg5MDIxYiJ9.eyJpc3MiOiIyMTFlMzZkZS02NGIyLTQ3OWUtYWUyOC04YTViNDFhMWE5NDAiLCJhdWQiOiJodHRwczovL3NhbmRib3guaHNiYy5jb20vcHNkMi9vYmllL3YzLjEvYXMvdG9rZW4ub2F1dGgyIiwic3ViIjoiMjExZTM2ZGUtNjRiMi00NzllLWFlMjgtOGE1YjQxYTFhOTQwIiwiaWF0IjoxNDk5MTgzNjAxLCJleHAiOjE3NzkzNDg1MjF9.uu282OmEHUa0t6z6T68MfXzEGGgq8PiWuyJxuNQ1be6iWdD5sVbw3W --_ O6TFAH-ae7BYXsE0kncYgA6gF9AmkXuA77w_Wbn2YyjPCB9gDCkrlJUS6rvb3UJYcIBZ7W-WZlRAsRE0l6EV74c5xnyL9c7cpGMfQ-HfPsYOG4JCsrvtpAHdo7jHWTVgKoe67jWGQkNOYt1Ba7rCf4y-fqQ3d6hZoptAAc Jd26yigvV4768GHQGrBvgAc7OzutOGzYARAgStpjQMp0kMiOGIzq-TUsDlvtMrx2fH8gfy2uG2HvzsROkbNedL-iO5PmswNrDvCYEWZmVjMcavg / ps / s.as。

<resource methods="POST" url-mapping="/getAccounts">

    <inSequence>

        <header name="Content-Type" scope="transport" value="application/x-www-form-urlencoded"/>

        <header name="Accept" scope="transport" value="application/json"/>

        <header name="x-fapi-financial-id" scope="transport" value="test"/>

        <header name="Cache-Control" scope="transport" value="no-cache"/>

        <property expression="$trp:grant_type" name="client_credentials" scope="default" type="STRING"/>

        <property expression="$trp:scope" name="accounts" scope="default" type="STRING"/>

        <property expression="$trp:client_assertion_type" name="urn:ietf:params:oauth:client-assertion-type:jwt-bearer" scope="default" type="STRING"/>

       <!--   <property expression="json-eval($.authorization)" name="prop.bearer.token" scope="default" type="STRING"/> -->

        <payloadFactory media-type="json">

            <format>{

“ grant_type”:“ $ 1”,

“作用域”:“ $ 2”,

“ client_assertion_type”:“ $ 3”

}

            <args>

                <arg evaluator="xml" expression="$trp:grant_type"/>

                <arg evaluator="xml" expression="$trp:scope"/>

                <arg evaluator="xml" expression="$trp:client_assertion_type"/>

            </args>

        </payloadFactory>

        <call>

            <endpoint>

                <http method="post" statistics="enable" uri-template="https://sandbox.hsbc.com/psd2/obie/v3.1/as/token.oauth2">

                    <suspendOnFailure>

                        <initialDuration>-1</initialDuration>

                        <progressionFactor>-1</progressionFactor>

                        <maximumDuration>0</maximumDuration>

                    </suspendOnFailure>

                    <markForSuspension>

                        <retriesBeforeSuspension>0</retriesBeforeSuspension>

                    </markForSuspension>

                </http>

            </endpoint>

        </call>

        <sequence key="conf:sequence/HttpFaultSequence.xml"/>

解决方法

据我了解,您的要求是更新Integration Studio随附的微型集成器中的密钥库。您可以直接从Integration Studio安装位置更新密钥库。在Mac中,这个位置是

/Applications/IntegrationStudio.app/Contents/Eclipse/runtime/microesb/repository/resources/security

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...