Whilst trying to determine why I'm unable to test my APIs on the DataPower Gateway from within the API Manager, I was looking at some of the underlying Developer Portal commands, including: -
list_sites
which returned: -
5995c388e4b0d25e2a2ee8f2.5995c388e4b0d25e2a2ee8fe => portal.uk.ibm.com/davehay/sb (INSTALLED) <!> Webhooks not configured
and: -
status
System version: 7.x-5.0.7.2-20170629-1629
Distribution version: 7.x-5.0.7.2-20170628-2109
Free disk space: 16G
Set Hostname: OK
DNS Server: Reachable (192.168.153.2)
APIC SSH Key: OK
Configuration:
APIC Hostname: management.uk.ibm.com
APIC IP: 192.168.153.130
Devportal Hostname: portal.uk.ibm.com
Devportal IP: 192.168.153.132
APIC Certificate Status (Default): ERROR - The certificate that was presented by the remote was self signed, but with the expectation that it would be CA signed.
Please ensure that there is a valid CA signed certificate being used by the APIM servers and ensure any intermediate public certificates are presented or are in the trust store.
Node is standalone
Site web check: All sites OK
Site services:
Webhooks: Some DOWN <!> (portal.uk.ibm.com/davehay/sb)
Background sync: All sites Up
Services:
Queue is Up
Database [Mysql] is Up (Standalone)
Web Server [Nginx] is Up
PHP Pool [Php5-fpm] is Up
Inetd [Openbsd-inetd] is Up
REST [Restservice] is Up
FAILURE: Some services are DOWN.
Distribution version: 7.x-5.0.7.2-20170628-2109
Free disk space: 16G
Set Hostname: OK
DNS Server: Reachable (192.168.153.2)
APIC SSH Key: OK
Configuration:
APIC Hostname: management.uk.ibm.com
APIC IP: 192.168.153.130
Devportal Hostname: portal.uk.ibm.com
Devportal IP: 192.168.153.132
APIC Certificate Status (Default): ERROR - The certificate that was presented by the remote was self signed, but with the expectation that it would be CA signed.
Please ensure that there is a valid CA signed certificate being used by the APIM servers and ensure any intermediate public certificates are presented or are in the trust store.
Node is standalone
Site web check: All sites OK
Site services:
Webhooks: Some DOWN <!> (portal.uk.ibm.com/davehay/sb)
Background sync: All sites Up
Services:
Queue is Up
Database [Mysql] is Up (Standalone)
Web Server [Nginx] is Up
PHP Pool [Php5-fpm] is Up
Inetd [Openbsd-inetd] is Up
REST [Restservice] is Up
FAILURE: Some services are DOWN.
which was less than impressive.
Thankfully the Knowledge Centre saved me: -
which said, in part: -
So I ran the command: -
download_apim_cert
which returned: -
depth=0 C = US, ST = NY, L = Armonk, O = IBM Corporation, CN = API Connect
verify error:num=18:self signed certificate
verify return:1
depth=0 C = US, ST = NY, L = Armonk, O = IBM Corporation, CN = API Connect
verify return:1
DONE
WARNING: The common name provided in the certificate, "Connect", does not match the configured IBM APIC server: "management.uk.ibm.com". The developer portal will be configured to trust the provided certificate without checking that the server name matches the common name.
Setting user provided https certificate for portal.uk.ibm.com/davehay/sb
verify error:num=18:self signed certificate
verify return:1
depth=0 C = US, ST = NY, L = Armonk, O = IBM Corporation, CN = API Connect
verify return:1
DONE
WARNING: The common name provided in the certificate, "Connect", does not match the configured IBM APIC server: "management.uk.ibm.com". The developer portal will be configured to trust the provided certificate without checking that the server name matches the common name.
Setting user provided https certificate for portal.uk.ibm.com/davehay/sb
I then re-ran the status command: -
status
System version: 7.x-5.0.7.2-20170629-1629
Distribution version: 7.x-5.0.7.2-20170628-2109
Free disk space: 16G
Set Hostname: OK
DNS Server: Reachable (192.168.153.2)
APIC SSH Key: OK
Configuration:
APIC Hostname: management.uk.ibm.com
APIC IP: 192.168.153.130
Devportal Hostname: portal.uk.ibm.com
Devportal IP: 192.168.153.132
APIC Certificate Status (Mismatch): WARNING - Only suitable for development and PoC purposes.
Node is standalone
Site web check: All sites OK
Site services:
Webhooks: All sites Up
Background sync: All sites Up
Services:
Queue is Up
Database [Mysql] is Up (Standalone)
Web Server [Nginx] is Up
PHP Pool [Php5-fpm] is Up
Inetd [Openbsd-inetd] is Up
REST [Restservice] is Up
SUCCESS: All services are Up.
and the list_sites command: -
list_sites
5995c388e4b0d25e2a2ee8f2.5995c388e4b0d25e2a2ee8fe => portal.uk.ibm.com/davehay/sb (INSTALLED)
So that's all good then ….
No comments:
Post a Comment