Created
          February 27, 2019 08:34 
        
      - 
      
- 
        Save mikaelvesavuori/79d56eae791e6f1699bfafde5ffb44af to your computer and use it in GitHub Desktop. 
    HTTPS Certificate for Localhost
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # From: https://letsencrypt.org/docs/certificates-for-localhost/ | |
| openssl req -x509 -out localhost.crt -keyout localhost.key \ | |
| -newkey rsa:2048 -nodes -sha256 \ | |
| -subj '/CN=localhost' -extensions EXT -config <( \ | |
| printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth") | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment