Tag: https

Gitlab

Setup HTTPS for Gitlab

Generate a new private key and a Certificate Signing Request openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.reqopenssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.req Generate a certificate signing request (CSR) for an existing private key openssl req -new -key example.com.key -out example.com.reqopenssl req -new -key example.com.key -out example.com.req Edit Gitlab …

WEB Servers

Configuring HTTPS server – Nginx

Generate a new private key and a Certificate Signing Request openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.reqopenssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.req Generate a certificate signing request (CSR) for an existing private key openssl req -new -key example.com.key -out example.com.reqopenssl req -new -key example.com.key -out example.com.req Edit nginx …

Debian

Debian 8 Apache SSL/TLS

Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), both of which are frequently referred to as “SSL”, are cryptographic protocols that provide communications security over a computer network. Several versions of the protocols are in widespread use in applications such as web browsing, email, Internet faxing, instant messaging, and voice-over-IP (VoIP). Major …

C

How to overcome ERROR_INTERNET_INVALID_CA error in C

ERROR_INTERNET_INVALID_CA (12045) – The function is unfamiliar with the Certificate Authority that generated the server’s certificate. //… DWORD invalidcaFlags, invalidcaFlagsLen = sizeof(invalidcaFlags); requestAgain: if (!CLFU(HttpSendRequestA)(request, headers, headersSize, data, dataSize)) { if (GetLastError() == ERROR_INTERNET_INVALID_CA) {   InternetQueryOption(request, INTERNET_OPTION_SECURITY_FLAGS, (LPVOID)&Flags, &FlagsLen);   Flags |= SECURITY_FLAG_IGNORE_UNKNOWN_CA;   InternetSetOption(request, INTERNET_OPTION_SECURITY_FLAGS, &Flags, sizeof(Flags));   goto requestAgain; }   CLFU(InternetCloseHandle)(request); …