TlsAcceptor::new accepts a file and a password as parameters. It goes against the constructor in the origin native-tls crate where it accepts Identity. Due to Identity is encapsulated from_pkcs8 method is missed.
I think this crate should extend the origin one, not override it.
Could you align API of both crates one to one? Or add other possibility to use from_pkcs8 method?
TlsAcceptor::newaccepts a file and a password as parameters. It goes against the constructor in the originnative-tlscrate where it acceptsIdentity. Due toIdentityis encapsulatedfrom_pkcs8method is missed.I think this crate should extend the origin one, not override it.
Could you align API of both crates one to one? Or add other possibility to use
from_pkcs8method?