How can I pass der encoded certificates in tls config of tonic?

I am trying to read DER encoded certificates and want to convert it to Identity object of "tonic::transport". There is only "from_pem" function in Identity object, is it possible to create Identity object from DER encoded certificate?