Lines Matching refs:der
267 """Returns the mock owner public key in DER format.
269 @return: mock owner public key in DER format.
299 PEM-encoded private key and the DER-encoded public key.
301 @return: (PEM-encoded private key, DER-encoded public key)
332 """Given a PEM-formatted cert, extracts the public key in DER format.
335 DER-formatted public key as a string.
338 @return: DER-encoded public key from cert, as a string.
340 outfile = scoped_tempfile(scoped_tempfile.tempdir.name + '/pubkey.der')
342 cmd += '| %s -outform DER -pubin -out %s' % (OPENSSLRSA,
345 der = utils.read_file(outfile.name)
346 return der