Skip to content

Instantly share code, notes, and snippets.

View salom12's full-sized avatar
:octocat:
Working from home

Ahmed M. Salim salom12

:octocat:
Working from home
View GitHub Profile
@salom12
salom12 / namecheap SSL.md
Created March 18, 2024 13:45 — forked from Shourai/namecheap SSL.md
Letsencrypt SSL certificate with namecheap hosting

source: https://savedlog.com/uncategorized/letsencrypt-ssl-certificate-namecheap-hosting/

The “Positive SSL” certificate I bought along with my domain is invalid with any of my subdomains and cannot be used with wildcards. One annoying thing is that namecheap doesn’t offer auto installation of free let’s encrypt certificates, even though, they are saying “Namecheap is dedicated to data security and privacy for all internet users. We believe the movement to encrypt nearly all web traffic is a positive direction. As more sites embrace HTTPS and use of security products, providers of free SSL are beginning to come online.”

Let me show you what it needs to be done in order to “encrypt nearly all web traffic”.

First, not required but it’s helpful to enable ssh access, it is not enabled by default on the base hosting plans, just go an start a live chat and request ssh access.

server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
proxy_pass http://localhost:1337;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
# Login
```
Amplify.Auth.signIn(username: "example@something", password: "1234")
```
Google Login
```
Amplify.Auth.signInWithWebUI(provider: AuthProvider.google);
```