package Ġnet . cord a . node api . internal . config Ċ Ċ import Ġnet . cord a . core . internal . div Ċ import Ġnet . cord a . node api . internal . crypto . X 5 0 9 KeyStore Ċ import Ġjava . nio . file . Path Ċ Ċ interface ĠSSL Configuration Ġ{ ĊĠĠĠ Ġval Ġkey Store Password : ĠString ĊĠĠĠ Ġval Ġtrust Store Password : ĠString ĊĠĠĠ Ġval Ġcertificates Directory : ĠPath ĊĠĠĠ Ġval Ġssl Ke yst ore : ĠPath Ġget () Ġ= Ġcertificates Directory Ġ/ Ġ" ssl keystore . j ks " ĊĠĠĠ Ġ// ĠTODO ĠThis Ġlooks Ġlike Ġit Ġshould Ġbe Ġin ĠNode SSL Configuration ĊĠĠĠ Ġval Ġnode Ke yst ore : ĠPath Ġget () Ġ= Ġcertificates Directory Ġ/ Ġ" node keystore . j ks " ĊĠĠĠ Ġval Ġtrust Store File : ĠPath Ġget () Ġ= Ġcertificates Directory Ġ/ Ġ" trust store . j ks " ĊĠĠĠ Ġval Ġc rl Check Soft Fail : ĠBoolean ĊĊĠĠĠ Ġfun Ġload Trust Store ( createNew : ĠBoolean Ġ= Ġfalse ): ĠX 5 0 9 KeyStore Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠX 5 0 9 KeyStore . from File ( trust Store File , Ġtrust Store Password , Ġcreate New ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġload Node KeyStore ( createNew : ĠBoolean Ġ= Ġfalse ): ĠX 5 0 9 KeyStore Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠX 5 0 9 KeyStore . from File ( node Ke yst ore , Ġkey Store Password , Ġcreate New ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġload Ssl KeyStore ( createNew : ĠBoolean Ġ= Ġfalse ): ĠX 5 0 9 KeyStore Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠX 5 0 9 KeyStore . from File ( ssl Ke yst ore , Ġkey Store Password , Ġcreate New ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ interface ĠNode SSL Configuration Ġ: ĠSSL Configuration Ġ{ ĊĠĠĠ Ġval Ġbase Directory : ĠPath ĊĠĠĠ Ġoverride Ġval Ġcertificates Directory : ĠPath Ġget () Ġ= Ġbase Directory Ġ/ Ġ" certificates " Ċ } Ċ