: load-certificate-chain ( ctx -- )
dup config>> key-file>> [
- [ handle>> ] [ config>> key-file>> (normalize-path) ] bi
+ [ handle>> ] [ config>> key-file>> absolute-path ] bi
SSL_CTX_use_certificate_chain_file
ssl-error
] [ drop ] if ;
: use-private-key-file ( ctx -- )
dup config>> key-file>> [
- [ handle>> ] [ config>> key-file>> (normalize-path) ] bi
+ [ handle>> ] [ config>> key-file>> absolute-path ] bi
SSL_FILETYPE_PEM SSL_CTX_use_PrivateKey_file
ssl-error
] [ drop ] if ;
[ handle>> ]
[
config>>
- [ ca-file>> dup [ (normalize-path) ] when ]
- [ ca-path>> dup [ (normalize-path) ] when ] bi
+ [ ca-file>> dup [ absolute-path ] when ]
+ [ ca-path>> dup [ absolute-path ] when ] bi
] bi
SSL_CTX_load_verify_locations
] [ handle>> SSL_CTX_set_default_verify_paths ] if ssl-error ;