Unable to get friendlyname from PKCS12 certificate when using ruby openssl 1.0.2m

When using the bash openssl I get Certificate bag items including friendly name, but when using ruby openssl and trying to convert from pkcs12 to PEM it does not return the friendlyname (or bag items) is there a specific flag I need to use?