In this article I will show you how to implement SSL/TLS in nginx on windows in a very comprehensive and step by step way

0) Download & Install OpenSSL from: https://slproweb.com/products/Win32OpenSSL.html
1) Create an OpenSSL config file (example: req.cnf):
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = US
ST = VA
L = SomeCity
O = MyCompany
OU = MyDivision
CN = www.company.com
[v3_req]
keyUsage = critical, digitalSignature, keyAgreement
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = www.company.com
DNS.2 = company.com
DNS.3 = company.net
Create the certificate referencing this config file by command in cmd:
openssl req -x509 -nodes -days 730 -newkey rsa:2048 \
-keyout cert.key -out cert.crt -config req.cnf -sha256
(Ref: https://stackoverflow.com/questions/43665243/invalid-self-signed-ssl-cert-subject-alternative-name-missing)
2) Add the generated certificate…


In this article we we will see how to show/hide password just by using bootstarp and jquery without any custom css

you will need fontawesome for eye icon you can use any other symbol in its place just change jquery a bit according to your need:

to follow along add font awesome cdn link on your page:

<link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

and also add any jquery cdn link or downloaded version:

Add following html:

<label>Password</label><div class="input-group mb-2 mr-sm-2"><div class="input-group-prepend"><div class="input-group-text"><span toggle="#password-field" class="fa fa-fw fa-eye field-icon toggle-password"></span></div></div><input id="password-field" value="" type="password" class="form-control" /></div>

Asp.net core provides us default claims-based authorization policies in which we can require single or multiple claims from a user to be able to do an action but those are quite basic and we may quite often require a logic to use boolean operators ,access to the repository or route values for example in a case where we want to check if a request to access or update entry is made by the owner of that entry(should have same user id as the requested record) or an admin to implement that logic in this article we will learn how to…

Muhammad Maaz Qureshi

Software engineer by profession,Continuous Leaner,Book lover

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store