Authentication

Authenticating with MotorWeb NZ API's

Certificate Based Authentication (mTLS)

At MotorWeb NZ, we use a secure method called mTLS (mutual Transport Layer Security) for authenticating access to our APIs. This is done through the use of certificates which must be passed with each API request.

A Quick Summary of mTLS:

Think of it like a digital handshake with two-way verification, in basic terms it works like this:

  • You Prove You're You: When your system connects to our API, it presents a unique digital certificate. This certificate acts like your "digital ID card", proving your identity to us.

  • We Prove We're Us: At the same time, our API also presents its own digital certificate to your system. This confirms that you are indeed connecting to the legitimate MotorWeb API and not a fraudulent site.

  • Secure, Encrypted Connection: Once both sides have successfully verified each other's certificates, a secure, encrypted communication channel is established. All data exchanged between your system and our API is then encrypted and private.

Real World Examples:

Using cURL:

Below is an example on how to include a certificate and password in your cURL request:

curl --cert-type P12 --cert motorwebnz.p12:<CERTPASSWORD> https://robot.motorweb.co.nz/b2b/bvi/generate/4.0?plateOrVin=ABC123

Using Postman

In the Postman application, head to the settings and do the following:

  • General > SSL certificate verification > OFF

  • Certificates > Client Certificates > Add Certificate >

    • Host = robot.motorweb.co.nz

    • PFX file = select locally saved MotorWeb certificate (e.g. motorweb.p12)

    • Passphrase = Password for certificate (check emails)

Once these steps have been complete you should be able to make a request to any of our API's with the base URL of robot.motorweb.co.nz

Using Java

Last updated