I feel it would be nice if the library was able to accept certificate and private key as string variable, because this would be really handy when you are testing a new certificate and don't want to deal with temp files. If you agree, I could make a pull request.