Skip to content

Instantly share code, notes, and snippets.

@Blueblazer172
Last active September 26, 2022 15:58
Show Gist options
  • Save Blueblazer172/0d9db7a593280f469e4f0c822a8d2072 to your computer and use it in GitHub Desktop.
Save Blueblazer172/0d9db7a593280f469e4f0c822a8d2072 to your computer and use it in GitHub Desktop.
Workaround js fix for chrome certificate export: https://stackoverflow.com/a/55528697/5930557
var element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(document.getElementsByClassName('debugging-content')[9].innerText));element.setAttribute('download', location.host.replace(/[^\dA-Za-z]/g, '-') + '.crt');document.body.appendChild(element);element.click();document.body.removeChild(element);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment