OSPF can be configured in VPNs for hub and spoke enviroments, even if its just one spoke.
set protocols ospf area 0.0.0.0 interface st0.0 interface-type p2mp
set protocols ospf area 0.0.0.0 interface st0.0 metric 2000
set protocols ospf area 0.0.0.0 interface st0.0 retransmit-interval 5
set interfaces st0 unit 0 family inet next-hop-tunnel 10.10.10.20 ipsec-vpn VPN
set interfaces st0 unit 0 family inet address 10.10.10.1/24
OSPF packet ignored: netmask 255.255.255.0 mismatch from 10.10.10.20 on intf st0.0 area 0.0.0.0
Add "multipoint" statement to the tunnel interface:
set interfaces st0 unit 0 multipoint