Hi,
You can not add SSL certificate through Cmdlet. You need to do it through Web login.
Though you can get the SSL certificate info by using Cmdlet Get-HPEOAcertificate -Type OA .
In your case you are adding SSL certificate and trying to Add certifcate as CA certificate, becuase of this you are getting error as invalid certificate.