---
slug: "nuxt-axios-https-self-signed"
title: "When Using Nuxt Axios Proxy Mode, Axios Config's httpsAgent Injection Cannot Handle Self-Signed Certificates on the Proxy Server"
description: "Fix `ssl.SSLCertVerificationError` in Django `send_mail` — check `EMAIL_USE_SSL` / `EMAIL_USE_TLS` and certificate trust chain."
url: "https://www.ytyng.com/en/blog/nuxt-axios-https-self-signed"
publish_date: "2020-01-02T11:53:39Z"
created: "2020-01-02T11:53:39Z"
updated: "2026-05-11T13:21:43.731Z"
categories: ["nuxt"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/7ee31468b8a0482f99bb23de83d7fd7a.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# When Using Nuxt Axios Proxy Mode, Axios Config's httpsAgent Injection Cannot Handle Self-Signed Certificates on the Proxy Server

<p>As of January 2, 2020</p>
<p></p>
<p>When using the proxy mode of axios with nuxt, an error occurred during connection because the target server was using a self-signed SSL certificate.</p>
<p>UNABLE_TO_VERIFY_LEAF_SIGNATURE</p>
<p></p>
<p>Referencing this:</p>
<p><a href="https://teratail.com/questions/210638">https://teratail.com/questions/210638</a></p>
<p>I created and introduced a plugin to ignore the certificate error of axios, but it didn't change anything.</p>
<p></p>
<p>Looking at the axios issue, it seems to be an unresolved issue.</p>
<p><a href="https://github.com/axios/axios/issues/1981">https://github.com/axios/axios/issues/1981</a></p>
<p></p>
<p>So, I decided to properly sign the certificate instead.</p>
