mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[GH-ISSUE #67] Unclear how to use it (need help please) #35
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bogdan-h on GitHub (Aug 23, 2018).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/67
I'm not an expert in this matter, but I really need help as I exhausted all the resources I had available (SO mostly).
So, what I need is to be capable to communicate over "https" with a local OWIN server (hosted inside a console application). Until now what I was doing was to generate a self-signed-certificate (from Windows), add it to the windows certificate store and then register it to the localhost for a specific port as follows :
netsh http add urlacl url=https://localhost:1234/ user=Everyone
netsh http add sslcert ipport=0.0.0.0:1234 certhash= appid={generate-guid}
This doesn't work properly and I will receive an 'ugly' : "Not Secure" mark form chrome browser.
What I tried to do with your application was to generate a certificate (in either .pem or .p12 format) , import it in the 'Local Computer->Trusted root' certificates store and then try to use it in the manner described above - where the <cert-thumb...> will be the thumbprint of the "mkcert" generated certificate.
I was not able to get to any successful result as I will always received:
"SSL Certificate add failed, Error: 1312
A specified logon session does not exist. It may already have been terminated. "
Can you please give me a couple of pointers on how to use your application in Windows in order to get a proper local-certificate ?
Btw - after executing "mkcert -install" I will receive :
D:_Projects\localhost-certificate>mkcert -install
Using the local CA at "C:\Users\bogdan\AppData\Local\mkcert" ✨
Note: Firefox support is not available on your platform.
What is different from this message and the one that you are presenting is the mention that :
The local CA is now installed in the system trust store! - which I don't have in my case.
Thank you in advance.
@nickkaczmarek commented on GitHub (Aug 23, 2018):
Have you tried putting it in the Personal/Certificates location in the .p12 format? Also, are you using IIS as your webserver?
I believe the firefox error is because it's not yet supported for mkcert in Windows. At least not currently.
@bogdan-h commented on GitHub (Aug 23, 2018):
Hi Nick,
No, actually I did not try to place it on the Personal Certificates stores (from the Local Machine) and I'll try that asap.
Now regarding the IIS - as I was mentioning I'm not connecting to IIS but to an OWIN web server hosted in a console application. Think about it as a web server under the NodeJS framework :
Also my note referring to the message after executing mkcert -install was that I did not received the 'The local CA is now installed in the system trust store!' message which I was expecting.
Long story short I'm not able to get to the localhost and get something like that (and how/what I need to do in order to get it) :
@treadpit commented on GitHub (Sep 12, 2018):
I am a newbie, and performed the following operations:
everything is ok, but When I start the service of port 8080,in browser:
httpand
httpsWhat is missing?
@adamdecaf commented on GitHub (Sep 12, 2018):
What service is running on localhost:8080? Can it handle tls?
@treadpit commented on GitHub (Oct 29, 2018):
@adamdecaf I'm sorry, this problem caused by my nginx config, thanks for your help.