Can I use https with home assistant local ip?

I want to use HTTPS without exposing my home assistant to the public network because I want to use the Bitwarden RS add-on but it’s required SSL to be enabled.

Is there a way to enable SSL on the local IP address?, or am I miss anything regarding Bitwarden? because I’m getting this error on chrome console when trying to register a new user

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'importKey' of null
TypeError: Cannot read property 'importKey' of null
    at n.<anonymous> (webCryptoFunction.service.ts:49)
    at main.23747680e065fee825c1.js:1
    at Object.next (main.23747680e065fee825c1.js:1)
    at main.23747680e065fee825c1.js:1
    at new t (zone.js:910)
    at t (main.23747680e065fee825c1.js:1)
    at n.pbkdf2 (main.23747680e065fee825c1.js:1)
    at n.<anonymous> (crypto.service.ts:313)
    at main.23747680e065fee825c1.js:1
    at Object.next (main.23747680e065fee825c1.js:1)
    at k (zone.js:831)
    at zone.js:741
    at o (main.23747680e065fee825c1.js:1)
    at t.invoke (zone.js:391)
    at Object.onInvoke (core.js:17289)
    at t.invoke (zone.js:390)
    at e.run (zone.js:150)
    at zone.js:889
    at t.invokeTask (zone.js:423)
    at Object.onInvokeTask (core.js:17280)
mh @ core.js:15714
e.handleError @ core.js:15762
next @ core.js:17761
i @ core.js:13504
t.__tryOrUnsub @ Subscriber.js:196
t.next @ Subscriber.js:134
t._next @ Subscriber.js:77
t.next @ Subscriber.js:54
t.next @ Subject.js:47
t.emit @ core.js:13488
(anonymous) @ core.js:17311
t.invoke @ zone.js:391
e.run @ zone.js:150
e.runOutsideAngular @ core.js:17248
onHandleError @ core.js:17311
t.handleError @ zone.js:395
e.runGuarded @ zone.js:164
t @ zone.js:694
Zone.__load_patch.r.microtaskDrainDone @ zone.js:703
y @ zone.js:608
e.invokeTask @ zone.js:502
h @ zone.js:1744
v @ zone.js:1770

This guide will get your started to create self signed certificates.