word forming element indicating "oneself," also "automatic," from Old English use of self (pron.) in compounds, such as selfbana "suicide," selflice "self-love, pride, vanity, egotism," selfwill "free will." Middle English had self-witte "one's own knowledge and intelligence" (early 15c.).
OED counts 13 such compounds in Old English. Middle English Compendium lists four, counting the self-will group as a whole. It re-emerges as a living word-forming element mid-16c., "probably to a great extent by imitation or reminiscence of Greek compounds in (auto-)," and formed a great many words in the pamphlet disputes of the 17c.
c. 1400, "assurance or belief in the good will, veracity, etc. of another," from Old French confidence or directly from Latin confidentia, from confidentem (nominative confidens) "firmly trusting, bold," present participle of confidere "to have full trust or reliance," from assimilated form of com, here perhaps an intensive prefix (see com-), + fidere "to trust" (from PIE root *bheidh- "to trust, confide, persuade").
From mid-15c. as "reliance on one's own powers, resources, or circumstances, self-assurance." Meaning "certainty of a proposition or assertion, sureness with regard to a fact" is from 1550s. Meaning "a secret, a private communication" is from 1590s. The connection with swindling (see con (adj.)) dates to mid-19c. and comes from the notion of the false "trustworthiness" which is the key to the game.
<a href="https://www.etymonline.com/word/self-confidence">Etymology of self-confidence by etymonline</a>
Harper, D. (n.d.). Etymology of self-confidence. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/self-confidence