├── .github └── workflows │ ├── cmake.yml │ └── codeql.yml ├── .gitignore ├── .gitmodules ├── CMakeLists.txt ├── LICENSE ├── README.md ├── sonar-project.properties ├── src ├── CMakeLists.txt ├── OpenSSL.cpp ├── OpenSSL.h └── main.cpp └── tst ├── CMakeLists.txt ├── OpenSSL-test.cpp ├── data ├── 1000-sans-badssl-com-chain.pem ├── 1000-sans-badssl-com.pem ├── Chain-Sectigo_UserTRUST_RSA.pem ├── Chain-Staat_der_Nederlanden_Organisatie.pem ├── Digidentity_BV_PKIoverheid_Organisatie_Persoon_CA_G3.pem ├── FAKE_USERTrust_RSA_Certification_Authority.pem ├── Fake-Chain-Sectigo_UserTRUST_RSA.pem ├── INCOMPLETE-expired-rsa-dv-ssl-com-chain.pem ├── Incomplete-Chain-Sectigo_UserTRUST_RSA.pem ├── Sectigo_RSA_Domain_Validation_Secure_Server_CA.pem ├── Staat_der_Nederlanden_Organisatie_Persoon_CA_G3.pem ├── Staat_der_Nederlanden_Root_CA.pem ├── USERTrust_RSA_Certification_Authority.pem ├── chain-with-gibberish-intermidiate.pem ├── chain-with-gibberish-root.pem ├── example.org.crt ├── example.org.key ├── expired-rsa-dv-ssl-com-chain.pem ├── expired-rsa-dv-ssl-com.pem ├── expired.addtrusu.root.pem ├── expired.baddssl.com.cert.pem ├── expired.baddssl.com.chain.pem ├── expired.comodo.rsa.certification.authority.pem ├── gibberish.pem ├── raymii.org.2023.der ├── raymii.org.2023.pem ├── sign-tampered.txt ├── sign.tampered.sha256.txt ├── sign.txt ├── sign.txt.sha256 ├── sign.txt.sha256.txt ├── tst_sign.crt └── tst_sign.key └── main.cpp /.github/workflows/cmake.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/.github/workflows/cmake.yml -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/.github/workflows/codeql.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/.gitmodules -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/README.md -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/sonar-project.properties -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/OpenSSL.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/src/OpenSSL.cpp -------------------------------------------------------------------------------- /src/OpenSSL.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/src/OpenSSL.h -------------------------------------------------------------------------------- /src/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/src/main.cpp -------------------------------------------------------------------------------- /tst/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/CMakeLists.txt -------------------------------------------------------------------------------- /tst/OpenSSL-test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/OpenSSL-test.cpp -------------------------------------------------------------------------------- /tst/data/1000-sans-badssl-com-chain.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/1000-sans-badssl-com-chain.pem -------------------------------------------------------------------------------- /tst/data/1000-sans-badssl-com.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/1000-sans-badssl-com.pem -------------------------------------------------------------------------------- /tst/data/Chain-Sectigo_UserTRUST_RSA.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/Chain-Sectigo_UserTRUST_RSA.pem -------------------------------------------------------------------------------- /tst/data/Chain-Staat_der_Nederlanden_Organisatie.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/Chain-Staat_der_Nederlanden_Organisatie.pem -------------------------------------------------------------------------------- /tst/data/Digidentity_BV_PKIoverheid_Organisatie_Persoon_CA_G3.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/Digidentity_BV_PKIoverheid_Organisatie_Persoon_CA_G3.pem -------------------------------------------------------------------------------- /tst/data/FAKE_USERTrust_RSA_Certification_Authority.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/FAKE_USERTrust_RSA_Certification_Authority.pem -------------------------------------------------------------------------------- /tst/data/Fake-Chain-Sectigo_UserTRUST_RSA.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/Fake-Chain-Sectigo_UserTRUST_RSA.pem -------------------------------------------------------------------------------- /tst/data/INCOMPLETE-expired-rsa-dv-ssl-com-chain.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/INCOMPLETE-expired-rsa-dv-ssl-com-chain.pem -------------------------------------------------------------------------------- /tst/data/Incomplete-Chain-Sectigo_UserTRUST_RSA.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/Incomplete-Chain-Sectigo_UserTRUST_RSA.pem -------------------------------------------------------------------------------- /tst/data/Sectigo_RSA_Domain_Validation_Secure_Server_CA.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/Sectigo_RSA_Domain_Validation_Secure_Server_CA.pem -------------------------------------------------------------------------------- /tst/data/Staat_der_Nederlanden_Organisatie_Persoon_CA_G3.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/Staat_der_Nederlanden_Organisatie_Persoon_CA_G3.pem -------------------------------------------------------------------------------- /tst/data/Staat_der_Nederlanden_Root_CA.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/Staat_der_Nederlanden_Root_CA.pem -------------------------------------------------------------------------------- /tst/data/USERTrust_RSA_Certification_Authority.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/USERTrust_RSA_Certification_Authority.pem -------------------------------------------------------------------------------- /tst/data/chain-with-gibberish-intermidiate.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/chain-with-gibberish-intermidiate.pem -------------------------------------------------------------------------------- /tst/data/chain-with-gibberish-root.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/chain-with-gibberish-root.pem -------------------------------------------------------------------------------- /tst/data/example.org.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/example.org.crt -------------------------------------------------------------------------------- /tst/data/example.org.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/example.org.key -------------------------------------------------------------------------------- /tst/data/expired-rsa-dv-ssl-com-chain.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/expired-rsa-dv-ssl-com-chain.pem -------------------------------------------------------------------------------- /tst/data/expired-rsa-dv-ssl-com.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/expired-rsa-dv-ssl-com.pem -------------------------------------------------------------------------------- /tst/data/expired.addtrusu.root.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/expired.addtrusu.root.pem -------------------------------------------------------------------------------- /tst/data/expired.baddssl.com.cert.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/expired.baddssl.com.cert.pem -------------------------------------------------------------------------------- /tst/data/expired.baddssl.com.chain.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/expired.baddssl.com.chain.pem -------------------------------------------------------------------------------- /tst/data/expired.comodo.rsa.certification.authority.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/expired.comodo.rsa.certification.authority.pem -------------------------------------------------------------------------------- /tst/data/gibberish.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/gibberish.pem -------------------------------------------------------------------------------- /tst/data/raymii.org.2023.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/raymii.org.2023.der -------------------------------------------------------------------------------- /tst/data/raymii.org.2023.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/raymii.org.2023.pem -------------------------------------------------------------------------------- /tst/data/sign-tampered.txt: -------------------------------------------------------------------------------- 1 | Bye world 2 | -------------------------------------------------------------------------------- /tst/data/sign.tampered.sha256.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/sign.tampered.sha256.txt -------------------------------------------------------------------------------- /tst/data/sign.txt: -------------------------------------------------------------------------------- 1 | Hello, World! 2 | -------------------------------------------------------------------------------- /tst/data/sign.txt.sha256: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/sign.txt.sha256 -------------------------------------------------------------------------------- /tst/data/sign.txt.sha256.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/sign.txt.sha256.txt -------------------------------------------------------------------------------- /tst/data/tst_sign.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/tst_sign.crt -------------------------------------------------------------------------------- /tst/data/tst_sign.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/data/tst_sign.key -------------------------------------------------------------------------------- /tst/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/openssl-modern-cpp/HEAD/tst/main.cpp --------------------------------------------------------------------------------