
SAP Cloud Integration (aka CPI) allows to send messages from an iFlow to an Event Broker via AMQP.
The AMQP adapter can be configured with Basic Authentication or with Client Certificate.
This blog post shows how to configure client certificate authentication in iFlow for sending messages to Solace PubSub+ Event Broker.
Part 1: Introduction
Part 2 : Create Client Certificate Chain
Part 3 : Configure Solace (this blog post)
3.0. Check Authentication Options
3.1. Upload Root Certificate
3.2. Authorization for Client
3.3. Create Queue
3.4. Connection Details
Part 4: Configure CPI, create iFlow, run
At Solace side, we have 3 tasks to do:
1. upload the new root CA certificate
2. configure authorization for the new client
3. create a queue
0. There’s a prerequisite:
Certificate-based authentication must be enabled.
We check this in a step zero.
4. Furthermore, we need to get a hold of the connection details, to be used by CPI.
We need an additional step 4.
I assume you know better than myself how to work with Solace and use the Event Broker, so keeping it short.
To start with configuration, we logon to the PubSub+ Cloud console at
https://console.solace.cloud/login
We go to “Cluster Manager” and select our Event Broker service instance.
Then choose “Manage” tab above.
Then “Authentication” tile on top left.
Make sure that it is “Enabled”.
Otherwise, click on the tile and enable “Client Certificate Authentication”.
In addition, if desired, enable the date-validation.
Don’t forget to “Save”.
This section could also be called “Establish Trust”, between Solace server and CPI.
After uploading our root certificate, the Solace server will be able to trust the client certificates that are signed by this root (via chain).
We go to “Cluster Manager”, select our Event Broker service instance and choose the “Manage” tab.
Then click “Certificate Authorities”:
We’re ready to upload our root.cert by pressing “Add Client Certificate Authority”:
We browse to our c:\solace\root.cert
and enter any name of our choice.
Save.
It may take some time to upload.
This section could also be called “Mapping between Client Cert and User”.
Remember that usually the Event Broker is accessed by users.
In our case, we don’t send a username, but a certificate.
But still, a user is required at the Broker-side.
As such, we create a new username.
This user must correspond to the client certificate.
This is done by an implicit mapping:
The new user gets a name that is identical to the “Common Name” (CN) of the client certificate.
OK.
We have to go to the broker manager.
“Cluster Manager” -> Event Broker service instance
On top of the page we can jump to the “PubSub+ Broker Manager”
There, we click on “Access Control” on the left pane.
Then “Client Usernames” tab on top.
Then we click on “➕Client Username” button on the top right corner.
Now we enter the value of “CN” in our client certificate.
To save us from headache, we should copy&paste the name from our certificate.
We need the readable (decoded) certificate.
Remember the useful command?
openssl x509 -noout -text -in client.cert
The find the "Subject"
In our example, we copy "democlient" and paste it into the new username dialog.
Press “Create”.
This new user has to be enabled in the subsequent screen:
Don’t forget to save by pressing “Apply”.
This section could also be called “create topic”.
We just need some target to send messages to.
We go again to “Open PubSub+ Broker Manager” and choose “Queues” at left navigation pane.
There, we press “➕ Queue” and enter a name of our choice, e.g. “demo”:
Nice queue – but empty.
All certificates and configurations at Solace are useless – if we don’t connect to the broker and send messages to the (nice but empty) queue.
So we need to gather the connection details.
We go to “Cluster Manager” -> Event Broker service instance.
Click on “Connect” tab.
Expand AMQP section.
Copy the AMQP Host value:
The username and password can be used for Basic Auth testing.
But that's not part of our tutorial.
Part 4: Configure CPI, create iFlow, run scenario
Solace
Solace home
Solace Event Broker Cloud Trial
The Solace dashboard entry
Docu for Solace PubSub+ Cloud
✨✨✨✨✨
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
13 | |
12 | |
12 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 |