Lines Matching refs:certificate
18 # Returns the path to the trusted +certificate+
20 def cert_path certificate
21 name_path certificate.subject
34 certificate = load_certificate certificate_file
36 yield certificate, certificate_file
44 # Returns the issuer certificate of the given +certificate+ if it exists in
47 def issuer_of certificate
48 path = name_path certificate.issuer
56 # Returns the path to the trusted certificate with the given ASN.1 +name+
74 # Add a certificate to trusted certificate list.
76 def trust_cert certificate
79 destination = cert_path certificate
82 io.write certificate.to_pem