(self, domain, proto=None, ciphers=None)
| 399 | domain, tls=tls, ciphers=ciphers) |
| 400 | |
| 401 | def get_server_cert(self, domain, proto=None, ciphers=None): |
| 402 | args = [ |
| 403 | "openssl", "s_client", "-status", |
| 404 | "-connect", "%s:%s" % (self._httpd_addr, self.https_port), |
| 405 | "-CAfile", self.acme_ca_pemfile, |
| 406 | "-servername", domain, |
| 407 | "-showcerts" |
| 408 | ] |
| 409 | if proto is not None: |
| 410 | args.extend(["-{0}".format(proto)]) |
| 411 | if ciphers is not None: |
| 412 | args.extend(["-cipher", ciphers]) |
| 413 | r = self.run(args) |
| 414 | # noinspection PyBroadException |
| 415 | try: |
| 416 | return MDCertUtil.parse_pem_cert(r.stdout) |
| 417 | except: |
| 418 | return None |
| 419 | |
| 420 | def verify_cert_key_lenghts(self, domain, pkeys): |
| 421 | for p in pkeys: |
no test coverage detected