Skip to content

Commit

Permalink
PHP proxy creates cert with basic constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
blindlf committed Aug 18, 2015
1 parent 0b5259d commit 7d93d19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions php_proxy/local/cert_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ def create_ca():
ca.set_subject(req.get_subject())
ca.set_pubkey(req.get_pubkey())
ca.sign(key, CertUtil.ca_digest)
v3 = OpenSSL.crypto.X509Extension('basicConstraints', False, 'CA:TRUE')
ca.add_extensions([v3])
return key, ca

@staticmethod
Expand Down

0 comments on commit 7d93d19

Please sign in to comment.