I'm questioning if this is the right command for the job in the first place on a gateway.
When I try to execute this command on a regular (non-SMB) R77.30 or R80.10 gateway, I get an "operation failed" message.
When I execute it on a management, I get what you describe, a bunch of lines that look like:
Subject = CN=animal,O=bunsen..9zzzzz
Status = Valid Kind = SIC Serial = 11111 DP = 0
Not_Before: Thu Aug 17 09:19:53 2017 Not_After: Wed Aug 17 09:19:53 2022
Which makes sense since the internal certificate authority only exists on the management.
It should have all the certificates for all managed gateways.
The above example is the certificate for a gateway managed by this SmartCenter.