How to allow a user to login via client X.509 certificate or username/password?

I have a niche website programmed by a volunteer. Like pretty much every website it’s secured via TLS, and the main page doesn’t let you do much except login via username & password or request an account. Some users recently requested … Continue reading How to allow a user to login via client X.509 certificate or username/password?

Is this X509 Subject field, with no space between ‘jurisdiction’ and an RDN, correctly formatted?

I recently purchased a new EV certificate (having previously used an OV certificate) and have successfully used it to sign my files.
However I’m getting a lot of warnings from Microsoft Defender about low trust levels on the file and the u… Continue reading Is this X509 Subject field, with no space between ‘jurisdiction’ and an RDN, correctly formatted?

How to verify hostname of certificate? and Is it mandatory if client knows the certificate?

I have a reported finding saying that hostname verification is disabled.
This can be deduced from this line of code:
final HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();
httpClientBuilder.setSSLContext(sslContext).se… Continue reading How to verify hostname of certificate? and Is it mandatory if client knows the certificate?

AWS IoT – Use a temporary certificate created at build time to authenticate a device for self-enrolment

Let’s say we produce IoT devices and want them to access AWS IoT Core.
The best solution is something like: every device has a (unique) private key and a public X.509 certificate signed by a valid Certification Authority.
This way, the dev… Continue reading AWS IoT – Use a temporary certificate created at build time to authenticate a device for self-enrolment