Leno
Leno
CC#
Created by Leno on 12/10/2023 in #help
Self-signed SSL certificate for application development
No description
4 replies
CC#
Created by Leno on 12/10/2023 in #help
Self-signed SSL certificate for application development
How to correctly use the generated certificate? I've tried various solutions, and none of them have worked appsettings.json
//...
"Kestrel": {
"EndPoints": {
//"HttpsInlineCertAndKeyFile": {
// "Url": "https://localhost:8443",
// "Certificate": {
// "Path": "./localhost.pem",
// "KeyPath": "./localhost-key.pem"
// }
//},
//"HttpsDefaultCert": {
// "Url": "https://localhost:5004"
//},
"HttpsInlineCertFile": {
"Url": "https://localhost:8443",
"Certificate": {
"Path": "./certificate.pfx",
"Password": "password"
}
}
}
}
//...
"Kestrel": {
"EndPoints": {
//"HttpsInlineCertAndKeyFile": {
// "Url": "https://localhost:8443",
// "Certificate": {
// "Path": "./localhost.pem",
// "KeyPath": "./localhost-key.pem"
// }
//},
//"HttpsDefaultCert": {
// "Url": "https://localhost:5004"
//},
"HttpsInlineCertFile": {
"Url": "https://localhost:8443",
"Certificate": {
"Path": "./certificate.pfx",
"Password": "password"
}
}
}
}
4 replies