Presentation is loading. Please wait.

Presentation is loading. Please wait.

While the audience is gathering. During breaks etc

Similar presentations


Presentation on theme: "While the audience is gathering. During breaks etc"— Presentation transcript:

1 While the audience is gathering. During breaks etc
While the audience is gathering. During breaks etc. Simple messages can be added in bold and white letters on the dark blue sea, eg. ”Welcome!”, ”Back at 15.15”

2 HOW-TO use CURL and SWAGGER
Convert to pm12

3 API tests This HOW-TO describes the use of swagger file to test REST interface

4 Windows browser Installing MC Root certificate in Windows Browser
The root certificate will tell the browser that the exchanged certificates for SSL is trusted Get the correct root certificate from MCP (OBS! different root certificates for PRODUCTION and STAGING environment) Download the Windows file Install the Root Certificate (open the mc-ca-certs.cer file) Select Certificate store ”Trusted Root Certification Authorities” Alternate slide for wider illustrations

5 Windows browser Installing MC Client certificate in Windows Browser
The client certificate will be used for authentication to the accessed service Issue a client certificate from MCP (service certificate with correct domain name) Download the certificate including the private key (must be done immediately after issuing) Convert the files into .p12 files Install the Client Certificate (open the .p12 file) Select default storage and finalise Alternate slide for wider illustrations

6 API tests SMA VIS instance can be tested with a browser (public VIS SeaSWIM side)

7 On Windows Converting certificate from PEM to p12
Download OpenSSL into local folder Issue a Certificate from the MC Portal and download the certificate Unpack the Certificate, there should be three (3) files Run cmd and go to the OpenSSL folder Run command ‘set RANDFILE=.rnd’ Run command ’openssl pkcs12 -export -in Your_Certificate_file.pem -inkey Your_PrivateKey_file.pem -certfile mc-ca-chain.pem -name "Your_certificate_name" -out Your_certificate_output_filename.p12’ Select password You should know have a .p12 file that can be installed in a windows browser which allows you to be authenticated towards a SeaSWIM Connector.

8 curl Download curl Download MC Root Certificate
E.g. Download MC Root Certificate Download Client Certificate MC Portal Issue relevant certificate and download certificate

9 curl For Windows; Adjust the client certificate
Convert the .pem certificate to .p12 See HOW-TO Convert PEM to P12 set RANDFILE=.rnd openssl pkcs12 -export -in certificate.pem -inkey privkey.pem -certfile mc-ca-chain.pem -name "Your_certificate_name" -out key.p12 Convert the .p12 back to .pem openssl pkcs12 –in key.p12 –out key.pem -clcerts

10 curl Example of curls to VIS curl --cert Mikael.pem --cacert mc-ca-chain.pem --header Accept:application/json --http1.1 -X GET " curl --cert Mikael.pem --cacert mc-ca-chain.pem --header Accept:application/json --header Content-Type:application/json --http1.1 -X GET --data “” curl --cert Mikael.pem --cacert mc-ca-chain.pem --header Content-Type:text/xml --http1.1 -X POST -T TestData/RTZ10.xml

11 At the end – you could add text in black like ”Thank You !”


Download ppt "While the audience is gathering. During breaks etc"

Similar presentations


Ads by Google