Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows compatibility #1

Open
laukstein opened this issue Jan 30, 2018 · 7 comments
Open

Add Windows compatibility #1

laukstein opened this issue Jan 30, 2018 · 7 comments

Comments

@laukstein
Copy link

laukstein commented Jan 30, 2018

README.md steps 1-2 works fine on Windows (will create rootCA.key and rootCA.pem).
Step 3 is related only for OS X.

  1. Trust this certificate after importing it to your System keychain

Windows doesn't have System keychain.
And step 4 fails:

> sh createSelfSigned.sh
createSelfSigned.sh: cannot make pipe for process substitution: Function not implemented
req: Option -config needs a value
req: Use -help for summary.
x509: Cannot open input file server.csr, No such file or directory
x509: Use -help for summary.
@s-okubanjo
Copy link

Yes please @dakshshah96 what tool can Windows users use instead

@dakshshah96
Copy link
Owner

@laukstein @s-okubanjo Coming soon! I'm currently working on a Windows version of these scripts. 🎉

@laukstein
Copy link
Author

@binakot
Copy link

binakot commented Sep 12, 2018

And it would be nice to add a script to convert from PEM to CRT:

openssl x509 -in rootCA.pem -inform PEM -out rootCA.crt

@hashimK
Copy link

hashimK commented Oct 11, 2018

@laukstein follow the below steps to trust the root SSL certificates
To install root SSL certificate in windows 10, use Microsoft Management Console(MMC)

Step 1: Click Start > Run
Step 2: Enter MMC to open Microsoft Management Console.
Step3: Go to File > Add/Remove Snap-in
Step 4: Click Certificates, and select Add
Step 5: Select Computer Account, and click Next
Step 6: Select Local Computer and click Finish
Step 7: Click OK to go back to main MMC console window.
Step 8:Double-click Certificates (local computer) to expand its view.
Step 9:Right-click Certificates under Trusted Root Certification Authorities and select All Tasks then Import
Step 10:Complete the wizard to import the chain certificate. Browse to locate the chain certificate to be imported or rootCA.pem file to import
Step 11: Select Place all certificates in the following store and select the Trusted Root Certification Authorities store.Click Next; then click Finish to complete the wizard.

Then follow the steps mentioned by @dakshshah96 unitl you reach the green highlighted part. Use this code instead of the one mentioned by @dakshshah96
"C:\Program Files\OpenSSL-Win64\bin\openssl.exe" req -new -sha256 -nodes -out server.csr -newkey rsa:2048 -keyout server.key -config server.csr.cnf
Then again follow the steps mentioned by @dakshshah96 . It works this way on Windows :)

A BIG Thanks to @dakshshah96

P.S: I'm referring to this blog written by @dakshshah96
https://medium.freecodecamp.org/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec

@konstantin24121
Copy link

@hashimK Do you have trusted certificate for localhost? or browser marks it as untrusted? I tried many manuals but chrome still mark https as untrusted

@newcanopies
Copy link

@dakshshah96

in principle, on WSL2 running Ubuntu, would you run your package on both Windows and WSL2 layer?

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants