Created
          November 2, 2017 10:02 
        
      - 
      
- 
        Save tom2strobl/8f8b7c941b232de93c63ace491757ef3 to your computer and use it in GitHub Desktop. 
    https://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
    
  
  
    
  | cd; mkdir .ssl | |
| openssl req -newkey rsa:2048 -x509 -nodes -keyout .ssl/localhost.key -new -out .ssl/localhost.crt -subj /CN=localhost -reqexts SAN -extensions SAN -config <(cat /System/Library/OpenSSL/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:localhost')) -sha256 -days 3650 | |
| sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain .ssl/localhost.crt | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment