Restconf HTTPS/TLS Jolokia with server and client certificates CA signed
[Documentation] Tests HTTPS request with ODL TLS config and client authentication by using CA signed certificates for Jolokia
- [Tags] exclude
+ Clean Up Certificates In Server
+ Generate Server CA Signed Certificate
+ Generate Client CA Signed Certificate
+ #TLS Request
+ PycURLLibrary.Set Url https://${ODL_SYSTEM_IP}:${RESTCONFPORT_TLS}/${JOLOKIA_CONF_SHARD_MANAGER_URI}
+ PycURLLibrary.Add Header "Content-Type:application/json"
+ PycURLLibrary.Add Header Authorization:Basic YWRtaW46YWRtaW4=
+ PycURLLibrary.Client Certificate File ${USER_HOME}/client_ca_signed-cert.pem
+ PycURLLibrary.Private Key File ${USER_HOME}/client_ca_signed-key.pem
+ PycURLLibrary.Request Method GET
+ PycURLLibrary.Perform
+ PycURLLibrary.Log Response
+ PycURLLibrary.Response Status Should Contain 200
+ ${resp} PycURLLibrary.Response
+ Should Contain ${resp} "request":{"mbean":"org.opendaylight.controller:Category=ShardManager,name=shard-manager-config,type=DistributedConfigDatastore"
*** Keywords ***
Log Certificates in Keystore
ClusterManagement_Setup
Clean Up Certificates In Server
Disable TLS in ODL
+ Install a Feature odl-jolokia
Cleanup Suite
[Documentation] Deletes pending sessions in case there were any