Skip to content
Advertisement

Tag: openssl

Certificate subject for doesn’t contain a common name and does not have alternative names

I have generated a SSL self-signed certificate using the following commands one-by-one in remote ubuntu machine via terminal: T I’ve added the server.crt onto my local machine’s cacerts using keytool in command prompt as admin. Also added the server.crt onto ‘Trusted Root Certification Authorities’. he issue is that HTTPS request to the remote ubuntu machine server on Postman works fine

CMS signature SHA1+RSA with PEM format – Java

I need to generate a CMS with SHA1+RSA detached signature in PEM format over a xml file input. I need to make this from Java code in runtime. I need to avoid the use of an external tool like OpenSSL. This is because we need invoke some services with the generated signature from Java and manage error properly if an

SSLHandshakeException Trust anchor for certification path not found Android HTTPS

I’m trying to establish a connection to a HTTPS site and I got this exception: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. My original code is as follows: Then, I read Google’s article here and modified my code to: Regarding the R.raw.cert file, I use this site to check the certificates of the site. I found 3 cetificates

Load RSA public key from file

I’ve generated a private key with: After this I’ve generated a public key with: I want to sign some messages with my private key, and verify some other messages with my public key, using code like this: I found a solution to convert my private key to PKCS8 format and load it. It works with some code like this: And

Advertisement