Certificate installation error..

Hello.. I just created an origin certificate from Cloudflare dashboard and installed it on my Ubuntu server.. testing the nginx throws me an error:
sudo nginx -t
2025/03/04 09:40:43 [emerg] 1379408#1379408: cannot load certificate "/etc/ssl/certs/cloudflare_origin.pem": PEM_read_bio_X509_AUX() failed (SSL: error:0680009B:asn1 encoding routines::too long error:06800066:asn1 encoding routines::bad object header error:0688010A:asn1 encoding routines::nested asn1 error:Type=ASN1_PRINTABLE error:0688010A:asn1 encoding routines::nested asn1 error:Field=value, Type=X509_NAME_ENTRY error:0688010A:asn1 encoding routines::nested asn1 error error:0688010A:asn1 encoding routines::nested asn1 error error:0688010A:asn1 encoding routines::nested asn1 error:Field=issuer, Type=X509_CINF error:0688010A:asn1 encoding routines::nested asn1 error:Field=cert_info, Type=X509 error:0488000D:PEM routines::ASN1 lib)
nginx: configuration file /etc/nginx/nginx.conf test failed
sudo nginx -t
2025/03/04 09:40:43 [emerg] 1379408#1379408: cannot load certificate "/etc/ssl/certs/cloudflare_origin.pem": PEM_read_bio_X509_AUX() failed (SSL: error:0680009B:asn1 encoding routines::too long error:06800066:asn1 encoding routines::bad object header error:0688010A:asn1 encoding routines::nested asn1 error:Type=ASN1_PRINTABLE error:0688010A:asn1 encoding routines::nested asn1 error:Field=value, Type=X509_NAME_ENTRY error:0688010A:asn1 encoding routines::nested asn1 error error:0688010A:asn1 encoding routines::nested asn1 error error:0688010A:asn1 encoding routines::nested asn1 error:Field=issuer, Type=X509_CINF error:0688010A:asn1 encoding routines::nested asn1 error:Field=cert_info, Type=X509 error:0488000D:PEM routines::ASN1 lib)
nginx: configuration file /etc/nginx/nginx.conf test failed
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?