Home | History | Annotate | Download | only in cros

Lines Matching refs:pem

273     """Returns the mock owner private key in PEM format.
275 @return: mock owner private key in PEM format.
295 The key is 2048 bits. The generated material is stored in PEM format
303 certfile = scoped_tempfile.tempdir.name + '/cert.pem'
314 PEM-encoded private key and the DER-encoded public key.
316 @return: (PEM-encoded private key, DER-encoded public key)
328 Given paths to a private key and cert in PEM format, stores the pair
331 @param keyfile: path to PEM-formatted private key file.
332 @param certfile: path to PEM-formatted cert file for associated public key.
346 def cert_extract_pubkey_der(pem):
347 """Given a PEM-formatted cert, extracts the public key in DER format.
349 Pass in an X509 certificate in PEM format, and you'll get back the
352 @param pem: path to a PEM-formatted cert file.
356 cmd = '%s -in %s -pubkey -noout ' % (OPENSSLX509, pem)
367 Using the PEM-formatted private key in |pem_key|, generates an
371 @param pem_key: PEM-formatted private key, as a string.
381 pem_key_file = scoped_tempfile(scoped_tempfile.tempdir.name + '/pkey.pem')